FBSOpenApplicationErrorDomain error 3 when trying to launch a watch kit app on a physical device

狂风中的少年 提交于 2019-12-10 03:54:27

问题


I get the same problem that is described in this question. However, that problem dealt with the iOS simulator, not a physical device.

I'm not using the iOS Simulator. I'm deploying to an iPhone + Apple Watch.

If I attempt to run it on the simulator, it works just fine.

On the "Running WatchKit App on Apple Watch" build step, I get the following error:

Error Launching 'WatchKit Extension'
The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 3.)


What I've tried:

I tried reseting the iOS simulator and then running it on the device (not sure how that would help), but I still got the same error message.

I tried going in to iOS Settings > General > Device Management and ensuring that the app is "Verified".

Restarting Xcode didn't help either.

Deleting the app and reinstalling doesn't help.

I tried running the iOS app once to ensure there are no permissions issues on that end.

Xcode: 7.2
iPhone: iOS 9.2
Apple Watch: watchOS 2.1


回答1:


This was a permissions issue on the Apple Watch.

To fix:

  1. Launch the app once manually (not through Xcode).

    You will see the following message:

    Untrusted App Developer
    Do you trust the developer "..." to run apps on your Apple Watch?
    [Trust]
    [Don't Trust]

  2. Tap Trust.

  3. Now you can run the app through Xcode with no issues.


来源:https://stackoverflow.com/questions/34384015/fbsopenapplicationerrordomain-error-3-when-trying-to-launch-a-watch-kit-app-on-a

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!