How to solve watch installation error from Xcode 8 - ios

When attempting to install a WatchKit app to the watch device, through Xcode 8, I'm seeing an error popup that reads "The device OS version is too low."
I already tried setting all deployment targets to values below that of the iPhone OS and the watch. I even tried setting the watchOS Deployment Target, but none of these steps made a difference.
When looking this up, the only link I find has nothing to do with the Watch:
How to fix error : Error 0xe800007e: The device OS version is too low. ionic
Was anyone able to solve this?

The error, "The device OS version is too low," is reported erroneously since the watch app is installed on the device. If it doesn't show immediately, toggling the "Show on Device" button in the watch companion app, to uninstall and reinstall, will enable the app to be installed successfully.

Related

Xcode 11.3 - Unable to run on device

I've been working on an app within Xcode that runs fine on the simulator. I wanted to try it on my device. However, I've been encountering a frustratingly vague issue every time I try to install/run it on my device.
The installation fails and the message I get includes:
Unable to
install "AppName" Domain: com.apple.dtdevicekit Code: -402620415
-- App installation failed Domain: com.apple.dtdevicekit Code: -402620415 Failure Reason: An unknown error has occurred.
The target deployment is set to iOS 13.2, the device is an iPhone X running 13.3, and Xcode is version 11.3 running on MacOS 10.15.1.
I've tested other apps on my device previously, though not since updating to iOS 13 and macOS Catalina and Xcode 11. Any thoughts/guidance are much appreciated!
Go to general
Delete the app
Reboot the phone
Make sure you are running the new os version on ios i.e 13.4
After reboot connect back your phone
Choose the phone on Xcode, Run it
Not really an answer per se. But I did a forced restart to my device (volume up, volume down, hold down wake/sleep/Siri button until Apple logo appears), and then I tried again. The app appeared to install correctly at that point and run on my device. So seems like something weird was going on, but I forgot the first rule of tech support: "Did you try power cycling your device?"
Anyway, leaving this here so that if someone else encounters this issue, they too may be reminded that it's worth trying a forced restart.

Xcode: Can't Install App on Apple Watch Simulator ("Will Install Watch App timed out")

I try to run my first WatchKit Swift App in Watch Simulator in XCode, but it doesn't show in Watch simulator with this error message:
Will Install Watch App timed out.
I have not found any error message like that on the internet and I don't know what to try.
I am running Xcode 7.3, Mac OS X El Capitan 10.11.4.
Thank you!!
I've seen this happen as well. The simulator you're trying to install to has somehow become corrupt, reseting it doesn't fix the issue. You need to go into Xcode's Devices screen, delete the affected simulator and recreate an equivalent one.
I found that these steps dramatically increase the chances of a successful install to nearly 100%:
Uninstall the app from both Simulators (iPhone and Watch).
Close all Simulator applications.
Run install from Xcode.
I hope that helps!

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

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
This was a permissions issue on the Apple Watch.
To fix:
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]
Tap Trust.
Now you can run the app through Xcode with no issues.
Had same issue:
Go to settings on iphone
General > Device management
choose your developer app from list
click on trust

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.

Can't install builds via TestFlight as of Xcode 6.3 build 6d570

I'm archiving my builds like normal, selecting iOS device from the device menu, and clicking Product->Archive. Once the archiving finishes, I click "Submit to App Store" in the Organizer window.
After the app successfully uploads to iTunes Connect, I enable TestFlight beta testing and try to download it to my device, at which point I get an error message:
Unable to Download Apps
"[Your app] and 1 other application could not be installed at this time.
Done | Retry
Any ideas what's going on here? I also tried running the debugger on my device, which is now listed as an "ineligible device" in XCode, even though it's running 8.3 and my deployment target is 7.0.
This is may be related to this thread, Try this => Ineligible Devices section appeared in Xcode 6.x.x
Updated 4 : for XCode 6.3 & iOS 8.3, if you have this problem, just go to Product > Destination to select your device. Even though it says your device is ineligible, it will still allow you to select it. If your iDevice version is >= target version, the build should work. It must be a bug for XCode 6.3 in debug with iOS 8.3 (thanks #einfach)
Solved by updating the version number in my info.plist file and rebuilding.

Resources