简体   繁体   中英

Code signing error while running on physical device

So I have an issue while running Flutter app on real device. When I build and run it for simulator - it works fine. But for my iPhone, I have this error message:

════════════════════════════════════════════════════════════════════════════════
Building a deployable iOS app requires a selected Development Team with a 
Provisioning Profile. Please ensure that a Development Team is selected 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 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

For more information, please visit:
  https://flutter.dev/docs/get-started/install/macos#deploy-to-ios-devices

Or run on an iOS simulator without code signing
════════════════════════════════════════════════════════════════════════════════

So I have deleted the build folder, also did run flutter clean - no result. Opened Xcode, changed iOS deployment target to 9.0 , selected development team account in Signing & Capabilities - no result. But what's funny, when I run this project from Xcode on simulator and real device - it works perfectly. Any suggestions on what else can I do? I'm not really sure whether that might be a hint in solving this but I have upgraded to Flutter 3.0.1 few days ago so maybe that's something after upgrading?

Thanks

1 - delete file from ios

  • .symlinks
  • Pods
  • Podflie
  • Podfile.lock

Clear xcode cache from storage

After that

flutter clean

run again!

Happy codding!

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