Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[XCode 14 issue]: No signing certificate iOS Development found. needs selected Development Team for Pod Bundles #20626

Closed
salvatoreboemia opened this issue Sep 6, 2022 · 7 comments

Comments

@salvatoreboemia
Copy link

salvatoreboemia commented Sep 6, 2022

Hi

since I set up on Azure XCode 14 the fastlane fails in the build_app phase

Local XCode 14 works (assigning the teamID to the two PODs

ERRORS:

- /Users/runner/work/1/s/Pods/Pods.xcodeproj: error: No signing certificate "iOS Development" found: 
No "iOS Development" signing certificate matching team ID "XXXXX" 
with a private key was found. (in target 'POD NAME XXXX' from project 'Pods')

- /Users/runner/work/1/s/Pods/Pods.xcodeproj: error: No signing certificate "iOS Development" found:
No "iOS Development" signing certificate matching team ID "XXXXX" 
with a private key was found. (in target 'POD NAME XXXX' from project 'Pods')

Screenshot 2022-09-06 at 12 24 41

Do you have any suggestions on how to fix this error?

Thanks

@fastlane-bot
Copy link

It seems like you have not included the output of fastlane env
To make it easier for us help you resolve this issue, please update the issue to include the output of fastlane env 👍

@josher8
Copy link

josher8 commented Sep 6, 2022

Add this to your podfile then run pod install again.

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
    end
  end
end

@salvatoreboemia
Copy link
Author

salvatoreboemia commented Sep 7, 2022

Add this to your podfile then run pod install again.


post_install do |installer|

  installer.pods_project.targets.each do |target|

    target.build_configurations.each do |config|

      config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'

    end

  end

end

Super!!! Thanks

works perfectly with both Xcode 14 local and Azure fastlane

@crazymanish
Copy link
Member

This is the CocoaPods issue:

closing it

@JorgeAGomez
Copy link

Add this to your podfile then run pod install again.

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
    end
  end
end

This did the trick for me. Thank you!

@bshirley
Copy link

bshirley commented Apr 6, 2023

This may solve the problem differently:

post_install do |installer|


  # This may only be needed temporarily for XCode 14. Two pods needed signing identities.
  # An update to Xcode 14.0 or cocoapods 1.11.3 might remove the need for this.
  # Get main project development team id
  dev_team = ""
  project = installer.aggregate_targets[0].user_project
  project.targets.each do |target|
      target.build_configurations.each do |config|
          if dev_team.empty? and !config.build_settings['DEVELOPMENT_TEAM'].nil?
              dev_team = config.build_settings['DEVELOPMENT_TEAM']
          end
      end
  end
  
  # Fix bundle targets' 'Signing Certificate' to 'Sign to Run Locally'
  installer.pods_project.targets.each do |target|
      if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
          target.build_configurations.each do |config|
              config.build_settings['DEVELOPMENT_TEAM'] = dev_team
          end
      end
  end  

end

@Yusufkhan11223344556677

Hi

since I set up on Azure XCode 14 the fastlane fails in the build_app phase

Local XCode 14 works (assigning the teamID to the two PODs

ERRORS:

- /Users/runner/work/1/s/Pods/Pods.xcodeproj: error: No signing certificate "iOS Development" found: 
No "iOS Development" signing certificate matching team ID "XXXXX" 
with a private key was found. (in target 'POD NAME XXXX' from project 'Pods')

- /Users/runner/work/1/s/Pods/Pods.xcodeproj: error: No signing certificate "iOS Development" found:
No "iOS Development" signing certificate matching team ID "XXXXX" 
with a private key was found. (in target 'POD NAME XXXX' from project 'Pods')
Screenshot 2022-09-06 at 12 24 41

Do you have any suggestions on how to fix this error?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants