模擬器上可以跑的起來,真機調(diào)試的時候出現(xiàn)錯誤信息:
all bitcode will be dropped because ‘xxxx’ was built without 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. Note: This will be an error in the future.
從上述的錯誤中應(yīng)該可以看出,這是因為一個第三方的庫不兼容,我的工程中開啟了 ENABLE_BITCODE (xcodes升級7.0之后自動轉(zhuǎn)換的),而這個第三方的庫在編譯的時候沒有 enable bitcode,所以導(dǎo)致上訴問題。
解決辦法:
一種就是換成 enable bitcode 的第三方庫,
再有一種就是將工程的 ENABLE_BITCODE 設(shè)置為 no 就可以了。
因為我這里不太方便換庫,所以,就把工程的設(shè)置給改了一下。
具體操作方法如下:
操作方法
上面解決方法是把工程的設(shè)置給改了,但是改了之后有什么影響現(xiàn)在還沒有發(fā)現(xiàn)。