flutter build ipa 因配置文件失败

flutter build ipa fail with profile

如果我尝试做 flutter build ipa 我得到了错误:

Automatically signing iOS for device deployment using specified development team in Xcode project: 2TPRUM2A9L
Running Xcode build...
Xcode archive done.                                          3,3s
Failed to build iOS app
Error output from Xcode build:
↳
    objc[10019]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x203eb2b90) and
    /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1084e42c8). One of the two
    will be used. Which one is undefined.
    objc[10019]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x203eb2be0) and
    /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1084e4318). One of the two
    will be used. Which one is undefined.
    ** ARCHIVE FAILED **


Xcode's output:
↳
    note: Using new build system
    note: Planning
    note: Build preparation complete
    note: Building targets in dependency order
    error: No profiles for 'com.fahrschuleplaner24' were found: Xcode couldn't find any iOS App Development provisioning
    profiles matching 'com.fahrschuleplaner24'. Automatic signing is disabled and unable to generate a profile. To enable
    automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'Runner' from project 'Runner')

在 xcode 关于签名和能力

未找到 'com.fahrschuleplaner24' 的配置文件

我是帐户的所有者,我也有此配置文件,但仍然无法使用

请帮我解决一下

你能试试这个吗?首先清除 xcode 的 DerivedData,然后尝试执行以下命令

  1. flutter clean
  2. flutter pub get
  3. cd ios
  4. pod install
  5. pod update

现在用 xcode 打开并检查

必须 运行 在真正的 iphone 上使用它,然后才有效