swift - 将网络配置文件添加到 iOS 10 应用程序中

标签 swift xcode ios10 apple-configurator

我有一个在 iOS 10.x 上用 swift 编写的网络应用程序。该应用程序需要特定的网络配置(与 Wi-Fi 相关),在我使用 Apple Configurator 2 手动创建网络配置文件然后将此配置文件推送到 iOS 10 设备的情况下,它可以正常工作。

问题 1:是否可以将网络配置文件包含到 iOS 10 应用程序中并自动安装该配置文件?

问题 2:有没有什么方法可以在没有 Apple Configurator 的情况下将网络配置文件安装到 iOS 10 设备?

最佳答案

https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/iPhoneOTAConfiguration/Introduction/Introduction.html 中所述

There are four ways to deploy configuration profiles:

  • By physically connecting the device
  • In an email message
  • On a webpage
  • Using over-the air configuration as described in this document

也许您可以强制用户使用指向配置文件的链接打开网页。确保如果用户单击该链接,该链接将在 safari 中打开,而不是在您的应用中打开。

关于swift - 将网络配置文件添加到 iOS 10 应用程序中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39800813/

相关文章:

ios - 从获取请求中获取对象数组

ios - 如何处理 UICollectionviewCell 或 UITableViewCell 内的按钮触摸

ios - 选择添加到 SwiftUI 列表的新项目

ios - 山狮下载和兼容问题

ios - UIActionsheet 不显示运行 iOS7 的 iPad 上的所有按钮

ios - XCode 9.1 链接器错误与来自 Unity 5.6.4 项目的 facebook sdk 7.11 中的位码相关

xcode - 尝试在 Jenkins 上使用 xcodebuild 使用 Cocoapods 构建应用程序时出现链接错误

swift - 使用 PHCachingImageManager().requestAVAsset 时崩溃

ios - 如何修复 swift 3 中的 "missing argument label in call"

ios - 如果我们在真正的预提交处理程序中,由于 CA 限制,我们实际上不能添加任何新的栅栏