问题1:
UploadImageDemo[24001:958688] [access] 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.
解决办法:
-
Privacy - Camera Usage Description
访问相机以拍照 -
Privacy - Location When In Use Usage Description
允许定位>以把位置保存到照片中 -
Privacy - Microphone Usage Description
访问麦克风以录像 -
Privacy - Photo Library Usage Description
访问相册以选择照片
问题2: 异常或全局断点问题定位


问题3:error: Illegal Configuration: Safe Area Layout Guide before iOS 9.0

解决办法:
取消使用 Use Safe Area Layout Guides 选项,去针对不同的设备写代码适配。

问题4:This iPhone 5s (Model A1453, A1533) is running iOS 12.0 (16A366), which may not be supported by this version of Xcode

解决办法:
① 去网上下载一个iOS12.0 的真机包
② 进入这个路径:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport


如果该问题依旧存在,那么请升级Xcode吧,说明你Xcode版本太低了而手机版本太高了~😂
问题5:xcode多个模拟器


解决方法:
退出Xcode并且关闭模拟器:然后在终端(Terminal)输入如下2行命令:
1、sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService
2、rm -rf ~/Library/Developer/CoreSimulator/Devices重启Xcode
问题6:代理警告⚠️

Incompatible pointer types assigning to 'id<BDFManuCenterListReloadDataDelegate>
原因:使用了类方法,在该方法里写delegate的时候,就出现警告。
解决:用一个实例(对象)方法(➖减号方法) + 单例模式。
问题7:编译错误

原因:手机系统升级到10.1.1后 Xcode8.0 不支持
解决:Pods->TARGETS->你的出错的第三方sdk 库 ->General->Sign(Enable Development Signing),然后在identity里在选择info.plist


问题8:升级了Xcode10 打开旧项目报错Multiple commands produce

解决办法:
择 xcode -> File ->Workspaces Seettings.... -> Build System -> Legacy Build System ->Done

问题9:升级了Xcode10 library not found for -lstdc++.6.0.9

解决办法: 下载-lstdc++.6.0.9库,并执行里面install.sh脚本文件或者移除-lstdc++.6.0.9旧库。
Xcode : library not found for -lstdc++.6.0.9.
问题10:真机运行报下列错误

错误原因:清理xcode缓存的时候,误操作,把Library ▸ Frameworks清理掉了几个O__O "…
解决办法: 在路径 Macintosh HD ▸ 应用程序 ▸ Xcode ▸ Contents ▸ Developer ▸ Platforms ▸ iPhoneOS.platform ▸ Developer ▸ SDKs ▸ iPhoneOS.sdk ▸ System ▸ Library ▸ Frameworks
,如果你知道误操作删除了那几个库,直接把误删除的那几个库恢复即可;如果不知道,让你同事把他电脑上改路径的 Library ▸ Frameworks
这个文件夹复制给你一份,替换你自己电脑的这个文件也可行。

问题11:CocoaPods安装库报错Unable to find a pod with name matching
[!]The Pods-FNIMDemo target has frameworks with conflicting names:nimsdk.framework

错误原因:猜测可能是我pod的这个网易云信版本太高了,pod search出来的仓库版本低于github仓库版本。
解决办法: 执行 pod repo update --verbose 更新本地仓库,本地仓库完成后,即可搜索到指定的第三方库,再重新pod install即可。
参考: https://github.com/dabing1022/Blog/issues/3
......
本文将定期持续更新,也希望小伙伴们一起留言补充,共同完善~
网友评论