2016-11-29 3 views
0

를 포함하지 않는 "file.o"에러 원인을 활성화 :빌드 아이폰 OS 프로젝트는 내가 명령 줄을 통해 엑스 코드 프로젝트를 빌드 할 비트 코드를

xcodebuild -project MyAppLib.xcodeproj -sdk iphoneos -target MyAppTracker -configuration Release clean build OTHER_LDFLAGS=-fembed-bitcode OTHERCFLAGS=-fembed-bitcode;

하지만 난 얻을 오류 :

Ld build/MyAppLib.build/Release-iphoneos/MyAppTracker.build/Objects-normal/armv7/MyAppTracker normal armv7 cd /Users/snaggs/MyApp/projects/BuildMachine/ios/MyApp_sdk_ios/MyAppLib export IPHONEOS_DEPLOYMENT_TARGET=10.0 export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/snaggs/PostgreSQL/data/pg96:/Users/snaggs/Library/Android/sdk/platform-tools:/Users/snaggs/Library/Android/sdk/tools:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/clojure:" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.1.sdk -L/Users/snaggs/MyApp/projects/BuildMachine/ios/MyApp_sdk_ios/MyAppLib/build/Release-iphoneos -F/Users/snaggs/MyApp/projects/BuildMachine/ios/MyApp_sdk_ios/MyAppLib/build/Release-iphoneos -filelist /Users/snaggs/MyApp/projects/BuildMachine/ios/MyApp_sdk_ios/MyAppLib/build/MyAppLib.build/Release-iphoneos/MyAppTracker.build/Objects-normal/armv7/MyAppTracker.LinkFileList -install_name @rpath/MyAppTracker.framework/MyAppTracker -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -miphoneos-version-min=10.0 -dead_strip -fobjc-arc -fobjc-link-runtime -fembed-bitcode -weak_framework iAd -weak_framework AdSupport -single_module -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/snaggs/MyApp/projects/BuildMachine/ios/MyApp_sdk_ios/MyAppLib/build/MyAppLib.build/Release-iphoneos/MyAppTracker.build/Objects-normal/armv7/MyAppTracker_dependency_info.dat -o /Users/snaggs/MyApp/projects/BuildMachine/ios/MyApp_sdk_ios/MyAppLib/build/MyAppLib.build/Release-iphoneos/MyAppTracker.build/Objects-normal/armv7/MyAppTracker ld: '/Users/snaggs/MyApp/projects/BuildMachine/ios/MyApp_sdk_ios/MyAppLib/build/MyAppLib.build/Release-iphoneos/MyAppTracker.build/Objects-normal/armv7/MyAppTracker_vers.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 armv7

내가 놓친 게 있니?

$ xcodebuild -showBuildSettings | grep ENABLE_BITCODE 
ENABLE_BITCODE = YES 

답변

1

컴파일 플래그 OTHER_CFLAGS하지 OTHERCFLAGS해야한다.

+0

예, 작품, 내 잘못, tnx – snaggs