简体   繁体   中英

Unity 3D iOS Build Bitcode Issue

I want to enable bitcode in my iOS project everything works fine but whenever I enable bitcode and try to archive the project I get CLang error. I am using Google Admob framework 7.15.0 which supports bitcode, unity 5.4.1f1 and xCode 7.2. I am trying to solve this problem for days with no luck any help appreciated.

thanks

Below is the error I am getting

Ld /Users/zeeshanullah/Library/Developer/Xcode/DerivedData/Unity-iPhone-fefeolxmzaribigaxtqjdkorlsiv/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/Mushroom.app/Mushroom normal armv7 cd /Users/zeeshanullah/Desktop/Unity/Publish export IPHONEOS_DEPLOYMENT_TARGET=7.0 export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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 armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk -L/Users/zeeshanullah/Library/Developer/Xcode/DerivedData/Unity-iPhone-fefeolxmzaribigaxtqjdkorlsiv/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos -L/Users/zeeshanullah/Desktop/Unity/Publish -L/Users/zeeshanullah/Desktop /Unity/Publish/Libraries -F/Users/zeeshanullah/Library/Developer/Xcode/DerivedData/Unity-iPhone-fefeolxmzaribigaxtqjdkorlsiv/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos -F/Users/zeeshanullah/Desktop/Unity/Publish -filelist /Users/zeeshanullah/Library/Developer/Xcode/DerivedData/Unity-iPhone-fefeolxmzaribigaxtqjdkorlsiv/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/Mushroom.LinkFileList -Xlinker -map -Xlinker /Users/zeeshanullah/Library/Developer/Xcode/DerivedData/Unity-iPhone-fefeolxmzaribigaxtqjdkorlsiv/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Mushroom-LinkMap-normal-armv7.txt -miphoneos-version-min=7.0 -dead_strip -fembed-bitcode -Xlinker -bitcode_verify -Xlinker -bitcode_hide_symbols -Xlinker -bitcode_symbol_map -Xlinker /Users/zeeshanu llah/Library/Developer/Xcode/DerivedData/Unity-iPhone-fefeolxmzaribigaxtqjdkorlsiv/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos -weak_framework CoreMotion -weak-lSystem -ObjC -stdlib=libc++ -fobjc-arc -fobjc-link-runtime -liPhone-lib -framework CoreText -framework GoogleMobileAds -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 -Xlinker -dependency_info -Xlinker /Users/zeeshanullah/Library/Developer/Xcode/DerivedData/Unity-iPhone-fefeolxmzaribigaxtqjdkorlsiv/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/Mushroom_de pendency_info.dat -o /Users/zeeshanullah/Library/Developer/Xcode/DerivedData/Unity-iPhone-fefeolxmzaribigaxtqjdkorlsiv/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/Mushroom.app/Mushroom

clang: error: unable to execute command: Segmentation fault: 11 clang: error: linker command failed due to signal (use -v to see invocation)

我已经将xcode从7.2更新到最新版本8.2,它解决了位码问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM