.IPA files from MDTool

人走茶凉 提交于 2019-12-04 13:14:18

问题


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

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

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

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


回答1:


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.

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).

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

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

After this, mdtool build will produce IPA files automatically.



来源:https://stackoverflow.com/questions/13210769/ipa-files-from-mdtool

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!