使用 adHhoc 将应用程序发布到 testFlight 时出现 Fastlane 错误
Fastlane error while publishing app to testFlight using adHhoc
我正在使用 Fastlane
自动化服务器开发 CI/CD。我已经在我的机器上配置了 Fastlane。
现在,我正在尝试使用 AdHoc Distribution 证书在 TestFlight 上发布我的应用程序。当我 运行 在终端中执行以下命令时:
fastlane ios beta
无法导出,退出状态为:70,给出的错误是
Provisioning profile "myAdHoc_test" is not an "iOS App Store" profile.
也在日志中的某处打印
▸ 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" 操作,这意味着上传到应用商店进行 Beta 审查,显然我们需要应用商店分发证书。
但我使用的是 adHoc。
通过在 FastFile 中使用"pilot" 操作解决了这个问题。
我正在使用 Fastlane
自动化服务器开发 CI/CD。我已经在我的机器上配置了 Fastlane。
现在,我正在尝试使用 AdHoc Distribution 证书在 TestFlight 上发布我的应用程序。当我 运行 在终端中执行以下命令时:
fastlane ios beta
无法导出,退出状态为:70,给出的错误是
Provisioning profile "myAdHoc_test" is not an "iOS App Store" profile.
也在日志中的某处打印
▸ 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" 操作,这意味着上传到应用商店进行 Beta 审查,显然我们需要应用商店分发证书。
但我使用的是 adHoc。
通过在 FastFile 中使用"pilot" 操作解决了这个问题。