系統信息:Xcode中7.0.1 W/iOS版9谷歌地圖目標不豆莢項目獲得創建
我遇到的問題是:添加的GoogleMaps吊艙(1.10.3)我podfile後,應用程序在iOS模擬器的Xcode中構建,但不適用於設備。
即出現如下錯誤:
ld: '/Users/<username>/Projects/Arsenal/LitterBug/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/GoogleMaps(GMSCachedTile.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 clang: error: linker command failed with exit code 1 (use -v to see invocation)
每一個崗位,我發現提到設置ENABLE_BITCODE
標誌爲「否」的豆莢項目莢目標。如果僅在Google更新SDK之前允許開發繼續,並且在Pods項目中創建GoogleMaps目標,那麼這將是一個可行的選擇。
我現在podfile樣子:
source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
target 'AppName' do
pod "Parse"
pod "SwiftOverlays"
pod "FBSDKCoreKit"
pod "GoogleMaps"
pod "FBSDKLoginKit"
pod "FBSDKShareKit"
end
target 'AppNameTests' do
end
當我運行pod install --verbose
或pod update --verbose
,「安裝目標的階段出現在吊艙項目不安裝的GoogleMaps目標。這確實通過在工作區中查看項目來確認。
有一個目標與其他Pod目標一起創建,名爲「Pods-appname」。我試過爲這個目標禁用bitcode,但它沒有解決這個問題。
如果其他人遇到過這個問題,請告訴我。我收到的原始錯誤目前正在被追蹤爲一個問題,可以在這裏查看:GoogleMaps issue 8219
當前的解決方法需要在工作區的Pods項目中存在GoogleMaps目標。