ios开发错误积累

倒序

4.IOS-提示The resource could not be loaded because the App Transport Security policy requires the use of

参考:IOS-提示The resource could not be loaded because the App Transport Security policy requires the use of-CSDN博客

原因是使用了 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.重新运行后将修复这个问题

  

  • 9
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值