簡體   English   中英

Xcode 7無法存檔

[英]Xcode 7 Fails to Archive

我正在使用Xcode 7.3.1。

我的項目可以在iOS模擬器和我自己的iPhone上完美運行。 但是,在歸檔項目時,出現警告和錯誤:

ld: warning: ignoring file /Users/parthsaxena/Desktop/Vantage/Vantage/Vantage/TextFieldEffects/TextFieldEffects.framework/TextFieldEffects, file was built for arm64 which is not the architecture being linked (armv7): /Users/parthsaxena/Desktop/Vantage/Vantage/Vantage/TextFieldEffects/TextFieldEffects.framework/TextFieldEffects

ld: bitcode bundle could not be generated because '/Users/parthsaxena/Desktop/Vantage/Vantage/Pods/FirebaseAppIndexing/Frameworks/FirebaseAppIndexing.framework/FirebaseAppIndexing(FIRAppIndexing.o)' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build for architecture armv7

clang: error: linker command failed with exit code 1 (use -v to see invocation)

您可能已經注意到,我在項目中同時使用了Firebase和TextFieldEffects框架。

有什么解決辦法嗎?

您的庫在編譯時沒有位碼,但是在項目設置中啟用了位碼選項。 在目標“構建設置”和“庫構建設置”中說“否”以啟用位碼以刪除警告。

對於那些想知道是否需要啟用位碼的人:

注意:對於iOS應用,位碼是默認值,但是可選的。 如果提供位碼,則應用程序捆綁包中的所有應用程序和框架都必須包含位碼。 對於watchOS應用程序,需要位碼。 https://developer.apple.com/library/prerelease/watchos/documentation/IDEs/Conceptual/AppDistributionGuide/AppThinning/AppThinning.html

Firebase目前不支持位碼(情況應在短時間內改變)。 您應該將Build Settings > Enable Bitcode Build SettingsNO

我收到此錯誤是因為我的Mac上沒有足夠的可用空間

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM