I tried to launch a flutter app into my ios device but keep getting these errors.
I've tried everything online. I have no clue what to do.
Xcode's output: ↳ === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
Code Signing Error: Failed to create provisioning profile. The app ID "io.flutter.plugins.firebaseMlVisionExample" cannot be registered to your development team. Change your bundle identifier to a unique string to try again.
Code Signing Error: No profiles for 'io.flutter.plugins.firebaseMlVisionExample' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'io.flutter.plugins.firebaseMlVisionExample'.
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 12.2'
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 12.2'
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 12.2'
Could not build the precompiled application for the device.
The flutter app should be installed on my iPhone.
答案 0 :(得分:0)
At this point you should open the iOS project in XCode and follow Apple's instructions for preparing your application for distribution. This will resolve the errors you are seeing. See: https://flutter.dev/docs/deployment/ios
答案 1 :(得分:0)
打开your_project_folder/ios/Runner.xcworkspace
,将启动Xcode。然后在Team
部分下选择Signing
(选项中应包含Personal Team选项)。如果出现错误,请尝试将Bundle Identifier
下的Indentity
修改为一些唯一的字符串。现在,您可以在ios设备上调试flutter应用程序。
答案 2 :(得分:0)
根据我的亲身经历,原因是因为我没有选择我的开发团队作为Runner项目。在Apple开发人员控制台上,我在那里有捆绑软件ID,但是我没有指定我将用于该项目的团队。要解决此问题,请使用xcode打开应用程序的运行程序,然后前往签名/功能选择您的团队。