Reputation: 559
I have a published iOS app and am trying to add a WatchKit
extension for it.
For now, all I have is a watch interface.storyboard
with a single label
just to verify the entire building process. The app runs fine on the simulator (iPhone 6 (8.3)) and the Watch simulator.
When I run it on the iPhone and Apple Watch, it runs on the iPhone, installs on the Apple Watch, but then just displays a wait status when trying to run it on the Apple Watch.
The error in Xcode says "Waiting to attach", and when I try to attach it via Xcode > Debug > Attach to Process
, it says "Lost connection to iPhone".
I am using Xcode 6.3.1.
Upvotes: 6
Views: 4688
Reputation: 400
I was developing a findersync extension for Mac and faced similar issue with XCode 7.2.1 and i found my changing bundle identifier of the extension project, it fixes the issue. I know this is not a permanent solution but atleast it will help you keep going forward if nothing else works
Upvotes: 0
Reputation: 698
Restarting the watch solved this for me.
From this Apple Support Page: https://support.apple.com/en-gb/HT204510
Upvotes: 0
Reputation: 31
It was really never working for me.
I was able to fix it to remove any specific architectures in the build settings of the app target and leave it to Automatic (remove ARCHS = ...
in project file)
Upvotes: 0
Reputation: 11
I discovered that my WatchKit Bundle Names in my info.plist were not consistent. Ensure that the prefixes are exactly correct.
Upvotes: 1
Reputation: 11
I have the same issue I have already two watch apps in the App Store but the current project with only some Interface objects runs fine in simulator but not on the watch I get only the waiting symbol and then it switch back to the apps screen on the watch. I found the issue it was a setting of the Build architecture in the build setting. I used Xcode automatic problem solver to change the old project. Now it works fine.
Upvotes: -1
Reputation: 8548
The Waiting to attach
message is bothering many people. Here are a few things that you can do:
Waiting to attach
appears.Apple Watch
app on your iPhoneOther things you could try:
Apple Watch
app on your iPhoneUpvotes: 10