来自 MDTool 的 .IPA 文件 [英] .IPA files from MDTool

查看:10
本文介绍了来自 MDTool 的 .IPA 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何让 MDTool 为我的 MonoTouch 项目创建 .IPA 文件?

How can I make MDTool create .IPA files for my MonoTouch project?

当我从 MonoDevelop GUI 应用程序中构建时,会创建 .IPA 文件.

When I build from within the MonoDevelop GUI application, .IPA files are created.

但是 mdtool build --configuration:AppStore|iPhone --project:MyProject 只是创建 .APP 文件和其他东西.

But mdtool build --configuration:AppStore|iPhone --project:MyProject just creates .APP files and other things.

还是因为运行 MDTool 的用户在他们的钥匙串中没有证书等,所以它不会创建签名的 IPA?

Or does it not create a signed IPA because the user running MDTool does not have the certificates etc in their keychain?

推荐答案

mdtool build 如果在项目设置中启用此选项,将自动生成 IPA 文件,因此您无需执行任何特殊的事情来实现它.

mdtool build automatically produces IPA files if this is enabled in the project settings, so you don't need to do anything special to make it happen.

在这种情况下的问题是 mdtool 运行以生成 IPA 文件的 codesign 步骤失败并显示错误消息不允许用户交互"(它从 mdtool 输出中没有立即明显看出这是一个错误).

The problem in this case is that the codesign step which mdtool runs to produce an IPA file was failing with the error message "User interaction is not allowed" (it wasn't immediately obvious from the mdtool output that this was an error).

反过来,这是因为 codesign 工具无法访问包含分发证书和配置文件的钥匙串.

This, in turn, is because the codesign tool cannot access the keychain containing the distribution certificate and provisioning file.

要解决此问题,您需要运行 security unlock-keychain/Users/user/Library/Keychains/login.keychain - 或任何包含密钥的钥匙串.

To remedy this, you need to run security unlock-keychain /Users/user/Library/Keychains/login.keychain - or whichever keychain contains the keys.

此后,mdtool build 将自动生成 IPA 文件.

After this, mdtool build will produce IPA files automatically.

这篇关于来自 MDTool 的 .IPA 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆