Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ajbrehm

macrumors 6502
Original poster
Aug 14, 2002
341
0
Zurich, Switzerland
I have an iPhone project that uses a framework I added to the frameworks section in Xcode. The path to the framework is given there correctly.

But when I build&run the project, the debugger console tells me that the library could not be loaded and gives a wrong path:

"dyld: Library not loaded: /System/Library[...]"

For some reason that I cannot figure out Xcode insists on trying to find the image of the library in /System/Library rather than the framework folder given by me.

How can I fix this? How is it possible to include a framework in a project?
 
Is the framework one that came with xcode? Try clicking on the the framework and hitting the info button beside build and run and make sure it's path is the same as you other frameworks. It is possible you just put the framework in the wrong folder. When you add the framework make sure the box is unchecked that saves it to your project.

Nick
 
Is the framework one that came with xcode? Try clicking on the the framework and hitting the info button beside build and run and make sure it's path is the same as you other frameworks. It is possible you just put the framework in the wrong folder. When you add the framework make sure the box is unchecked that saves it to your project.

Nick

No, the framework is one that came with an earlier iPhone SDK. The path to the framework is set correctly. But Xcode ignores it and replaced it with the path starting with /System/Library when building the app.
 
Just in case it is what you are trying to do - Apple is not allowing custom frameworks to be embedded within iPhone applications.

It's an Apple private framework and Apple only doesn't allow use of private frameworks in apps distributed via iTunes.

Let's treat this as a technical question please.
 
It's an Apple private framework and Apple only doesn't allow use of private frameworks in apps distributed via iTunes.

Let's treat this as a technical question please.

Please excuse me for trying to both discern the question and render assistance. I'll try not to do it again. Please add me to your ignore list as I wouldn't want to risk offending you again. Have a nice life!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.