我正在尝试使用CakeBuild & FastLane来自动化我的Xamarin项目的构建过程。我有一个使用Cake执行"build“命令的脚本,但它不能输出IPA/APK文件。这是我当前的脚本
MSBuild("./MyDirectory/MyProject.sln", settings =>
settings.SetConfiguration("Release")
.WithTarget("Build")
.WithProperty("Platform", "iPhone")
.WithProperty("BuildIpa", "true")
.WithProperty("OutputPath", "bin/Release/")
.WithProperty("TreatWarningsAsErrors", "false"));目录"bin/release“始终为空
发布于 2017-07-18 21:40:59
我更幸运的是使用Cake.Xamarin生成ipa和apk文件。
也就是说,如果你是为iPhone构建的,你是否厌倦了将配置设置为"Release|iPhone"?
发布于 2017-07-18 05:02:11
您是否尝试过在解决方案中将目标设置为iOS项目的名称?
请记住,将项目名称中的.替换为_ ...
所以像这样的东西。.WithTarget ("MyProject_iOS")
发布于 2017-07-19 16:32:22
我假设你是在windows机器上运行这个程序。然后,您可能必须指定您的Xamarin构建代理。但我对此不太确定。尝试添加属性ServerAddress、ServerUser和ServerPassword,如下所示:
MSBuild("./MyDirectory/MyProject.sln", settings =>
settings.SetConfiguration("Release")
.WithTarget("Build")
.WithProperty("Platform", "iPhone")
.WithProperty("BuildIpa", "true")
.WithProperty("ServerAddress", "NAME_OF_YOUR_MAC")
.WithProperty("ServerUser", "NAME_OF_YOUR_MAC_USER")
.WithProperty("ServerPassword", "PASSWORD_OF_YOUR_MAC_USER")
.WithProperty("OutputPath", "bin/Release/")
.WithProperty("TreatWarningsAsErrors", "false"));https://stackoverflow.com/questions/44956828
复制相似问题