如何在 iOS 应用程序中嵌入配置文件
我在 iOS 企业开发人员计划文档中读到,配置文件可以嵌入到应用程序中。
我想知道这是如何做到的。它是简单地添加到 IPA 的 Payload 目录中,还是包含在项目目录中?
我还想知道这种技术是否普遍适用于所有部署模式/程序,还是仅适用于企业分发部署?
I read in the iOS Enterprise Developer Program docs that a provisioning profile can be embedded with the application.
I am wondering how this is done. Is it simply added to the Payload directory of an IPA, or included in the project directory?
I also wonder whether this technique is generally available for all deployment modes/Programs, or is it just for Enterprise distribution deployments?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该文件应称为embedded.mobileprovision
它应放置在.ipa zip 文件内,在Payload/.app/ 目录中
XCode 的“构建和存档”然后“共享...”功能会自动添加(因此您可以在 XCode 的共享功能生成的 .ipa 上使用 unzip 来查看文件应该去哪里)。
我不清楚具体支持哪些场景,但是当您直接从网络安装到设备上时,它绝对适用于临时构建(即使用此处描述的方法:http://developer.apple.com/iphone/library/featuredarticles/FA_Wireless_Enterprise_App_Distribution/Introduction/Introduction.html)
The file should be called embedded.mobileprovision
It should be placed inside the .ipa zip file, in the directory Payload/.app/
XCode's "Build and Archive" then "Share..." functionality automatically adds it (so you can use unzip on the .ipa generated by XCode's share feature to see where the files should go).
I'm unclear exactly which scenarios this is supported in, however it definitely works for adhoc builds when you're installing directly from the web onto the device (ie. using the method described here: http://developer.apple.com/iphone/library/featuredarticles/FA_Wireless_Enterprise_App_Distribution/Introduction/Introduction.html )