I have a project that runs fine on Simulator when using for example iPhone 6s iOS 9.3 or lower. But when I try to build project on Simulator for example on iPhone 4s iOS 8.1 it does not build.
But weird thing is that I can archive the app, publish it to appstore or fabric and through this two services I can install it on iPhone 4s without any problems. So where is the catch that I am missing out?
In some cases (when I tried changing build settings the app was not able to build or archive at all, but it was able to build and run directly on iPhone 6s only).
I get the following error(s) (Simulator for iPhone 4s iOS 8.1):
Undefined symbols for architecture i386:
"_Check_Parity_Pitch", referenced from:
_tdav_codec_g729ab_decode in libtinyDAV.a(tdav_codec_g729.o)
...
...
...
ld: symbol(s) not found for architecutre i386
Linker command failed with exit code 1(use -v to see invocation)
Project settings:
I have tried adding and removing Valid Architectures but I got no luck building the app.
Quit your Xcode or simulator and run again. If again it creates problem, then Uninstall Xcode and Install again. Hope it works.
Related
I am using MoPub kit using Fabric SDKs.
Everything works fine on all devices until you run the app on iPad simulator.
Running the app on iPad simulator gives following error while compiling the app:
Error
P.S. I am using XCode 7.3
Edit 1: I get following warnings also while running the app on simulators.
ld: warning: ignoring file /Users/Projects/Directory/Directory_iOS/PassKit.framework/PassKit.tbd, missing required architecture i386 in file /Users/Projects/Directory/Directory_iOS/PassKit.framework/PassKit.tbd
ld: warning: ignoring file /Users/Projects/Directory/Directory_iOS/MoPub.framework/MoPub, missing required architecture i386 in file /Users/Projects/Directory/Directory_iOS/MoPub.framework/MoPub (4 slices)
Only running the app on the iPad causes compilation errors iPhone simulators is not a problem with it.
I am trying to build/run my app for iPad simulator and i see below error on Xcode 7.3.1.
error :- missing required architecture i386
However the same runs fine if I choose iPhone simulator, iPad device. What could be the problem and fix?
I've recently updated xcode to the last version. So now my simulator have 8.2 ios version. My cocos2d-x projects are still working on devices (tested on ipad2 and iphone5s), but I can't compile them for simulator. I'm getting huge number of linker errors:
Undefined symbols for architecture x86_64:
"_AVAudioSessionCategoryAmbient", referenced from:
-[CDAudioManager setMode:] in libcocos2d iOS.a(CDAudioManager.o)
-[CDAudioManager applicationWillResignActive] in libcocos2d iOS.a(CDAudioManager.o)
...
few hundred lines more
...
ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed
with exit code 1 (use -v to see invocation)
Showing first 200 notices
only Showing first 200 errors only
Generally there are errors of all frameworks I use as well as cocos2d-x library itself. Before getting there most frameworks was highlighted red, but I fixed that making a symlink to:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs
using this:
sudo ln -s iPhoneOS.sdk iPhoneOS8.1.sdk
I'm of course using cocos2d-x 3.4.
edit:
After migrating to v. 3.5, setting valid architectures to: armv7, armv7s, i386, x86_64, setting build active architecture only to no (in both main and cocos2d_libs project) with various settings variations now I'm getting:
Undefined symbols for architecture i386:
And other's the same. Doesn't work on any simulator. I even downloaded 8.1 simulators and it doesn't work there too. This is some stupid linker error and I can't figure it out.
I've also noticed that fresh project builds fine. In my project I also have few objC classes (for other stuff like admob), which are using ARC. So I had to add "-fobjc-arc" in few places in build phases->compile sources. Problem is it's only simulator-related problem and appeared when I've updated ios sdk from 8.1 to 8.2.
Regards
Iam able to run my project in iPad and iphone but when i tried to run it in iPad simulators
but then i got this error .
ld: building for iOS Simulator, but linking against dylib built for MacOSX file '/Users/apple/Documents/releaseAPICON2015/SenTestingKit.framework/SenTestingKit' for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
please check this link for screenshot
Error
Please tell me how to get back all simulators in xcode 6.1.1
You are trying to link SenTestingKit.framework in you iOS project. You cannot use OS X binaries in iOS Simulator apps as they are not compatible.
On older versions of iOS, you would encounter runtime errors (incorrect values or crashes). On iOS 8.0, this became a link-time error.
You need to build a version of SenTestingKit.framework for iOS. Hope this helps.. :)
I recently upgraded to XCode V6.0.1, and when I try to run my app on the iPhone 6 or iPhone 6+ simulator I get several errors of the following type:
"Undefined symbols for architecture x86_64: "_CATransform3DConcat"
I can run the app on the 4s, 5, and 5s simulators no problem.
Here is a screen shot of my build settings:
You can try by setting "Build Active Architecture only" to "NO"
I deleted my search paths for Header and Library and removed my 3rd party framework and reinstalled. I manually set my search paths in Build Settings.