添加iCloud权利后,无法部署到iPad

时间:2017-11-17 23:44:18

标签: visual-studio xamarin

使用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。
  5. 我为#4获得了以下内容:

    ApplicationVerificationFailed:无法验证/private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.tlZMLz/extracted/HelloWorldV.iOS.app的代码签名:0xe8008016(可执行文件已签名)使用无效的权利。) 错误MT1006:无法安装应用程序' /Users/Huber/Projects/HelloWorldV/iOS/bin/iPhone/Debug/device-builds/ipad5.3-11.1.1/HelloWorldV.iOS.app'在设备上#Denny的iPad':您的代码签名/配置配置文件未正确配置。您可能拥有当前配置文件不支持的权利,或者您的设备不属于当前配置文件。请查看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>
    

    我检查了Key-Value Storage和iCloud Documents。

    有人可以帮忙吗?

    谢谢, 丹尼胡贝尔

1 个答案:

答案 0 :(得分:2)

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

~/Library/MobileDevice/Provisioning Profiles

中的条款

之后转到Xcode,设置 - &gt;帐户 - &gt;选择您的程序,然后按下载手册配置文件。

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