ios watchkit app not able to install into iwatch using Xcode 7.2 - ios

I'm new to working with Apple watch. I'm trying to install the hello world watchkit app into iwatch OS Version(1.0) that has been paired with my iPhone5c OSversion(9.1). When I try to choose the Build target device from the list of devices in Xcode it clearly shows that "Unavailable device" target. Below is the error message.
I did mouse over on the The OS version installed on watch apple watch doesn’t support Watchkit Extention products. Please see the below image for your reference. I would like to know what is the exact issue here and how can I fix it by steps and attach the device with Xcode 7.2 to run.

The answer is that the OS on your Apple Watch is lower than it'll support for testing, they changed some of the API in Watch OS v2. If you update to OS v2 you should be able to use it for development.

Related

Prevent Xcode from preparing Apple Watch when running for iOS

I have an iOS app that I want to test on my personal iOS device. I also wear an Apple Watch that's connected normally to this iPhone.
I have not knowingly created any kind of Apple Watch target or code in my Xcode project. I do not want to run or test the app on my Apple Watch. I have not set up the Apple Watch as some kind of development target in Xcode... it's just connected to my iPhone.
Despite this, Xcode continually tries to ready my Apple Watch for development alongside the iPhone. It delays running the iOS app on the iPhone so that it can "prepare" and "fetch" various things from the Watch. These spinners never end and as a result I am unable to deploy the iOS app to the iPhone.
iPhone is busy: Preparing Apple Watch for development via iPhone
Xcode will continue when iPhone is finished.
iPhone is busy: Fetching debug symbols for Apple Watch paired to iPhone
Fetching debug symbols for the watch
Installing Symbols for watchOS 7.4
Apple Watch via iPhone: Failed to prepare device for development.
This operation can fail if the version of the OS on the device is incompatible with the installed version of Xcode. You may also need to restart your mac and device in order to correctly detect compatibility.
How can I fully hide this Apple Watch from being seen by Xcode? Disable any kind of development on the Watch? Deploy the iOS app to the iPhone without involving the connected Apple Watch at all?
I'm not interested in "fixing" the errors and warnings... I want the Apple Watch to not be used at all by Xcode.
Found this workaround, worked for me.
Unplug iPhone
Switch flight mode on the Watch
Switch off Bluetooth on the Watch
Plug the iPhone back in and build
Good luck!
https://developer.apple.com/forums/thread/691452?answerId=704424022#704424022
Additionally, make sure you've updated Xcode to a version that supports your iOS/watchOS version (proper SDKs) - I've found this to be necessary to avoid the interminable 'preparing...' phase.
For me just turning off Wifi and Bluetooth on the phone worked. So follow the below steps:
Stop the Xcode project
Turn off WIFI and Bluetooth on your phone only
Run the Xcode project
If you've installed Xcode from Mac App Store, I've experienced a few cases where Xcode just won't update. (and it says "no update" even if you check for update from the app menu)
Solution: login to your Apple Developer account, then click this link.
https://developer.apple.com/download/all/?q=Xcode
Download the latest version of Xcode .xip file (as of today Xcode 13.3.xip) then move the file to /Applications.
Delete current install of Xcode, then double-click the .xip just downloaded to install it.
It should then work and continue to receive future updates.
Just powering off the watch, unplug/replug device, and restart Xcode worked for me!

Xcode - Could not launch 'watch app WatchKit App' on iPhone

I have Xcode version 9.2. When trying to run the app on my Apple Watch(1 Series), I get this error:
"Could not launch 'watch app WatchKit App' on iPhone
There was an error preparing Apple Watch for development.
Try reattaching the device to which Apple Watch is paired. Could not locate device support files. [This Apple Watch 42mm is running watchOS 4.3.2 (15U70), which may not be supported by this version of Xcode.]"
I went to /Xcode.app/Contents/Developer/Platforms/WatchOS.platform/DeviceSupport
4.2 is the latest device support I see.
Can I download 4.3 device support and importing to Xcode? I don't want to upgrade my Xcode because I am running a VM.
I had success with my iPhone from this URL https://github.com/filsv/iPhoneOSDeviceSupport.
I searched WatchOS 4.3 without success.

Not able to install apple watch app

I created an application for Apple watch Model MJ3T2B/A using health kit. It is with watch OS version 2.0. I used Xcode version 7.3.1 to create the app and installed it in my iPhone using diawi. I am not able to run it directly since it said deployment version of watch app is 2.2 and the one i am using is 2.0.
When i enable Show App in Apple Watch it is automatically getting disabled after some time in iPhone(iOS 9.3.2) watch application. Do i need to use different xcode version to create my app? I am not getting any OS updates also in my iPhone app. It says watch OS 2.0 and software is upto date.
I got what was the issue. It is the deployment target which keeps me from installing the watch app. I changed the deployment target to 2.0 in Project->Build settings and now i am able to install the application
For me it helped to check "Window" > "Devices and Simulators". For the iPhone to which the relevant Apple Watch is paired, the name of the Apple Watch was shown as <null>. After unpairing the iPhone (right click > "Unpair Device") and pairing it again, the issues was gone.
Afterwards I was able to select the WatchKit App in the Schemes list and select the entry for "My iPhone + My Apple Watch" in the Device list and Run/Debug the app.
It has also sadly shown that the issue re-appears multiple times during the day and I have to repeat these steps.
I had to add ClockKit.framework as an Optional library under the watch app Extension "Link Binary With Library" Build Phases because I was using the WatchOS 5.0 function called CLKFullColorImageProvider which was causing the app to crash. But, before I did this, I set the deployment target to match that of the Watch OS (4.3 in my case) so the app would run from XCode and dump out the error. So, it seems that changing the deployment target is a good way to get the app to install in order to debug other problems.
I found this answer here: https://forums.developer.apple.com/thread/108598
I had a similar issue where the Apple Watch app would fail to install my Development Apple Watch App. I was able to finally get it installed by increasing the Bundle Number the iOS App and the WatchKit App.

Xcode 7.1 iOS 9.0 watchOS 2 app stops running after install

When I run my watch kit app (WatchOS 2) in Xcode 7, Swift, it installs and then finishes (stops). No error messages, it just stops. I've uninstalled and re-install both the IOS app and the watch app. No luck. Runs fine in the simulator. If I create a new empty project, same behavior. When I check the watch app on the watch, the new build is installed. It just doesn't run from Xcode so I can't get my debug messages. I am using the scheme for the IOS app and the Watch App. Is there anything to look for in the scheme config? I have also recently updated my provisioning profile and development certificates.
I've tried looking at similar questions, but so far they have not helped.
Xcode successfully builds my target, but does not run the product
Debug/Run in Xcode stopped working. Executable settings are wrong and can't be fixed too
and similar to:
"This app contains an app extension with an illegal bundle identifier" issue
There's several people with this problem. I can't give you any tips for iOS 9.0 and XCode 7.1 (Besides, reseting everything and trying again). But, If you update to watchOS 2.1, iOS 9.2 and XCode 7.2, everything works.
With device connected, shut downing my iPhone and watch and then restarting fixes the problem.

ios7 error when submitting an update. this bundle does not support one or more devices

application context: ios7, xcode 5, written with titanium appcelerator (sdk 3.1.3GA), previous version compatibility was as the image says (directly from itunes connect)
the complete error is
this bundle does not support one or more devices. supported by the revious app version. your app update must continue to support all devices previously supported. your declare supported device in Xcode with the Targeted Device Family build setting. Refer to QA1623 for additional information: https://developer.apple.com/library/ios/qa/qa1623/_index.html
Now. I checked in the building settings as what the message says and the results is attached as images.
as you can see, I should cover all the apple devices (iphone/ipad), but still giving me the same error. anybody knows why?
thanks in advance
Your app was previously supported iPad too. You cannot drop support for a device family (iPhone or iPad) in an update. Make your app universal in project settings>General tab.
The solution for my problem was to simply rebuild the archive from titanium (publish app to apple store) and then archive the app.
I have selected Universal device for universal target.
no issue were found.
so it seems actually there's no problem in the process, but still don't know why there was that device compatibility problem.

Resources