模擬器上可以跑的起來,真機(jī)調(diào)試的時(shí)候出現(xiàn)錯(cuò)誤信息:
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.
從上述的錯(cuò)誤中應(yīng)該可以看出,這是因?yàn)橐粋€(gè)第三方的庫不兼容,我的工程中開啟了 ENABLE_BITCODE (xcodes升級(jí)7.0之后自動(dòng)轉(zhuǎn)換的),而這個(gè)第三方的庫在編譯的時(shí)候沒有 enable bitcode,所以導(dǎo)致上訴問題。
解決辦法:
一種就是換成 enable bitcode 的第三方庫,
再有一種就是將工程的 ENABLE_BITCODE 設(shè)置為 no 就可以了。
因?yàn)槲疫@里不太方便換庫,所以,就把工程的設(shè)置給改了一下。
具體操作方法如下:
操作方法

上面解決方法是把工程的設(shè)置給改了,但是改了之后有什么影響現(xiàn)在還沒有發(fā)現(xiàn)。