Flutter - 代码签名错误:找不到“com.xxx.yourApp”的配置文件
Posted
技术标签:
【中文标题】Flutter - 代码签名错误:找不到“com.xxx.yourApp”的配置文件【英文标题】:Flutter - Code Signing Error: No profiles for 'com.xxx.yourApp' were found 【发布时间】:2019-02-07 16:48:09 【问题描述】:在 IntelliJ CE 版本升级后,我在 Flutter 项目编译期间开始出现错误。
Code Signing Error: No profiles for 'com.xxx.yourApp' were found
完整的错误堆栈:
Flutter
Code Signing Error: No profiles for 'com.xxx.yourApp' were found
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
Code Signing Error: No profiles for 'com.xxx.yourApp' were found: Xcode couldn't find any ios App Development provisioning profiles matching 'com.xxx.yourApp'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.
The use of Swift 3 @objc inference in Swift 4 mode is deprecated. Please address deprecated @objc inference warnings, test your code with “Use of deprecated Swift 3 @objc inference” logging enabled, and then disable inference by changing the "Swift 3 @objc Inference" build setting to "Default" for the "Runner" target.
The use of Swift 3 @objc inference in Swift 4 mode is deprecated. Please address deprecated @objc inference warnings, test your code with “Use of deprecated Swift 3 @objc inference” logging enabled, and then disable inference by changing the "Swift 3 @objc Inference" build setting to "Default" for the "Runner" target.
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.4'
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.4'
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.4'
Could not build the precompiled application for the device.
Error launching application on iPhone
我能做些什么来解决它?
【问题讨论】:
【参考方案1】:请记住,您的 IntelliJ Flutter 项目中有指向 XCode iOS 项目的链接。
要解决此问题,请在 XCode 中打开内部 iOS 项目:
yourApp/iOS
尝试在 XCode 中编译并运行项目 然后返回 IntelliJ 再次运行。
签名设置在常规 -> 签名下
更多内容请参考本期info
【讨论】:
为我解决了!谢谢!当我这样做一次。那就不用Xcode了,只有android Studio可以启动我的flutter项目。以上是关于Flutter - 代码签名错误:找不到“com.xxx.yourApp”的配置文件的主要内容,如果未能解决你的问题,请参考以下文章
Flutter 错误:找不到符号导入 com.google.firebase.firestore.LoadBundleTaskProgress;
代码签名错误:找不到与应用程序标识符匹配的有效配置文件...