1、報(bào)錯(cuò)信息ViewTouch.xib Compiling IB documents for earlier than iOS 7 is no longer supported.
把build for 的版本更改為iOS7.0 或以上錯(cuò)誤即可解決
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 的第三方庫(kù),再有一種就是將工程的 ENABLE_BITCODE 設(shè)置為 false 就可以了。
3、iOS 11圖片保存相冊(cè)權(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ī)則,在寫(xiě)入相冊(cè)時(shí)會(huì)詢(xún)問(wèn),沒(méi)有的話(huà)就會(huì)閃退。
info.plist Source Code對(duì)應(yīng)設(shè)置:
<key>NSCameraUsageDescription</key>
<string>請(qǐng)?jiān)试SAPP訪問(wèn)您的相機(jī)</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>請(qǐng)?jiān)试SAPP保存圖片到相冊(cè)</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>請(qǐng)?jiān)试SAPP訪問(wèn)您的相冊(cè)</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)
錯(cuò)誤原因:
Xcode10中已去除這個(gè)library。項(xiàng)目中有用到的話(huà),可以從舊版本Xcode中copy一份過(guò)來(lái)。
解決方法:
如果你自己的業(yè)務(wù)模塊使用了libstdc++,那么就把模塊代碼重新調(diào)整為依賴(lài)libc++,然后重新檢查是否存在問(wèn)題,重新編譯
如果你引用的三方庫(kù)使用了libstdc++,那么向三方庫(kù)尋求支持,進(jìn)行升級(jí)