1有鹿、報錯信息ViewTouch.xib Compiling IB documents for earlier than iOS 7 is no longer supported.
把build for 的版本更改為iOS7.0 或以上錯誤即可解決
2、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.
一種就是換成 enable bitcode 的第三方庫,再有一種就是將工程的 ENABLE_BITCODE 設(shè)置為 false 就可以了嚷兔。
3滔以、iOS 11圖片保存相冊權(quán)限
This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value explaining to the user how the app uses this data.
NSPhotoLibraryAddUsageDescription是iOS 11新推出的隱私規(guī)則四濒,在寫入相冊時會詢問奴愉,沒有的話就會閃退。
info.plist Source Code對應(yīng)設(shè)置:
<key>NSCameraUsageDescription</key>
<string>請允許APP訪問您的相機</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>請允許APP保存圖片到相冊</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>請允許APP訪問您的相冊</string
4此迅、 修改build system
在Xcode菜單欄 -> File -> Project Setting汽畴,將build system修改為legacy build system,然后clean后編譯耸序。
5忍些、 library not found for -lstdc++.6.0.9
ld: library not found for -lstdc++.6.0.9
clang: error: linker command failed with exit code 1 (use -v to see invocation)
錯誤原因:
Xcode10中已去除這個library。項目中有用到的話坎怪,可以從舊版本Xcode中copy一份過來罢坝。
解決方法:
如果你自己的業(yè)務(wù)模塊使用了libstdc++,那么就把模塊代碼重新調(diào)整為依賴libc++搅窿,然后重新檢查是否存在問題嘁酿,重新編譯
如果你引用的三方庫使用了libstdc++,那么向三方庫尋求支持男应,進行升級