【问题标题】:Can't deploy to iPad when I add iCloud entitlement添加 iCloud 授权时无法部署到 iPad
【发布时间】:2018-05-01 20:02:42
【问题描述】:

使用 Xcode 和 Visual Studio for Mac:

  1. 在 Xcode 中,我可以在我配置的 iPad 上制作、部署和运行开箱即用的 HelloWorld 应用程序。
  2. 同样在 Xcode 中,我可以将 iCloud 添加到同一个应用程序(通过权利),它可以在我的 iPad 上部署和运行。
  3. 在 VS for Mac 中,我可以制作和部署一个空白的 Xamarin Forms HelloWorld 应用程序,它可以在我的 iPad 上运行。
  4. 但是,如果我将 iCloud 添加到 Xamarin 表单应用程序的 entitlements.plist,它将不会部署到我的 iPad。

#4 我得到以下信息:

ApplicationVerificationFailed:无法验证 /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.tlZMLz/extracted/HelloWorldV.iOS.app 的代码签名:0xe8008016(可执行文件已签名具有无效的权利。) 错误 MT1006:无法在设备“Denny 的 iPad”上安装应用程序“/Users/Huber/Projects/HelloWorldV/iOS/bin/iPhone/Debug/device-builds/ipad5.3-11.1.1/HelloWorldV.iOS.app” ':您的代码签名/配置文件配置不正确。可能您的当前配置文件不支持您的权利,或者您的设备不是当前配置文件的一部分。详情请查看 iOS 设备日志(错误:0xe8008016)。

应用程序无法上传到设备。

Xamarin 生成的 entitlements.plist 文件是:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>com.apple.developer.icloud-container-identifiers</key>
    <array>
        <string>iCloud.com.DennyHuber.HelloWorldV</string>
    </array>
    <key>com.apple.developer.ubiquity-kvstore-identifier</key>
    <string>$(AppIdentifierPrefix)$(CFBundleIdentifier)</string>
    <key>com.apple.developer.icloud-services</key>
    <array>
        <string>CloudDocuments</string>
    </array>
</dict>
</plist>

我已经检查了键值存储和 iCloud 文档。

谁能帮忙?

谢谢, 丹尼·胡贝尔

【问题讨论】:

    标签: visual-studio xamarin


    【解决方案1】:

    您需要访问 developer.apple.com 并使用新的权利重新生成配置文件。之后,我建议您手动删除所有条款,因为有时它仍会尝试使用旧条款进行签名。

    规定位于~/Library/MobileDevice/Provisioning Profiles

    然后转到 Xcode,设置 -> 帐户 -> 选择您的程序,然后按下载手动配置文件。

    之后清理项目并尝试再次构建。

    【讨论】:

      猜你喜欢
      • 2017-12-08
      • 1970-01-01
      • 1970-01-01
      • 2013-03-10
      • 1970-01-01
      • 2019-02-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多