3
我正在开发一个相对简单的具有两个接口控制器的Apple Watch应用程序。Apple Watch应用程序在模拟器上运行,但不是物理设备
当我部署到手表模拟器,一切正常。但是,自从更新到Xcode 7,iOS 9和WatchOS2 GM种子后,该应用程序不再运行在物理Apple Watch上。它会推出,显示加载屏幕〜10秒,然后在设备日志中的消息崩溃:
Sep 16 09:21:23 Andrews-AppleWatch iap2d[168] <Warning>: process com.AndrewMoore.PhotoGauge.watchkitapp is now running the foreground
Sep 16 09:21:24 Andrews-AppleWatch pkd[127] <Warning>: assigning plug-in com.AndrewMoore.PhotoGauge.watchkitapp.watchkitextension(1.0) to plugin sandbox
Sep 16 09:21:24 Andrews-AppleWatch pkd[127] <Warning>: enabling pid=92 for plug-in com.AndrewMoore.PhotoGauge.watchkitapp.watchkitextension(1.0) 3E32E3AC-0701-49E8-9BEE-56528EFDF3C7 /private/var/mobile/Containers/Bundle/Application/B54024B2-FED3-48A7-8F70-78C85C1C1DFB/PhotoGauge WatchKit App.app/PlugIns/PhotoGauge WatchKit Extension.appex
Sep 16 09:21:24 Andrews-AppleWatch kernel[0] <Notice>: xpcproxy[239] Container: /private/var/mobile/Containers/Data/PluginKitPlugin/9BDCD39E-15AE-4019-A8D8-784A321EAF17 (sandbox)
Sep 16 09:21:24 Andrews-AppleWatch PhotoGauge WatchKit App[238] <Warning>: Requested a built-in font <UICTFont: 0x27b070> font-family: "Symbol"; font-weight: normal; font-style: normal; font-size: 26.00ptg. Substituting system font
Sep 16 09:21:24 Andrews-AppleWatch PhotoGauge WatchKit App[238] <Warning>: Requested a built-in font <UICTFont: 0x27b070> font-family: "Symbol"; font-weight: normal; font-style: normal; font-size: 26.00ptg. Substituting system font
Sep 16 09:21:24 Andrews-AppleWatch PhotoGauge WatchKit App[238] <Warning>: Requested a built-in font <UICTFont: 0x27b070> font-family: "Symbol"; font-weight: normal; font-style: normal; font-size: 26.00ptg. Substituting system font
Sep 16 09:21:24 Andrews-AppleWatch iap2d[168] <Warning>: process com.AndrewMoore.PhotoGauge.watchkitapp.watchkitextension is now running the foreground
Sep 16 09:21:30 Andrews-AppleWatch diagnosticd[66] <Error>: error evaluating process info - pid: 239, punique: 239
Sep 16 09:21:30 Andrews-AppleWatch ReportCrash[240] <Notice>: Formulating report for process[239] PhotoGauge WatchKit Extension
Sep 16 09:21:30 Andrews-AppleWatch UserEventAgent[22] <Notice>: jetsam: kernel termination snapshot being created
Sep 16 09:21:30 Andrews-AppleWatch gizmoappd[92] <Warning>: plugin com.AndrewMoore.PhotoGauge.watchkitapp.watchkitextension interrupted
Sep 16 09:21:30 Andrews-AppleWatch gizmoappd[92] <Warning>: plugin com.AndrewMoore.PhotoGauge.watchkitapp.watchkitextension invalidated
Sep 16 09:21:30 Andrews-AppleWatch gizmoappd[92] <Notice>: (Note) WatchKit: -[SPGizmoAppServer notifyClientsExtensionTerminated:] Companion app extension died - killing gizmo app com.AndrewMoore.PhotoGauge.watchkitapp
Sep 16 09:21:30 Andrews-AppleWatch PhotoGauge WatchKit App[238] <Warning>: -[SPApplicationDelegate extensionDidTerminate:] WatchKit App killed by WatchKit daemon
Sep 16 09:21:30 Andrews-AppleWatch iap2d[168] <Warning>: process com.AndrewMoore.PhotoGauge.watchkitapp.watchkitextension is now terminated
Sep 16 09:21:30 Andrews-AppleWatch com.apple.xpc.launchd[1] (UIKitApplication:com.AndrewMoore.PhotoGauge.watchkitapp[0xaeb3][238]) <Warning>: Service exited with abnormal code: 1
Sep 16 09:21:30 Andrews-AppleWatch Carousel[30] <Warning>: Application 'UIKitApplication:com.AndrewMoore.PhotoGauge.watchkitapp[0xaeb3]' exited voluntarily.
Sep 16 09:21:30 Andrews-AppleWatch Carousel[30] <Warning>: Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates.
Sep 16 09:21:31 Andrews-AppleWatch iap2d[168] <Warning>: process com.AndrewMoore.PhotoGauge.watchkitapp is now switching to other state
Sep 16 09:21:31 Andrews-AppleWatch iap2d[168] <Warning>: process com.AndrewMoore.PhotoGauge.watchkitapp is now terminated
Sep 16 09:21:31 Andrews-AppleWatch UserEventAgent[22] <Warning>:2: id=com.AndrewMoore.PhotoGauge.watchkitapp pid=238, state=0
Sep 16 09:21:31 Andrews-AppleWatch ReportCrash[240] <Warning>: report not saved because it is non-actionable
事情我已经尝试:
- 删除并重新安装应用程序多次
- 试图从Xcode部署多次后试图重新启动应用程序,以确保Xcode不仅仅因为某种原因而无法启动。
- 双检,类和模块的正确每个接口控制器
- 确保了欧设定了iOS应用,关注应用,并观看应用扩展的plist文件有WKAppBundleIdentifier,WKCompanionAppBundleIdentifier等正确的价值观
- 双检,在我WatchKit扩展所有的文件有正确的目标会员
我真正运行的想法在这一点上。我的猜测是,有一些非常简单的事情,我必须做错,但我看不到它。