使用带有iPadiOS6.0的“App Lock”配置配置文件设置(也称为“kiosk模式”)时出错

使用带有iPadiOS6.0的“App Lock”配置配置文件设置(也称为“kiosk模式”)时出错,第1张

概述背景: Apple为iPad提供了“自助服务终端模式”,作为iOS6的一部分,将设备锁定在一个应用程序中(甚至可以直接引导到应用程序中).非常适合在零售/餐厅等使用iPad. 为了使用它,首先必须使用Apple Configurator将设备设置为“监督”设备.然后,您将一个特殊条目添加到名为“App Lock”的配置文件中.我遵循了recently-updated configuration p 背景:

Apple为iPad提供了“自助服务终端模式”,作为iOS6的一部分,将设备锁定在一个应用程序中(甚至可以直接引导到应用程序中).非常适合在零售/餐厅等使用iPad.

为了使用它,首先必须使用Apple Configurator将设备设置为“监督”设备.然后,您将一个特殊条目添加到名为“App Lock”的配置文件中.我遵循了recently-updated configuration profile document.实际上,您只需将PayloadType设置为’com.apple.app.lock’并添加一个名为’IDentifIEr’的属性,该属性设置为应用程序的包ID的值.

当我尝试将配置文件添加到iPad时(无论是通过Safari链接,MDM还是Apple Configurator),它拒绝它.

Xcode中的控制台输出显示以下内容:

Sep 24 17:51:56 Test-iPad mc_mobile_tunnel[487] <Notice>: (Note ) MDM: Attempting to perform Supervised request: ProfileListSep 24 17:51:56 Test-iPad installd[30] <Error>: 0x2ff9f000 filter_attributes: Info.pList keys requested via MobileInstallationLookup/browse in clIEnt Apple Configurator (via mobile_installation_proxy) were not found in MobileInstallation's cache. Please file a BUG requesting that these keys be added: <CFBasicHash 0x1e58b0b0 [0x3d8f2100]>{type = mutable set,count = 1,entrIEs =>       2 : <CFString 0x3d8de564 [0x3d8f2100]>{contents = "CFBundleSignature"}   }Sep 24 17:51:57 Test-iPad mc_mobile_tunnel[492] <Notice>: (Error) MC: MCAppWhiteListPayload Can't parse payload: NSError:   Desc   : The payload “Test Profile” is invalID.   Sugg   : The fIEld “App” is invalID.   US Desc: The payload “Test Profile” is invalID.   US Sugg: The fIEld “App” is invalID.   Domain : MCPayloadErrorDomain   Code   : 2000   Type   : MCFatalError   Params : (       "Test Profile"   )   ...Underlying error:   NSError:   Desc   : The fIEld “App” is invalID.   US Desc: The fIEld “App” is invalID.   Domain : MCPayloadErrorDomain   Code   : 2003   Type   : MCFatalError   Params : (       App   )Sep 24 17:51:57 Test-iPad mc_mobile_tunnel[492] <Notice>: (Error) MC: Payload “(null)” contains ignored fIElds. They are: <CFBasicHash 0x20819140 [0x3d8f2100]>{type = mutable dict,entrIEs =>       1 : <CFString 0x1f527bd0 [0x3d8f2100]>{contents = "IDentifIEr"} = <CFString 0x1f527c10 [0x3d8f2100]>{contents = "com.hubworks.myapp"}   }Sep 24 17:51:57 Test-iPad mc_mobile_tunnel[492] <Notice>: (Error) MC: Cannot create profile of type “com.apple.app.lock”. Error: NSError:   Desc   : The payload “Test Profile” is invalID.   Sugg   : The fIEld “App” is invalID.   US Desc: The payload “Test Profile” is invalID.   US Sugg: The fIEld “App” is invalID.   Domain : MCPayloadErrorDomain   Code   : 2000   Type   : MCFatalError   Params : (       "Test Profile"   )   ...Underlying error:   NSError:   Desc   : The fIEld “App” is invalID.   US Desc: The fIEld “App” is invalID.   Domain : MCPayloadErrorDomain   Code   : 2003   Type   : MCFatalError   Params : (       App   )Sep 24 17:51:57 Test-iPad mc_mobile_tunnel[492] <Notice>: (Error) MC: Profile MCConfigurationProfile 0x1f526100,version 1:   display name: “Test Profile”   IDentifIEr  : home-macbook-air.local.2A8DC5A2-937E-4246-B2AF-7C756C30C447   UUID        : E06A5B33-9CD3-40CB-8611-0479E642B427   Is Stub     : No   Locked      : No   Encrypted   : No   Trusted     : 2   Signed      : Yes   Signed by   : Apple Configurator (58:55:CA:F7:24:B9)    Can't parse profile: NSError:   Desc   : The profile “Test Profile” is invalID.   Sugg   : The payload “Test Profile” is invalID.   US Desc: The profile “Test Profile” is invalID.   US Sugg: The payload “Test Profile” is invalID.   Domain : MCProfileErrorDomain   Code   : 1000   Type   : MCFatalError   Params : (       "Test Profile"   )   ...Underlying error:   NSError:   Desc   : The payload “Test Profile” is invalID.   Sugg   : The fIEld “App” is invalID.   US Desc: The payload “Test Profile” is invalID.   US Sugg: The fIEld “App” is invalID.   Domain : MCPayloadErrorDomain   Code   : 2000   Type   : MCFatalError   Params : (       "Test Profile"   )   ...Underlying error:   NSError:   Desc   : The fIEld “App” is invalID.   US Desc: The fIEld “App” is invalID.   Domain : MCPayloadErrorDomain   Code   : 2003   Type   : MCFatalError   Params : (       App   )   Extra info:   {       isPrimary = 1;   }Sep 24 17:51:57 Test-iPad mc_mobile_tunnel[492] <Notice>: (Error) MC: Failed to parse profile data. Error: NSError:   Desc   : The profile “Test Profile” is invalID.   Sugg   : The payload “Test Profile” is invalID.   US Desc: The profile “Test Profile” is invalID.   US Sugg: The payload “Test Profile” is invalID.   Domain : MCProfileErrorDomain   Code   : 1000   Type   : MCFatalError   Params : (       "Test Profile"   )   ...Underlying error:   NSError:   Desc   : The payload “Test Profile” is invalID.   Sugg   : The fIEld “App” is invalID.   US Desc: The payload “Test Profile” is invalID.   US Sugg: The fIEld “App” is invalID.   Domain : MCPayloadErrorDomain   Code   : 2000   Type   : MCFatalError   Params : (       "Test Profile"   )   ...Underlying error:   NSError:   Desc   : The fIEld “App” is invalID.   US Desc: The fIEld “App” is invalID.   Domain : MCPayloadErrorDomain   Code   : 2003   Type   : MCFatalError   Params : (       App   )   Extra info:   {       isPrimary = 1;   }
解决方法 我想到了!我要么误读它,要么苹果在 configuration profile reference中遗漏了一些细节.为了避免错误,“IDentifIEr”/ bundleID键/值对必须包含在字典中,字典本身是名为“App”的键的值.见下文:

<?xml version="1.0"?><pList version="1.0">  <dict>    <key>PayloadContent</key>    <array>      <dict>        <key>App</key>        <dict>          <key>IDentifIEr</key>          <string>bundle_IDentifIEr_of_the_app</string>        </dict>        <key>PayloadType</key>        <string>com.apple.app.lock</string>        <key>PayloadIDentifIEr</key>        <string>#######-#######-#######-######</string>        <key>PayloadUUID</key>        <string>#######-#######-#######-######</string>        <key>PayloadVersion</key>        <integer>#</integer>      </dict>    </array>    <key>PayloadType</key>    <string>Configuration</string>    <key>Payloaddisplayname</key>    <string>##########</string>    <key>PayloadIDentifIEr</key>    <string>######-#####-######-#####</string>    <key>PayloadUUID</key>    <string>######-######-#####-#####</string>    <key>PayloadVersion</key>    <integer>#</integer>  </dict></pList>
总结

以上是内存溢出为你收集整理的使用带有iPad / iOS6.0的“App Lock”配置配置文件设置(也称为“kiosk模式”)时出错全部内容,希望文章能够帮你解决使用带有iPad / iOS6.0的“App Lock”配置配置文件设置(也称为“kiosk模式”)时出错所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1080754.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-27
下一篇 2022-05-27

发表评论

登录后才能评论

评论列表(0条)

保存