11

I was facing a dependency issue while trying to run the application. So, I cleaned the project through flutter clean and I tried to build the ios project by running flutter build ios, but I got this error even though I'm running in my ios emulator. I would be glad to receive any solution.

No valid code signing certificates were found
You can connect to your Apple Developer account by signing in with your Apple ID
in Xcode and create an iOS Development Certificate as well as a Provisioning 
Profile for your project by:
  1- Open the Flutter project's Xcode target with
       open ios/Runner.xcworkspace
  2- Select the 'Runner' project in the navigator then the 'Runner' target
     in the project settings
  3- Make sure a 'Development Team' is selected. 
     - For Xcode 10, look under General > Signing > Team.
     - For Xcode 11 and newer, look under Signing & Capabilities > Team.
     You may need to:
         - Log in with your Apple ID in Xcode first
         - Ensure you have a valid unique Bundle ID
         - Register your device with your Apple Developer Account
         - Let Xcode automatically provision a profile for your app
  4- Build or run your project again
  5- Trust your newly created Development Certificate on your iOS device
     via Settings > General > Device Management > [your new certificate] > Trust

For more information, please visit:
  https://developer.apple.com/library/content/documentation/IDEs/Conceptual/
  AppDistributionGuide/MaintainingCertificates/MaintainingCertificates.html

Or run on an iOS simulator without code signing
════════════════════════════════════════════════════════════════════════════════
No development certificates available to code sign app for device deployment

flutter doctor:

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.5.0, on macOS 11.5.2 20G95 darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.2)
[✓] VS Code (version 1.60.0)
[✓] Connected device (2 available)

• No issues found!

I've also editing the signing capabilities as the error recommends enter image description here

Shane
  • 4,185
  • 8
  • 47
  • 64
Rishikrishna
  • 183
  • 1
  • 2
  • 10
  • In need of moderator intervention. I thought this was the question that I asked today since it looked so similar. Can you remove my edits? thank you. – Shane Sep 13 '21 at 18:52

1 Answers1

13

You should do exactly as the error states.

  1. Open /{ProjectName}/ios/Runner.xcworkspace
  2. Click the top level runner file on the left
  3. Go to signing & capabilities
  4. Change your team and bundle identifier accordingly.

Xcode image

  • note that you can change your "Bundle Identifier" to anything it appears - but the important detail for sure is change your team! thanks! – Brad Parks May 18 '21 at 19:43