我正在使用Fastlane
自动化服务器处理CI / CD。我在我的机器上配置了Fastlane。
现在,我正在尝试使用AdHoc Distribution证书在TestFlight上发布我的应用程序。当我在终端中运行以下命令时:
fastlane ios beta
它无法导出退出状态:70,它给出的错误是
供应配置文件“myAdHoc_test”不是“iOS App Store”配置文件。
它也在日志的某个地方打印
▸ Archive Succeeded
[13:50:59]: Generated plist file with the following values:
[13:50:59]: ▸ -----------------------------------------
[13:50:59]: ▸ {
[13:50:59]: ▸ "provisioningProfiles": {
[13:50:59]: ▸ "com.testApp": "myAdHoc_test"
[13:50:59]: ▸ },
[13:50:59]: ▸ "method": "app-store",
[13:50:59]: ▸ "signingStyle": "manual"
[13:50:59]: ▸ }
我想知道是不是可以使用AdHoc证书在testFlight上启动构建。因为几乎所有时间我们都使用AdHoc证书进行TestFlight构建。
如果有人遇到过同样的错误,请告诉我你是如何解决的。或者建议我如果我做错了什么。
以下是我的FastFile中的内容:
default_platform(:ios)
platform :ios do
desc "Push a new beta build to TestFlight"
lane :beta do
build_app(scheme: "testApp")
gym(
scheme: "testApp",
export_options: {
provisioningProfiles: {
"com.testApp": "myAdHoc_test"
}
}
)
upload_to_testflight
end
end
好吧,我的错误......我搞砸了......
在我的FastFile中,我使用“beta”操作,这意味着上传到appstore进行Beta Review,显然我们需要app store分发证书。
但我正在使用adHoc。
通过在FastFile中使用“pilot”操作解决了这个问题。