watchKit无法在模拟器上运行

时间:2014-11-19 04:01:18

标签: ios ios-simulator iphone-6 watchkit

我已对ListerWatchApp进行了必要的更改,以便在模拟器[link]上运行。当我运行应用程序时,它会抛出一个错误

The shared application group container is unavailable. Check your entitlements and provisioning profiles for this target. Details on proper setup can be found in the PDFs referenced from the README.

即使更改了代码签名权利。

enter image description here

以下是我下载示例的链接: link

3 个答案:

答案 0 :(得分:2)

我在整个项目中搜索了' com.example.apple-samplecode'后能够运行Lister演示。并用我自己的标识符' com.mycompanyname'替换它。之后,我必须转到每个目标并修复代码签名权利和功能

答案 1 :(得分:0)

所以我要做的是为所有出现的com.example.apple-samplecode.Lister运行一个grep,对吧?我有7次点击,其中2次是plist文件:

/ListerOSX/Info.plist /ListerWatch/Info.plist

<proj>/Common/AAPLAppConfiguration.m
<proj>/ListerKit/AAPLCloudListCoordinator.m
<proj>/ListerKit/AAPLDirectoryMonitor.m
<proj>/ListerKit/AAPLListsController.m
<proj>/ListerWatch/AAPLWatchStoryboardConstants.m

我是否必须在

中将标识符替换为我自己的标识符
1. all of them 
2. just the plist files
3. or did I get it all wrong?

答案 2 :(得分:0)

在目标功能选项卡中针对iCloud和AppGroup快速修复问题后,一切正常。
这样可以在App ID上启用App Groups和iCloud。

App Group