【问题标题】:Visual Studio Cordova error 'No matching provisioning profiles found: No provisioning profiles matching the bundle identifier were found.'Visual Studio Cordova 错误“未找到匹配的配置文件:未找到与捆绑标识符匹配的配置文件。”
【发布时间】:2015-03-12 16:48:24
【问题描述】:

我正在尝试使用 Visual Studio 以分发模式在 ios cordova 应用程序上运行我的应用程序。

构建失败并出现以下错误。

 No matching provisioning profiles found: No provisioning profiles matching the bundle identifier ΓÇxxxx.yyy.appΓÇ¥ were found.

【问题讨论】:

    标签: ios xcode cordova visual-studio-cordova


    【解决方案1】:

    这表明您尚未在 Mac 上为您的应用设置有效的分发证书。 iOS、Android 和 Windows 都要求您生成证书,然后才能对应用进行签名和打包以分发到相应的应用商店。

    看...

    https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/MaintainingCertificates/MaintainingCertificates.html

    ...和...

    https://msdn.microsoft.com/en-us/library/dn757048.aspx#iOS

    默认情况下,Visual Studio 将自动匹配分发证书。如果您需要覆盖以使用不同的签名身份,您可以将自定义 build-debug.xcconfig 或 build-release.xcconfig 文件放在 res/native/ios/cordova 中。

    样品:

    https://github.com/apache/cordova-ios/blob/master/bin/templates/scripts/cordova/build-release.xcconfig

    https://github.com/apache/cordova-ios/blob/master/bin/templates/scripts/cordova/build-debug.xcconfig

    有关 iOS 构建设置的文档: https://developer.apple.com/library/ios/documentation/DeveloperTools/Reference/XcodeBuildSettingRef/0-Introduction/introduction.html#//apple_ref/doc/uid/TP40003931-CH1-SW1

    【讨论】:

      【解决方案2】:

      我遇到了同样的问题,但对我来说这是一个愚蠢的错误。

      由于区分大小写,我在 config.xml 中的 App Id 与我的配置文件中的 Id 不同。

      例如config.xml 中的 ID 为 com.company.MyAppName,但配置文件中的捆绑包 ID 为 com.company.myappname

      因此将配置 ID 更改为全小写对我有帮助。希望这对其他人也有帮助。 :)

      【讨论】:

      • 这正是我的问题 info.plist 需要更新(确保您的构建配置实际使用此文件)
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-05-03
      • 2016-04-16
      • 1970-01-01
      相关资源
      最近更新 更多