ios - 存档成功,但导出失败: cordova build ios --release

标签 ios xcode cordova

运行 Cordova 7.0.1、Cordova-iOS 4.5.1、XCode 9。这是我的 build.json:

{
  "ios": {
    "release": {
      "codeSignIdentity": "iPhone Developer",
      "developmentTeam": "XXXXXXXXXX",
      "packageType": "app-store"
    }
  }
}

我通常在执行cordova build ios --release 时没有问题。现在突然间我收到以下错误。存档成功,但导出失败。我不确定它是否与 XCode 9 升级有关。

    error: exportArchive: No profiles for 'xx.xxxxx.xxxx' were found

    Error Domain=IDEProfileLocatorErrorDomain Code=1 "No profiles for 'xx.xxxxx.xxxx' were found"
    UserInfo={NSLocalizedDescription=No profiles for 'xx.xxxxx.xxxx' were found,
    NSLocalizedRecoverySuggestion=Xcode couldn't find any iOS App Store provisioning profiles matching
    'xx.xxxxx.xxxx'. Automatic signing is disabled and unable to generate a profile. To enable automatic
    signing, pass -allowProvisioningUpdates to xcodebuild.}

如有任何帮助,我们将不胜感激。谢谢!

最佳答案

错误提示您创建配置文件。转到 https://developer.apple.com/account/并创建一个。然后在存档之前在代码设计部分的 xcode 中选择该配置文件。

导出是使用配置文件对存档进行签名的步骤。打开 xcode 后,在中央窗口中选择您的目标。您应该会看到显示“身份”和“签名”之类内容的下拉菜单。您需要选择具有您的配置文件的正确团队。

关于ios - 存档成功,但导出失败: cordova build ios --release,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46652136/

相关文章:

swift - Xcode:如何以编程方式使模型上的金属部件看起来真实?

objective-c - 使 Xcode 4.3 警告当前 @implementation 中存在的未声明方法

android - 发布多个具有不同 Android 版本的 APK

visual-studio - 在 Cordova 中打开预填充的 SQLite 数据库

javascript - Cordova 应用程序速率垂直对齐按钮

ios - 将 CString 转换为 NSUTF16 编码的 NSString

objective-c - 更改选定 UITableViewCell 子类中的元素

ios - 自定义 UIView 一开始仅覆盖屏幕的一部分

ios - 是否可以在 iOS 中使用 RFCOMM?

objective-c - Interface Builder "locking"对象到屏幕边缘