【问题标题】:DevOps build pipeline, for Xamarin.iOS Could not find any available provisioning profilesDevOps 构建管道,用于 Xamarin.iOS 找不到任何可用的配置文件
【发布时间】:2021-03-10 17:17:10
【问题描述】:

我正在尝试最初为 Xamarin.iOS 设置 DevOps 构建管道(最终用于 UI 测试)。 AppCenter 存在其他问题。

我使用了默认的 Xamarin iOS 模板并正在解决这些问题。

我们正在使用 mac 虚拟机/图像。

我们决定使用我们应用的 Debug 版本,因为这样可以从任何 UI 测试错误中提供更多有用的信息。所以最终我们可以在 AppCenter 中的模拟器上测试我们的构建。

但是,我收到了这个错误。我确保我已经包含了一个 entitlements.plist,其中 APS Environment 设置为 development。我只是不确定为什么它需要配置文件。

我实际上并不确定 AppCenter 从构建中需要什么,也许它只适用于 ipa 文件?因此,这需要一个配置文件???

(_DetectSigningIdentity target) -> 
  /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.Shared.targets(239,3): 
error : Could not find any available provisioning profiles for ourapp.iOS on iOS. 
[/Users/runner/work/1/s/ourapp/iOS/ourapp.iOS.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.Shared.targets(239,3): 
error : [/Users/runner/work/1/s/ourapp/iOS/ourapp.iOS.csproj]

【问题讨论】:

    标签: ios xamarin xamarin.forms azure-devops azure-pipelines


    【解决方案1】:

    如果项目包含 Entitlements.plist,您将需要配置文件来启用权利。请参阅线程 herehere

    如下所述。如果 APS 环境设置为开发。这意味着您需要生成一个开发配置文件。见here

    Xcode 根据您应用的当前配置文件设置权利值。例如,如果您使用的是开发配置文件,Xcode 会将值设置为开发。

    您可以查看文档Device provisioning for Xamarin.iOS 以生成配置文件。另见this thread

    当您获得配置文件时。您可以将其上传到 azure Develops secure files。并使用InstallAppleProvisioningProfile 任务将其下载到您的管道中。有关更多信息,请参阅文档 here。您也可以查看this blog 中的示例。

    【讨论】:

    • 谢谢,所以如果我删除 entitlement.plist 它就不需要 p 个人资料了?
    • @Jules 是的,您可以尝试删除 entitlement.plist。
    • 谢谢,还有一个问题,应用中心是否需要 ipa 进行 ui 测试,是否需要 p 配置文件?
    • @Jules 是的 .ipa 文件是 UI 测试所必需的。见here。如果运行作业的代理安装了适当的配置文件和 Apple 证书,Xamarin.iOS 生成任务只会生成 .ipa 包。见here
    猜你喜欢
    • 2019-06-22
    • 1970-01-01
    • 2018-09-20
    • 2020-05-26
    • 1970-01-01
    • 2019-07-13
    • 2020-06-05
    • 2019-12-30
    • 2022-09-27
    相关资源
    最近更新 更多