简体   繁体   English

Unity 3D iOS Build Bitcode问题

[英]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. 我想在我的iOS项目中启用位代码,但一切正常,但是每当启用位代码并尝试将项目存档时,都会出现CLang错误。 I am using Google Admob framework 7.15.0 which supports bitcode, unity 5.4.1f1 and xCode 7.2. 我正在使用Google Admob框架7.15.0,该框架支持位码,统一5.4.1f1和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 Ld /用户/ zeeshanullah /库/开发人员/Xcode/DerivedData/Unity-iPhone-fefeolxmzaribigaxtqjdkorlsiv/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/Mushroom.app/Mushroomy正常/ Desktopshanv cd /用户/发布导出IPHONEOS_DEPLOYMENT_TARGET = 7.0导出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 / Archive / 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 / Unity / Publish / Libraries -F / Users / zeeshanullah / Library / Developer / Xcode / DerivedData / Unity-iPhone-fefeolxmzaribigaxtqjdkorlsiv / Build / Intermediates / ArchiveIntermediates / Unity-iPhone / BuildProductsPath / Release-iphoneos -F / Users / zeetop / Unity /发布-文件列表/用户/zeeshanullah/Library/Developer/Xcode/DerivedData/Unity-iPhone-fefeolxmzaribigaxtqjdkorlsiv/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos .build / Objects-normal / armv7 / Mushroom.LinkFileList -Xlinker -map -Xlinker / Users / zeeshanullah / Library / Developer / Xcode / DerivedData / Unity-iPhone-fefeolxmzaribigaxtqjdkorlsiv / Build / Intermediates / ArchiveIntermediates / Unity-iPhone / Interface -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 /用户/ 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 llah / Library / Developer / Xcode / DerivedData / Unity-iPhone-fefeolxmzaribigaxtqjdkorlsiv / Build / Intermediates / ArchiveIntermediates / Unity-iPhone / BuildProductsPath / Release-iphoneos -weak_framework CoreMotion -weak-cSystem -ObjC -stdliblib -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 -框架OpenGLES-框架QuartzCore-框架SystemConfiguration-框架UIKit -liconv.2 -Xlinker -dependency_info -Xlinker / Users / zeeshanullah / Library / Developer / Xcode / DerivedData / Unity-iPhone-fefeolxmzaribigaxtqjdkorlsiv / Build / Intermediates / Arive /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 pendency_info.dat -o /用户/ zeeshanullah /库/开发人员/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) clang:错误:无法执行命令:分段错误:11 clang:错误:链接器命令由于信号而失败(使用-v查看调用)

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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