Hi everyone,
Been battling against this issue for 4 days now. Completely out of ideas. I am using:
Unity 5.2.3f1
Xcode 7.1.1
Mac OS El Capitan 10.11.1
I have managed to release the project for Android without any issues. When I export it to Xcode, I am getting 201+ errors, as apparently Xcode is ignoring the libiPhone-lib.a library due to wrong architecture.
In Unity, I export the project with the following:
The project in Xcode is target to iOS 7.0 and the architectures are:
I have removed all my assets (InApp purchases, Analytics, Admob) and still get the same problem. So it’s not assets/plugins.
Finally, this is the message I see:
Ld
/Users/xxxxxx/Library/Developer/Xcode/DerivedData/Unity-iPhone-brqbnhelddpaphdduyeijxqtdbzd/Build/Intermediates/Unity-iPhone.build/Release-iphonesimulator/Unity-iPhone.build/Objects-normal/x86_64/xxxxx
normal x86_64
cd /Users/fcaldas/projects/iOS_untracked/xxxxxx
export IPHONEOS_DEPLOYMENT_TARGET=7.0
export PATH=“/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin”
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
-arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk
-L/Users/xxxxx/Library/Developer/Xcode/DerivedData/Unity-iPhone-brqbnhelddpaphdduyeijxqtdbzd/Build/Products/Release-iphonesimulator
-L/Users/fcaldas/projects/iOS_untracked/xxxxx
-L/Users/xxxx/projects/iOS_untracked/xxxx/Libraries
-L/Users/xxxxx/projects/iOS_untracked/xxxxx/Libraries/Plugins/iOS -F/Users/xxxxx/Library/Developer/Xcode/DerivedData/Unity-iPhone-brqbnhelddpaphdduyeijxqtdbzd/Build/Products/Release-iphonesimulator
-F/Users/xxxxx/projects/iOS_untracked/xxxxx
-filelist /Users/xxxxx/Library/Developer/Xcode/DerivedData/Unity-iPhone-brqbnhelddpaphdduyeijxqtdbzd/Build/Intermediates/Unity-iPhone.build/Release-iphonesimulator/Unity-iPhone.build/Objects-normal/x86_64/xxxxx.LinkFileList
-Xlinker -map -Xlinker /Users/xxxxx/Library/Developer/Xcode/DerivedData/Unity-iPhone-brqbnhelddpaphdduyeijxqtdbzd/Build/Intermediates/Unity-iPhone.build/Release-iphonesimulator/Unity-iPhone.build/xxxxx-LinkMap-normal-x86_64.txt
-mios-simulator-version-min=7.0 -Xlinker -objc_abi_version -Xlinker 2 -weak_framework CoreMotion -weak-lSystem -stdlib=libc++ -fobjc-arc -fobjc-link-runtime -framework CoreText -framework AudioToolbox -weak_framework
AVFoundation -framework CFNetwork
-framework CoreGraphics -framework CoreLocation -framework CoreMedia
-weak_framework CoreMotion -framework CoreVideo -framework Foundation
-weak_framework iAd -framework MediaPlayer -framework OpenAL
-framework OpenGLES -framework QuartzCore -framework
SystemConfiguration -framework UIKit
-liconv.2 -framework GoogleMobileAds -liPhone-lib -lGoogleAnalyticsServices -framework StoreKit -framework Security -weak_framework AdSupport
-Xlinker -dependency_info -Xlinker /Users/xxxxx/Library/Developer/Xcode/DerivedData/Unity-iPhone-brqbnhelddpaphdduyeijxqtdbzd/Build/Intermediates/Unity-iPhone.build/Release-iphonesimulator/Unity-iPhone.build/Objects-normal/x86_64/xxxxx_dependency_info.dat
-o /Users/xxxx/Library/Developer/Xcode/DerivedData/Unity-iPhone-brqbnhelddpaphdduyeijxqtdbzd/Build/Intermediates/Unity-iPhone.build/Release-iphonesimulator/Unity-iPhone.build/Objects-normal/x86_64/xxxxld: warning: ignoring file
/Users/xxxx/projects/iOS_untracked/xxx/Libraries/libiPhone-lib.a,
missing required architecture x86_64
in file
/Users/xxxx/projects/iOS_untracked/xxxx/Libraries/libiPhone-lib.a
(3 slices) Undefined symbols for
architecture x86_64:
“_NSOverwriteMergePolicy”, referenced
from:
-[GAIDataStore contextWithModel:URL:] in
libGoogleAnalyticsServices.a(GAIDataStore.o)
“_NSSQLiteErrorDomain”, referenced
from:
-[GAIDataStore performBlockAndWait:withError:] in
libGoogleAnalyticsServices.a(GAIDataStore.o)
“_NSSQLiteStoreType”, referenced from:
-[GAIDataStore coordinatorWithModel:URL:] in
libGoogleAnalyticsServices.a(GAIDataStore.o)
“OBJC_CLASS_NSAttributeDescription", referenced from: objc-class-ref in libGoogleAnalyticsServices.a(GAICoreDataUtil.o) "_OBJC_CLASS__NSEntityDescription”,
referenced from:
objc-class-ref in libGoogleAnalyticsServices.a(GAIDataStore.o)
objc-class-ref in libGoogleAnalyticsServices.a(GAICoreDataUtil.o)
“OBJC_CLASS_NSFetchRequest", referenced from: objc-class-ref in libGoogleAnalyticsServices.a(GAIDataStore.o) "_OBJC_CLASS__NSManagedObjectContext”, referenced from:
objc-class-ref in libGoogleAnalyticsServices.a(GAIDataStore.o)
etc…
Any idea, guys? Thank you.