打包時 bitcode 錯誤

2021-07-12 01:45:32 字數 1066 閱讀 5633

用xcode 7.2 在真機(ios 7.1)上執行一下工程,結果發現工程編譯不過。看了下問題,報的是以下錯誤:

ld: 『/usersframework/sdks/polymerpay/library/mobstat/lib**sdk.a(**forsdk.o)』does not contain bitcode. you must rebuild it with bitcode enabled (xcodesetting enable_bitcode), obtain an updated library from the vendor, or disablebitcode for this target. for architecture arm64

得到的資訊是引入的乙個第三方庫不包含bitcode。

bitcode是個什麼鬼?

而在what』s new in xcode-new features in xcode 7中,還有一段如下的描述:

bitcode配置

在上面的錯誤提示中,提到了如何處理我們遇到的問題:

you must rebuild it with bitcode enabled(xcode setting enable_bitcode), obtain an updated library from the vendor, ordisable bitcode for this target. for architecture arm64

要麼讓第三方庫支援,要麼關閉target的bitcode選項。

實際上,在xcode 7中,我們新建乙個ios程式時,bitcode選項預設是設定為yes的。我們可以在」build settings」->」enable bitcode」選項中看到這個設定。不過,我們現在需要考慮的是三個平台:ios,mac os,watchos。

對於ios,bitcode是可選的;對於watchos,bitcode是必須的;而mac os是不支援bitcode。

如果我們開啟了bitcode,在提交包時,下面這個介面也會有個bitcode選項:

swift 編譯打包錯誤彙總

1.swiftc failed with exit code 1 解決方案 將 optimization level 設為 none 設定路徑 target build settings swift compiler optimization level.2.當專案從xcode beta 1切換be...

ios打包錯誤解決

ios打包是一件非常重要和常規的事情,打包過程中中避免不了,出現各種錯誤,下面就記錄一下 萬用字元 明確的 原因分析 都是in hourse profiles 出現的問題,可能原因 企業級打包只需要發布證書,注意打包的時候選擇那個賬號,那個bundleid,設定codingsign,旋轉打包型別,選...

vue打包字型路徑錯誤

打包之前 的檔案目錄 打包之後的檔案目錄 dist index.html static fonts css img js 使用 vue build 之後做 請求,發現 woff 字型無法獲取,除錯發現 真實路徑應該是 static fonts icomoon.0125455.woff 瀏覽器實際載入...