ios - WatchKit NSAppTransportSecurity 错误

标签 ios swift plist watchkit

运行项目时出现此错误:

enter image description here

我已经阅读了很多问题,但这些并不能帮助我解决我的问题。事实上,我已在我的 iOS 应用程序和 watchOS 扩展中将App Transport Security Settings 的值设置为 YES(如我的屏幕截图所示)。

enter image description here

有什么想法吗?谢谢!

最佳答案

“watchkitapp”目标本身似乎是不允许的。您仍然可以将 ATS-Key 添加到“watchkitapp-extension”目标的 Info.plist 中。

您应该能够像这样定义异常域:

enter image description here

关于ios - WatchKit NSAppTransportSecurity 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44506432/

相关文章:

ios - UIPageControl UIControlEventValueChanged - 我怎么知道以前的值?

ios - 一些绘制周期后 FPS 下降

ios - swift 电子邮件中的 plist 附件(NS Cocoa 错误域代码 260)

ios - ProfileChangeRequest 未触发时的 Firebase commitChangesWithCompletion

ios - 使用 Core Location 在 Apple Watch 上获得精确的室内位置更新?

swift - 如何在从命令行编译的 Swift 应用程序中使用文件夹?

ios - 单个 NSString 的样式 plist 输出

ios - 从 plist 文件解码数据

iOS UITableView 部分与 fetchedResultsController 混淆

ios - IOS 中具有多个标签的动态高度表单元格