iOS 应用程序在安装和中断安装期间显示错误警报

iOS app show error alert during installation and break install

我构建了 AdHock 版本的应用程序,但它没有安装到设备。

我检查了 ProvisionProfile,它工作正常。

权利:

<?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.$(CFBundleIdentifier)</string>
        </array>
        <key>com.apple.developer.icloud-services</key>
        <array>
            <string>CloudDocuments</string>
        </array>
        <key>com.apple.developer.ubiquity-container-identifiers</key>
        <array>
            <string>iCloud.$(CFBundleIdentifier)</string>
        </array>
        <key>com.apple.developer.icloud-container-environment</key>
        <array>
            <string>Production</string>
        </array>
        <key>keychain-access-groups</key>
        <array>
            <string>G9XDHMDJ7M.com.binw.Eco</string>
        </array>
    </dict>
</plist>

info.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>CFBundleDevelopmentRegion</key>
    <string>en,ru</string>
    <key>CFBundleLocalizations</key>
    <array>
        <string>ru</string>
    </array>

    <key>MinimumOSVersion</key>
    <string>7.0</string>
    <key>CFBundleDisplayName</key>
    <string>Economatica.iOS</string>
    <key>CFBundleVersion</key>
    <string>1.5.</string>
    <key>CFBundleShortVersionString</key>
    <string>1429</string>
    <key>UIPrerenderedIcon</key>
    <true/>
    <key>CFBundleName</key>
    <string>Economatica</string>
    <key>CFBundleIconFiles</key>
    <array/>
    <key>XSAppIconAssets</key>
    <string>Resources/Assets.xcassets/AppIcons.appiconset</string>
     <key>UILaunchStoryboardName</key>
    <string>LaunchScreen.storyboard</string>
    <key>XSLaunchImageAssets</key>
    <string>Resources/Assets.xcassets/LaunchImage.launchimage</string>
    <key>CFBundleIdentifier</key>
    <string>com.binw.eco</string>
</dict>
</plist>

我可以在日志中看到这条记录:

Jan 31 17:02:59 iPhone-5s-Dev installd(libmis.dylib)[45] <Notice>: entitlement '<private>' has value not permitted by provisioning profile '<private>'

Jan 31 17:02:59 iPhone-5s-Dev installcoordinationd[100] <Notice>: -[IXSClientConnection _client_promiseWithUUID:didCancelWithReason:client:]: Client <private> was not interested in UUID <private>

您可以看到完整的日志:https://gist.github.com/maukur/6ca08e64c726dfc1c357f61e4f35b5cc

我也尝试删除 keychain-access-groups 块, 或者将 <string>G9XDHMDJ7M.com.binw.Eco</string> 替换为 <string>com.binw.Eco</string> 也不能解决问题,

我没有注册iCloud.$(CFBundleIdentifier)

我从 Entitlements 中删除所有记录并将应用程序部署到设备。

我也可以注册iCloud.$(CFBundleIdentifier),它一定也能用。