倒序
4.IOS-提示The resource could not be loaded because the App Transport Security policy requires the use of
原因是使用了 http请求网络数据,而IOS 9引入了新特性App Transport Security (ATS),不能直接使用http请求。
解决方法
在Info文件中,点击加号创建一个名为NSAppTransportSecurity的字典:
回车
然后先展开App Transport Security Settings左边的箭头,再点击右边的加号
选择默认的第一个就行,然后将其值改为YES
3.报错信息:The Swift pod `DKPhotoGallery` depends upon `SDWebImage`, which does not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may set `use_modular_headers!` globally in your Podfile, or specify `:modular_headers => true` for particular dependencies.
解决:
参考:由于podfile中的模块头设置,Flutter iOS无法构建-腾讯云开发者社区-腾讯云
1.xcode 下载模拟器报错 Could not download iOS
报错:
解决:
1、去官网下载自己需要 地址(https://developer.apple.com/download/all)
2、下载完成后,执行以下命令添加:xcrun simctl runtime add /路径/iOS_17.4_Simulator_Runtime.dmg(这个是自己下载的文件的地址)
3、等待添加完毕
2.iOS Xcode 升级Xcode15报错: SDK does not contain 'libarclite' at the path '/Applications/Xcode.app/Con...
iOS Xcode 升级Xcode15报错: 缺少文件libarclite
仔细查看报错代码:
SDK does not contain 'libarclite' at the path '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a'; try increasing the minimum deployment target
这个路径: 缺少文件, 那么进入这个路径进行查看
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/
lib/
报错的情况下没有arc文件夹,也没有libarclite_iphonesimulator.a文件,
1、新建arc文件夹
2、下载:https://github.com/kamyarelyasi/Libarclite-Files中的文件
这个链接下的内容如下:
若是模拟器下载文件:libarclite_iphonesimulator.a
若是真机下载文件:libarclite_iphoneos.a
3、将下载下来的文件粘贴到/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc下
4.重新运行后将修复这个问题