Click here to Skip to main content
16,020,669 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All!

I am now in the process of converting our projects from Xcode 3.2 to Xcode 4.6.
I succeeded in compiling the projects, but now I have the following problem:

Function ::CFBundleLoadExecutable returns me FALSE after trying to loading compiled bundle. When I tried to use function ::CFBundleLoadExecutableAndReturnError instead the error I got was: CFBundleExecutableLoadError (-2002)
The reason string is: The bundle is damage or missing necessary resources
The suggesting is: Try to reinstall the bundle.

As you can see, this is an extremely “helpful” information. Maybe someone can suggest a better way to understand what is the problem with the bundle? Thanks!
The strangest thing is - If I launch an application through XCode - everything works. (Even if it is Release compilation). But if I run application from Menu / Command Line - CFBundleExecutableLoadError fails :(


Thanks!
Posted
Updated 30-Sep-13 22:50pm
v2

1 solution

Found a problem eventually. There was a dependency in the bundle's DLL on one of the libraries, which name was changed during the Post-Build stage by install_name_tool. install_name_tool location was changed in Xcode 4.6, so this step was missing, therefore bundle's dll looked for the wrong library in wrong location.

I guess giving error like "Library XXXXX in missing" is too much for Apple....

Hope it will help someone someday.
 
Share this answer
 
Comments
[no name] 5-Nov-13 4:15am    
very good

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900