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

查看:90
本文介绍了来自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文件,则会自动生成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构建将自动生成IPA文件.

After this, mdtool build will produce IPA files automatically.

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

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