[英]Code signing error while running on physical device
So I have an issue while running Flutter app on real device.所以我在真实设备上运行 Flutter 应用程序时遇到了问题。 When I build and run it for simulator - it works fine.
当我为模拟器构建并运行它时 - 它工作正常。 But for my iPhone, I have this error message:
但对于我的 iPhone,我收到以下错误消息:
════════════════════════════════════════════════════════════════════════════════
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.所以我删除了
build
文件夹,也确实运行了flutter clean
- 没有结果。 Opened Xcode, changed iOS deployment target to 9.0
, selected development team account in Signing & Capabilities
- no result.打开 Xcode,将 iOS 部署目标更改为
9.0
,在Signing & Capabilities
中选择开发团队帐户 - 没有结果。 But what's funny, when I run this project from Xcode on simulator and real device - it works perfectly.但有趣的是,当我在模拟器和真实设备上从 Xcode 运行这个项目时 - 它运行良好。 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?我不确定这是否可能是解决这个问题的提示,但我几天前已经升级到 Flutter
3.0.1
,所以也许这是升级后的问题?
Thanks谢谢
1 - delete file from ios 1 - 从 ios 中删除文件
Clear xcode cache from storage从存储中清除 xcode 缓存
After that在那之后
flutter clean
run again!再次运行!
Happy codding!快乐编码!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.