简体   繁体   English

allowProvisioningUpdates 在自动签名 fastlane 中不起作用

[英]allowProvisioningUpdates not working in automatic signing fastlane

I'm trying to upload build through Github action but i'm stuck in the last point.我正在尝试通过 Github 操作上传构建,但我停留在最后一点。 I'm trying to upload build through automatic signing.我正在尝试通过自动签名上传构建。 But every time got the error.但是每次都报错。

FastFile:-快速文件:-

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:- Xcode:-

图片

I have tried with and without “-allowProvisioningUpdates”.我试过使用和不使用“-allowProvisioningUpdates”。

With I get the following:我得到以下信息:

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]'.代码签名错误:没有使用 Xcode 注册的帐户。将您的开发者帐户添加到 Xcode应用名称]'。

Without I get:没有我得到:

No profiles for '[my app name]' were found: Xcode couldn't find any iOS App Development provisioning profiles matching '[my app name]'.找不到“[我的应用程序名称]”的配置文件:Xcode 找不到与“[我的应用程序名称]”匹配的任何 iOS 应用程序开发配置文件。 Automatic signing is disabled and unable to generate a profile.自动签名已禁用且无法生成配置文件。 To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.要启用自动签名,请将 -allowProvisioningUpdates 传递给 xcodebuild。

Question: Can someone please explain to me how to solve this, I've tried with above code but no results yet.问题:有人可以向我解释如何解决这个问题吗,我试过上面的代码但还没有结果。

Can someone please explain to me How to upload app test Flight with automatic signing?有人可以向我解释如何使用自动签名上传应用程序测试飞行吗?

Any help would be greatly appreciated.任何帮助将不胜感激。

Thanks in advance.提前致谢。

My biggest Mistake, i was not set the provisional profile in the build settings.我最大的错误,我没有在构建设置中设置临时配置文件。 Please update the same provisional profile in the build setting option.请在构建设置选项中更新相同的临时配置文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 “要启用自动签名,请将 -allowProvisioningUpdates 传递给 xcodebuild。 (在项目'Runner'的目标'Runner'中)”怎么办? - “To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'Runner' from project 'Runner')” What to do? 将 Xcode 自动签名设置为 false,并使用 fastlane match 和 gym 设置配置文件和证书 - Set Xcode automatic signing to false and set provision profile and certificate with fastlane match and gym 在使用Xcode自动代码签名时如何使用Fastlane和Crashlytics进行构建? - How to use Fastlane and Crashlytics to build while using Xcode automatic code signing? 使用“自动管理签名”/ allowProvisioningUpdates时,何时更新配置文件? - When are profiles renewed when using “Automatically manage signing”/allowProvisioningUpdates? Xcode签名工作但fastlane没有 - Xcode signing works but fastlane does not Fastlane,Pilot - 自动选择团队 - Fastlane, Pilot - Automatic Team Selection Jenkins/fastlane - 没有找到本地代码签名身份 - Jenkins/fastlane - There are no local code signing identities found Xcode 手动签名有效,但不能自动签名 - Xcode manual signing works but not Automatic signing xcodebuild可以管理自动签名吗? - Can xcodebuild manage automatic signing? Xcode自动代码签名分发 - Xcode automatic code signing distribution
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM