allowProvisioningUpdates 在自动签名 fastlane 中不起作用
allowProvisioningUpdates not working in automatic signing fastlane
我正在尝试通过 Github 操作上传构建,但我卡在了最后一点。我正在尝试通过自动签名上传构建。但是每次都报错
快速文件:-
platform :ios do
lane :closed_beta do
keychain_name = TEMP_KEYCHAIN_USER
keychain_password = TEMP_KEYCHAIN_PASSWORD
ensure_temp_keychain(keychain_name, keychain_password)
api_key = app_store_connect_api_key(
key_id: APPLE_KEY_ID,
issuer_id: APPLE_ISSUER_ID,
key_content: "#{ENV["APPLE_KEY_CONTENT"]}".gsub('\n', '\n'),
is_key_content_base64:true,
duration: 1200,
in_house: false
)
increment_build_number(xcodeproj: "**********")
enable_automatic_code_signing(
team_id: "********",
)
gym(
configuration: "Release",
scheme: "*******",
export_xcargs: "-allowProvisioningUpdates",
workspace: '********',
include_bitcode: false,
export_method: "app-store",
export_options: {
uploadBitcode: false,
uploadSymbols: false,
compileBitcode: false,
provisioningProfiles: {
DEVELOPER_APP_ID => PROVISIONING_PROFILE_SPECIFIER
},
"signingStyle": "manual"
}
)
pilot(
apple_id: "*******",
app_identifier: "*******",
skip_waiting_for_build_processing: true,
skip_submission: true,
distribute_external: false,
notify_external_testers: false,
ipa: "./*******.ipa"
)
delete_temp_keychain(keychain_name)
end
Xcode:-
我试过使用和不使用“-allowProvisioningUpdates”。
我得到以下信息:
Code Signing Error: There are no accounts registered with Xcode. Add your developer account to Xcode
Code Signing Error: No profiles for '[my app name]' were found: Xcode couldn't find any iOS App Development provisioning profiles matching '[my app name]'.
没有我得到:
No profiles for '[my app name]' were found: Xcode couldn't find any iOS App Development provisioning profiles matching '[my app name]'.
Automatic signing is disabled and unable to generate a profile.
To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.
问题:谁能告诉我如何解决这个问题,我已经尝试了上面的代码,但还没有结果。
有人可以向我解释一下如何使用自动签名上传应用测试 Flight 吗?
如有任何帮助,我们将不胜感激。
提前致谢。
我最大的错误,我没有在构建设置中设置临时配置文件。请更新构建设置选项中的临时配置文件。
我正在尝试通过 Github 操作上传构建,但我卡在了最后一点。我正在尝试通过自动签名上传构建。但是每次都报错
快速文件:-
platform :ios do
lane :closed_beta do
keychain_name = TEMP_KEYCHAIN_USER
keychain_password = TEMP_KEYCHAIN_PASSWORD
ensure_temp_keychain(keychain_name, keychain_password)
api_key = app_store_connect_api_key(
key_id: APPLE_KEY_ID,
issuer_id: APPLE_ISSUER_ID,
key_content: "#{ENV["APPLE_KEY_CONTENT"]}".gsub('\n', '\n'),
is_key_content_base64:true,
duration: 1200,
in_house: false
)
increment_build_number(xcodeproj: "**********")
enable_automatic_code_signing(
team_id: "********",
)
gym(
configuration: "Release",
scheme: "*******",
export_xcargs: "-allowProvisioningUpdates",
workspace: '********',
include_bitcode: false,
export_method: "app-store",
export_options: {
uploadBitcode: false,
uploadSymbols: false,
compileBitcode: false,
provisioningProfiles: {
DEVELOPER_APP_ID => PROVISIONING_PROFILE_SPECIFIER
},
"signingStyle": "manual"
}
)
pilot(
apple_id: "*******",
app_identifier: "*******",
skip_waiting_for_build_processing: true,
skip_submission: true,
distribute_external: false,
notify_external_testers: false,
ipa: "./*******.ipa"
)
delete_temp_keychain(keychain_name)
end
Xcode:-
我试过使用和不使用“-allowProvisioningUpdates”。
我得到以下信息:
Code Signing Error: There are no accounts registered with Xcode. Add your developer account to Xcode Code Signing Error: No profiles for '[my app name]' were found: Xcode couldn't find any iOS App Development provisioning profiles matching '[my app name]'.
没有我得到:
No profiles for '[my app name]' were found: Xcode couldn't find any iOS App Development provisioning profiles matching '[my app name]'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.
问题:谁能告诉我如何解决这个问题,我已经尝试了上面的代码,但还没有结果。
有人可以向我解释一下如何使用自动签名上传应用测试 Flight 吗?
如有任何帮助,我们将不胜感激。
提前致谢。
我最大的错误,我没有在构建设置中设置临时配置文件。请更新构建设置选项中的临时配置文件。