I am using AFNetworking and get following warning printed on console while running app on device but no warning on simulator. Any help would be appreciated. Am using Xcode 6.1.1 on Yosemite for iOS 8.
objc[306]: Class AFQueryStringPair is implemented in both /private/var/mobile/Containers/Bundle/Application/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/AppName.app/AppName and /private/var/mobile/Containers/Bundle/Application/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/AppName.app/AppName. One of the two will be used. Which one is undefined.\
I also ran into this problem. You are probably linking to AFNetworking twice somehow. Double check that AFNetworking is only linked once in your build hierarchy.
Please see this answer for more detail.
Related
I upgraded to Xcode 4.4.1. Now, I'm trying to add framework QuartzCore.framework, but getting Quartz.framework not found while running the application on device and it is working fine on simulator.
After analyzing, I got, the framework is missing at the path:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneOS5.1.sdk/
Even if , it is available at:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/
Can anyone please let me know, what is going wrong? How to solve the problem?
If you're developing for iOS, you'll probably want QuartzCore.framework (and not Quartz.framework).
Try re-adding QuarzCore in Linked Libraries under Build Phases. If you're using a 6.0 device, you'll need to update Xcode to 4.5 or later.
I added Social.framework in my application in the same way i use to add the other frame works. I have downloaded xcode 4.5 and iOS 6 . but my application crashes with follwing error only on device. It works fine on simulator.
dyld: Library not loaded: /System/Library/Frameworks/Social.framework/Social
Referenced from: /var/mobile/Applications/FC88291D-2052-45D6-A7BB-65CE340F07BF/Uploading Image.app/Uploading Image
Reason: image not found
I was getting this exact error. My app currently has a deployment target of 5.1. I wanted to add Facebook sharing. I found this old post, Conditionally including a library for different iOS SDK versions?. All I did was set "Social.framework" to 'optional' and it did the trick, then my app would run on ios 5.1 and ios 6.0. Of course you need to do checks at runtime for what OS the device is running otherwise you could run into a crash if you try to access social.framework in ios 5.1 or earlier. Hope that helps!
In Xcode go to targets, Go to build phase and search for Social frame work you will find that under "Link Binary with Libraries" section. There select social frame work and see there is an option on right hand side required/optional in that just change required to optional. Now you are able to run on all ios devices without any crashes.
Dev guys from other company, sent me iOS app package that is build with Xcode, but I don't have its Xcode project, just built app package file. How to run that on simulator or on iphone?
UDPATE: I'v tried Simulator launcher but the solution is not working when using Xcode 4.2.1.
UPDATE2: Also tried to use this solution but with no luck (getting black simulator screen and errors shown in terminal after launch). IMHO these problems might be related to iOS 5
UPDATE3: Also, unsuccessfully, tried to use this solution
normally you should be able to install it with itunes, a detailed step-by step guide can be found here: http://www.wikihow.com/Install-Ad-hoc-iPhone-OS-Apps
If it is built for device, you can install it to your device using iTunes or Xcode Organizer. However, you cannot run it on any device. They should also give you a provisioning profile for letting you install that app on your device.
Found the solution. I'v asked the guys to send me "ipa" package instead of raw .app package. Then added it to my iPhone device.
I'm new to ios. I want to use CorePlot in my project.
I followed the steps in the instruction from CorePlot wiki and tried to build my project by Xcode 3.2.2. But i got some errors like
"'CALayer' may not respond to '-encodeWithCoder:' ",
"'NSMutableSet' may not respond to '-sortedArrayUsingDescriptors:'".
I tried to build the examples in the coreplot source code package and got the same errors.
Anyone knows the reason? How can i solve these problems? Any help would be appreciated.
The latest Core Plot projects are set up for Xcode 4.2. You may have to adjust some of the build settings to get them to work in older versions. I don't have that version of Xcode installed any more, but the first thing I would check is to make sure the Base SDK is set to one that you have instead of the generic "Latest iOS".
Im using x-code 3.2.4 and I'm using the ios4.1 sdk.
I'm getting the following error when I try to call "ExtAudioFileOpenURL" from the audio toolbox.
Detected an attempt to call a symbol
in system libraries that is not
present on the iPhone:
_Unwind_Resume called from function _ZN15ID3ParserHandleC2EPvPFlS0_mmmPS0_PmE
in image AudioToolbox.
Why is this happening and how can I fix it?
Thanks,
db.
EDIT
In addition when running on a 4.1 device I get this error "error: 805297555"
What the hell?
The exact line of code causing the problem is this.
// Open an audio file and associate it with the extended audio file object.
OSStatus result= ExtAudioFileOpenURL (sourceURLArray[audioFile], &audioFileObject);
It's straight out of a sample code project. That sample code project runs fine.
I don't understand why if I start a new project with the same code I get errors.
This means that ExtAudioFileOpenURL is an unsupported API on the iPhone. ExtAudioFileOpenURL probably makes use of some exception handling API that is not available on the iPhone, which is why you are seing this sympton of the underlying error.
What I had to do in the end was completely uninstall the developer tools from my machine.
Then download the latest versions of xcode & ios SDK.
Everything works ok now.
Sadly I still don't exactly know what the problem was but at least things are running.