iOS 開發中常見的BUG

2021-07-11 08:21:52 字數 1612 閱讀 8029

1.(null): urgent: all bitcode will be dropped because 『***x』 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.

從上述的錯誤中應該可以看出,這是因為乙個第三方的庫不相容,我的工程中開啟了enable_bitcode(應該是公升級之後自動轉換的),而這個第三方的庫在編譯的時候沒有enable bitcode,所以導致上訴問題。

把enable bitcode設為no.

3 。ios開發證書顯示「此證書的簽發者無效」解決方法

4.不支援armv64 編碼

將build active architecture only設為yes 

5.could not find developer disk image

裝置版本高於xcode支援的最高版本。公升級xcode就可以。

6. 編譯器提示類似file is universal but does not contain a(n) armv6 slice for architecture armv6的錯誤。可能是您的xcode版本過低,推薦使用4.2以上的版本,將xcode的build settings中的architectures設定成arm7。

7. xcode提示有類似c++語法的錯誤。可能是您在呼叫介面時沒有設定成oc與c++混編模式(具體做法為將呼叫介面的實現檔案改為.mm的字尾)。

8. 提示類似ld: 3 duplicate symbols for architecture i386(arm7)的錯誤。可能是您用了與sdk相同的第三方庫,解決方法是刪除引起錯誤的第三方法庫的實現檔案(.m檔案)。

9. 編譯器提示類似file is universal (2 slices) but does not contain a(n) armv7s slice:…… for architecture armv7s的錯誤。是因為此版本的庫還不支援arm7s的環境,將build settings項中的valid architectures中的arm7s刪除即可解決。

10. 編譯器提示類似duplicate symbol _nn_decode in /users/…/libppuserpaykit.a(uppayrsa_nn.o)  for architecture armv7或command /developer/…/bin/llvm-g++-4.2 failed with exit code 1的錯誤。則是因為c++混編模式引起的,您可以將build settings 設定項裡面的other linker flags設定成空即可。

iOS開發常見警報Warning和Bug修復

解決方法 在podfile檔案中 增加一句inhibit all warnings 解決方法 project targets build setting library search paths,刪除對應路徑 解決方法 project targets build setting framework ...

iOS開發 棘手BUG

解決方法 changed the value of the compiler for c c objective c to default compiler.afnetworking 錯誤 request failed unacceptable content type text plain.網路請...

css常見開發(bug)

清除浮動的方式 1.常見的值有 left right both 2.clear 屬性有 left right 和 all 三個屬性值可選 3.給父元素設定 overflow hidden zoom 1 相容 ie6 ie7 在平常的css編寫過程中,zoom 1能夠比較神奇地解決ie下比較奇葩的bu...