我正在尝试使用cordova cli建立一个ipa文件:

sudo cordova build ios --device --release

我在build.json之前构建:
{
  "ios": {
    "debug": {
      "codeSignIdentity": "iPhone Developer",
      "developmentTeam": "----XZ",
      "packageType": "development",
      "buildFlag": [
        "EMBEDDED_CONTENT_CONTAINS_SWIFT = YES",
        "ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO",
        "LD_RUNPATH_SEARCH_PATHS = \"@executable_path/Frameworks\""
      ]
    },
    "release": {
      "codeSignIdentity": "iPhone Distribution",
      "developmentTeam": "----XZ",
      "packageType": "app-store",
      "buildFlag": [
        "EMBEDDED_CONTENT_CONTAINS_SWIFT = YES",
        "ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO",
        "LD_RUNPATH_SEARCH_PATHS = \"@executable_path/Frameworks\""
      ]
    }
  }
}

我得到错误:
Check dependencies
Code Signing Error: No profile for team '----XZ' matching 'App Distribution' found:  Xcode couldn't find any provisioning profiles matching '----XZ/App Distribution'. Install the profile (by dragging and dropping it onto Xcode's dock item) or select a different one in the General tab of the target editor.
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.0'

我打开了Xcode(第一次使用PhpStorm),标志区域如下所示:
ios -  Cordova 建立ios团队文件错误-LMLPHP

我重新创建了所有证书,但仍然出现错误...。
请帮助:(谢谢!

最佳答案

可能您已经找到了答案。这是窍门:

Why does `ionic run ios` error with "No matching provisioning profile found"?。您需要将配置文件从~/Library/MobileDevice/Provisioning\ Profiles/复制到/Library/MobileDevice/Provisioning\ Profiles/

10-06 08:28