Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 415811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T18:25:04+00:00 2026-05-12T18:25:04+00:00

Some MP3 files can’t be opened by CoreAudio in OS X and iPhone OS

  • 0

Some MP3 files can’t be opened by CoreAudio in OS X and iPhone OS 3.x. This was a bug that I submitted to Apple and has been fixed in 10.6.2. Unfortunately, I must still support iPhone OS 3.x, so I need to test for these files that mess up CoreAudio. I check them with a simple command line tool that tries AudioFileOpenURL and returns > 0 if there’s a problem opening it. If there is I use Apple’s iTunes encoder to encode the MP3 instead of lame.

I cannot upgrade to 10.6.2 at the moment as my MP3 file checker will now pass files that will not open on iPhone OS 3.x.

Is there any way of building the checking tool against an older version of AudioToolbox/CoreAudio, or some other checking solution?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T18:25:05+00:00Added an answer on May 12, 2026 at 6:25 pm

    If I understand you correctly, you want to link code from obsolete system frameworks.

    Statically linking would mean you have to take the dylib apart and create a static library from it, which would be difficult to say the least.

    But you can just copy the affected system frameworks from the older (buggy) system to your application wrapper or some other place close to your executable. Then you link your executable against these frameworks.

    You can use the terminal to see what libraries you are linking:

    $ cd foo-project/build/Debug
    $ otool -L foo
    foo:
        /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio (compatibility version 1.0.0, current version 1.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 123.0.0)
    

    It’s very easy to change the load command in the mach-o executable to use another path for a linked framework:

    $ install_name_tool -change /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio @executable_path/CoreAudio.framework/Versions/A/CoreAudio foo
    $ otool -L foo
    foo:
        @executable_path/CoreAudio.framework/Versions/A/CoreAudio (compatibility version 1.0.0, current version 1.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 123.0.0)
    
    $ DYLD_PRINT_LIBRARIES=1 ./foo
    dyld: loaded: /Users/nikolai/foo-project/build/Debug/./foo
    dyld: loaded: /Users/nikolai/foo-project/build/Debug/./CoreAudio.framework/Versions/A/CoreAudio
    ...
    

    You can prepare the (copied) framework so that when you build the foo executable, it has the right load commands automatically:

    $ install_name_tool -id @executable_path/CoreAudio.framework/Versions/A/CoreAudio CoreAudio.framework/Versions/Current/CoreAudio
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some MP3 files that are named with a particular syntax, for example:
I have some mp3 files in my resources folder, how can i play those
I have a C# project with some gif and mp3 files how I can
I have some MP3 files in a playlist each of which has a link
i have developed an app that can download mp3 files (nearly 6 to 8
I have a page that contains some links to .mp3/.wav files in that format
Currently I am storing some mp3 files locally on a simulator using the following
There are some web-based services such as converting .flv files into .mp3 files, .doc
I'm doing some converting of wav-files to mp3 and I use lame.exe. Now, when
I have an MP3-tagging application that auto fetches lyrics from some unknown source. How

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.