On 19 Jul 2012, at 4:01 AM, Vavelin Kevin wrote: I want to link my iOS app with QuartzCore.framework but i just can't do it.
First, the popover window doesn't show QuartzCore framework on the list of iOS 5.1 framework so i have to select it with Add Other button and choose it on /System/Library/Framework .
After that, my application launch perfectly with iOS Simulator but i can't build on my iPhone and iPad 'cause QuartzCore is missing :/ I have no idea of how to do that.
If memory serves, if you're developing for iOS 5.1, you're using Xcode 4.3. Am I right that you are using the latest version, 4.3.3?
The library in /System/Library/Frameworks is the wrong one, even for Mac development. The select-library sheet gives your project a reference to the library stub in the SDK in the Xcode package. The SDK version provides symbols and headers for that version of the OS, which might not be the same as the OS version you are running.
The framework in /System/Library is built for Intel processors, and not ARM. The device build fails because there is no device-compatible version of the library at that location. The Simulator is a simulation (it runs Intel binaries in an iOS-like environment), not an emulation (it does not interpret ARM binaries). One of the effects is that the Simulator uses the Mac versions of the system libraries, which is why you had no trouble there.
I can understand the desperation move of dragging the framework into your project folder (the file system directory?), but that's asking for even more trouble.
Your inability to choose QuartzCore.framework is a problem. It sounds as if you have the right approach, but just to make sure, how are you attempting to add it? The steps should be: Select the correct target in the Target editor; select the Build Phases tab; open the Link Binary With Libraries list; click the + button to reveal a chooser sheet; type "qu" in the search field; find QuartzCore.framework in the iOS 5.1 section; select it; click Add; the framework should show up in the Link Binary… phase; does it appear when you type "qu" in the search field for the Target editor?
Does that match what you are doing?
How have you installed your Xcode? By downloading it (from developer.apple.com/downloads, or through the Mac App Store) and dragging it into your /Applications folder? Do you have more than one Xcode? Can you conveniently delete and reinstall it? If your problem is with Xcode 4.4 or 4.5 (don't tell us), does Xcode 4.3 exhibit the same problem?
— F
|