mdtool在使用发行版时创建IPA文件,但在使用调试配置时不创建IPA文件 [英] mdtool creates IPA file when using release but not when using debug configuration

查看:86
本文介绍了mdtool在使用发行版时创建IPA文件,但在使用调试配置时不创建IPA文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为在xamarin中创建的应用程序的 release debug 创建 IPA 文件.我在Bamboo中使用以下命令创建了发行​​版 IPA 文件:

I want to create an IPA file for both the release and debug for my app created in xamarin. I created the release IPA file with the following command in Bamboo:

-v build -t:Build "-c:Release|iPhone" CustomerApp.sln

这也可以通过以下方式在终端上复制:

This can be replicated on the terminal too by doing this:

/path-to-/mdtool -v build -t:Build "-c:Release|iPhone" CustomerApp.sln

但是当我尝试使用-c:Debug | iPhone" 时,当尝试使用终端或Bamboo时,这将不会创建ipa文件.然后,我尝试了不同的配置,例如-c:Release | iPhoneSimulator" -c:Debug | iPhoneSimulator" -c:Ad Hoc | iPhone" -c:Debug | iPhoneSimulator" ,但所有这些都不会创建 IPA 文件.为什么会这样?

But when I try to use the "-c:Debug|iPhone" this will not create the ipa file, when trying to use the terminal or Bamboo. I then tried different configurations like "-c:Release|iPhoneSimulator", "-c:Debug|iPhoneSimulator", "-c:Ad Hoc|iPhone" and "-c:Debug|iPhoneSimulator" but all of these will not create the IPA file. Why is this?

我知道mdtool的路径和解决方案都很好,因为它适用于Release IPA,但它与Xamarin或Xcode中的配置有关吗?

I know that the path to mdtool and the solution are fine because it works for the Release IPA but is it to do with the configuration in either Xamarin or Xcode?

推荐答案

如果您与运行Xamarin Studio的Mac在同一台Mac上,则它应该模仿您在IDE中的配置文件设置.如果Xamarin Studio中的构建是使用该组合构建的,而对主项目没有任何下拉更改,则我希望mdtool可以正常工作.请注意,现在在Mac的Visual Studio 2017中,它将是/Applications/Visual Studio.app文件夹下的vstool.

If you are on the same Mac as the one you are running Xamarin Studio, it should mimic the provisioning profile setup you have in the IDE. If the build in Xamarin Studio builds with that combination with no drop down change on the main project, I would expect the mdtool to work. Note that now in Visual Studio 2017 for Mac it will be vstool under the /Applications/Visual Studio.app folder.

我的构建行如下所示:

/Applications/Visual\ Studio.app/Contents/MacOS/vstool --verbose build --f --target:Build --configuration:"Debug|iPhone" --buildfile:my.sln > $BuildResults

2019年1月更新,我在网络上几乎找不到关于vstool可以做什么以及如何使用它的指南.我相信它是mdtool的Microsoft版本,它是Github(mono/monodevelop)的Monodevelop项目的一部分. mdtool源代码位于monodevelop/main/src/tools文件夹下.它似乎是Monodevelop/Visual Studio安装中可用的各种工具的争夺者.正在运行

Update January 2019, I have found very little guidance on the web about what exactly vstool can do and how to use it. I believe it to be the Microsoft version of the mdtool, which is part of the Monodevelop project at Github (mono/monodevelop). The mdtool source code is under monodevelop/main/src/tools folder. It appears to be a runner for a variety of tools available in the Monodevelop / Visual Studio installation. Running

/Applications/Visual\ Studio.app/Contents/MacOS/vstool -q 

将列出可用的工具.在Monodevelop/main/man中,还有一个手册页作为Monodevelop构建过程的一部分,提供了更多启发.熟悉该项目的人向我展示了如何使用特定命令.

will list out the available tools. There is also a man page as part of the Monodevelop build process, at monodevelop/main/man which provides a bit more enlightenment. I was shown how to use the specific command by someone who was very familiar with the project.

这篇关于mdtool在使用发行版时创建IPA文件,但在使用调试配置时不创建IPA文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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