XCode打包报错 求解决

0 投票
最新提问 7月 30, 2018 用户: 13489086552 (140 分)
clang: error: linker command failed with exit code 1 (use -v to see invocation)

求解决方法

1个回答

0 投票
最新回答 7月 30, 2018 用户: albert52 (37,800 分)
这段log不具有参考意义,请发详细的,从error 字段开始
发表于 7月 30, 2018 用户: 13489086552 (140 分)
Ld /Users/sdmj/Library/Developer/Xcode/DerivedData/Unity-iPhone-aawtjlmiktdupqdsqyingjidihxt/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/arm64/AR normal arm64
    cd /Users/sdmj/Desktop/qingdao
    export IPHONEOS_DEPLOYMENT_TARGET=7.0
    export PATH="/Users/sdmj/Desktop/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Users/sdmj/Desktop/Xcode-beta.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Users/sdmj/Desktop/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch arm64 -isysroot /Users/sdmj/Desktop/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk -L/Users/sdmj/Library/Developer/Xcode/DerivedData/Unity-iPhone-aawtjlmiktdupqdsqyingjidihxt/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos -L/Users/sdmj/Desktop/qingdao -L/Users/sdmj/Desktop/qingdao/Libraries -L/Users/sdmj/Desktop/qingdao/Libraries/Plugins/iOS -F/Users/sdmj/Library/Developer/Xcode/DerivedData/Unity-iPhone-aawtjlmiktdupqdsqyingjidihxt/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos -filelist /Users/sdmj/Library/Developer/Xcode/DerivedData/Unity-iPhone-aawtjlmiktdupqdsqyingjidihxt/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/arm64/AR.LinkFileList -Xlinker -map -Xlinker /Users/sdmj/Library/Developer/Xcode/DerivedData/Unity-iPhone-aawtjlmiktdupqdsqyingjidihxt/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/AR-LinkMap-normal-arm64.txt -miphoneos-version-min=7.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/sdmj/Library/Developer/Xcode/DerivedData/Unity-iPhone-aawtjlmiktdupqdsqyingjidihxt/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/arm64/AR_lto.o -fembed-bitcode -Xlinker -bitcode_verify -Xlinker -bitcode_hide_symbols -Xlinker -bitcode_symbol_map -Xlinker /Users/sdmj/Library/Developer/Xcode/DerivedData/Unity-iPhone-aawtjlmiktdupqdsqyingjidihxt/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos -Xlinker -final_output -Xlinker /Applications/AR.app/AR -stdlib=libc++ -fobjc-arc -fobjc-link-runtime -weak_framework CoreMotion -weak-lSystem -lc++ -framework MediaToolbox -liPhone-lib -framework CoreText -framework AudioToolbox -weak_framework AVFoundation -framework CFNetwork -framework CoreGraphics -framework CoreLocation -framework CoreMedia -weak_framework CoreMotion -framework CoreVideo -framework Foundation -framework MediaPlayer -framework OpenAL -framework OpenGLES -framework QuartzCore -framework SystemConfiguration -framework UIKit -liconv.2 -lil2cpp -lEasyARUnity -Xlinker -dependency_info -Xlinker /Users/sdmj/Library/Developer/Xcode/DerivedData/Unity-iPhone-aawtjlmiktdupqdsqyingjidihxt/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/arm64/AR_dependency_info.dat -o /Users/sdmj/Library/Developer/Xcode/DerivedData/Unity-iPhone-aawtjlmiktdupqdsqyingjidihxt/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/arm64/AR

ld: '/Users/sdmj/Desktop/qingdao/Libraries/Plugins/iOS/libEasyARUnity.a(libEasyARUnity.a-arm64-master.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
发表于 4月 16, 2020 用户: love2878 (100 分)
请问这个问题解决了么,我也碰到同样的问题了
欢迎来到 EasyAR Q&A ,有什么不懂的可以尽管在这里提问,你将会收到社区其他成员的回答。
...