在iOS 開發中最討厭的就是在build code 的時候看到下圖的錯誤
今天早上開心的升級Xcode 7 來玩玩,結果在 build code 結果就悲劇了!!
GoogleOpenSource.framework/GoogleOpenSource(GTLDateTime.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
Google framework出現了iOS9 的 New warnings 是有關 BITCODE
我們只要進入 Build Settings -> Build Options 將 Enable Bitcode 改成NO
程式就可以復活了!!
下面附上官方對於Bitcode 的解釋以及連結
Apple Developer URL:https://developer.apple.com/library/prerelease/watchos/documentation/IDEs/Conceptual/AppDistributionGuide/AppThinning/AppThinning.html