简体   繁体   中英

Signing for "Runner" requires a development team. Select a development team in the Signing & Capabilities editor

I can't Run my App on my iPhone in Release mode but I can Run it on Debug mode. In Release mode I get this error even though I am a-signed to a Team.

Signing for "Runner" requires a development team. Select a development team in the Signing & Capabilities editor.

I tried to sign-out from the Team and sign-in again and I also restarted Xcode.

Thank you for any Help LG

Is this right? 在此处输入图像描述

I assume that you did not select the team for all. It is only set for debug mode.

在此处输入图像描述

For those who doesn't want to add a development team id, you can do the following:

1- Open Podfile

2- Add the following

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
    target.build_configurations.each do |config|
      if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
        target.build_configurations.each do |config|
            config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
        end
      end
    end
  end
end

3- Pod install

4- Run your project

I had this after updating to XCode 14. Error is in my Flutter project.

I've added these lines to my post-install script in Podfile to disable code signing.

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
    target.build_configurations.each do |config|
      if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
        target.build_configurations.each do |config|
            config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
        end
      end
    end
  end
end

For me I had to change my iOS Deployment Target from 8 to 9 or above, after selecting the development team.

截屏

Whole steps from App store to XCode with Certificates, Identifiers & Profiles:
Step1: To Certificates, IDs & Profiles item
在此处输入图像描述 Step2: Adding new Certificates
在此处输入图像描述 在此处输入图像描述 Step3: Adding your personal certification key from the macOS Keychain Access
在此处输入图像描述 Step4: Adding your Identifiers
在此处输入图像描述 Step5: The Bundle ID should have the same name between App store and Xcode
在此处输入图像描述 在此处输入图像描述 Step6: Adding your Profiles
在此处输入图像描述 在此处输入图像描述 在此处输入图像描述

构建设置选项卡 For me I had to go to the Build Settings tab, search for Development Team and select a value from one of the available options. Changing the value on the Signing and Capabilities tab was not cascading through to the Build Settings tab. This is likely another XCode bug in xCode 12.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM