Flutter - 代码签名错误:找不到“com.xxx.yourApp”的配置文件

kos*_*cki 7 iphone compiler-errors ios flutter

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
Run Code Online (Sandbox Code Playgroud)

我能做些什么来修复它?

kos*_*cki 13

请记住,您的 IntelliJ Flutter 项目中有指向 XCode iOS 项目的链接。

要解决此问题,请在 XCode 中打开内部 iOS 项目:

yourApp/iOS

尝试在 XCode 中编译并运行项目,然后返回 IntteliJ 再次运行它。

签名设置在 General -> Signing 下

有关更多信息,请参阅此问题