Run old app on iOS 10 - ios

I have an old application, developed using xCode 6.
I would like to build it and run it on iOS10 without converting the code to a new version of Swift (as it seems taking too long).
Strangely, I am able to run the app on an iPad with iOS 10.0.1 but not on my iPhone which has iOS 10.0.2.
For my iPhone i get ineligible device from the Product>Destination menu.
Does anyone know why?
Thank you

Related

iPhone is not available [duplicate]

This question already has answers here:
iPhone is not available. Please reconnect the device
(33 answers)
Closed 2 years ago.
I have an issue with trying to run the app on iOS 12.4.7 where I'm always getting this message in Xcode:
iPhone is not available. Please reconnect the device
I have checked many answers related to this issue and in most cases issue is connected to Xcode version and iOS 13. In another words lower Xcode version then it should be. I have tried many things: re-connecting, restarting Xcode, restarting iPhone.
My Xcode version is 11.5 and deployment is set to iOS 12.0 but still I can not run the app on iOS 12.4.7 which is the version of iOS on my phone. I think Xcode 11.5 should support running the app on lower versions than iOS 13. Also I have enough free storage on iPhone to run the app.
On simulator, iOS 13+, app will run but on real phone it doesn't. Unfortunately I can not upgrade my iOS version and I need to test in app purchases. Any help is more than welcome. Thanks in advance.
The issue isn't the system version, it's the device type (iPhone 6). Xcode 11.5 just isn't going to support running on your device. You can run the app on your device, no problem; but not from Xcode.

Why do I get wrong and different navigator.getPreferredLanguage, navigator.getLocaleName and navigator.language in a cordova app with IOS 10.2?

When I execute an app inside the iphone 6 plus simulator with IOS 10.2, I get following results when trying to detect language (from the safari inspector web against the simulator's app webview) :
The iphone settings are like these:
So I was expecting "es-ES" as the preferredLanguage and navigator.language, but I get "en-ES".
If I execute the navigator.language with the inspector web against a clean safari window inside the simulator, I get "es-ES" correctly.
If I execute the same against another image of the simulator (iphone 5 with IOS 10.2) I get the proper results. I don't want to reset the simulator image, as some customers are complaining about similar behaviour, and is the only way of reproducing it. I have a physical iphone 5s with ios 10, and it is not happening to me.
Any ideas of what could it be happening?
cordova version 5.3.3 with ios 3.9.2.
iOS platform: Xcode 8.2.1, Build version 8C1002

iPad 1, how to run code?

The iPad 1 update past iOS 5. When I try to run my app from Xcode on it, it says
Xcode cannot run on the selected device. No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination.
What do I need to do to be able to run my app on this iPad?
you can edit your project as follow.

Run iOS Apps on iPhone with iOS 8 through XCode

My iphone is currently running ios 8. When I try to run apps through XCode on my phone I get this error message:
Xcode cannot run using the selected device.
No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination.
In XCode under deployment target, there is no option for 8.0 (iOS 8) and the app will not run on my phone.
Is there an SDK I need to download for xcode?
Any help is greatly appreciated.
You need to download Xcode 6, which includes the iOS 8 SDK. You would download this from the Apple developer site, where you downloaded the iOS 8 Beta image from.
https://developer.apple.com/devcenter/ios/index.action
Xcode 5 knows nothing of the existence of iOS 8. You're going to need to get Xcode 6 from this page (direct link) if you want to run apps on your iOS 8 device.
Note that the direct link is only good for the version of Xcode 6 shipped alongside iOS 8 Beta 2. I have no idea what it will do when we get to Beta 3.
The way I got it to work was:
close all instances of Xcode.
open the Xcode 6-Beta
open Xcode 5 so both Xcode's are running at the same time
close Xcode 6-Beta, and after doing that, Xcode 5 will recognize your device as a capable one and you'll be able to deploy to your iOS 8 phone.
The reason you need Xcode 5 is because you won't be able to submit iOS 7 apps to the app store from Xcode 6, it'll give you an error so you need to use Xcode 5.

App not running on older version of iOS SDK

I want my application to run on both iOS 6 and iOS 7. I have already upgraded to XCode 5, so to see how my app runs on ios 6, i downloaded ios SDK 6.1 and pasted it in the folder of XCode.app. I changed deployment target to ios SDK 6.1, the base SDK to iOS SDK 6.1. I have installed simulator 6.1 too. But when i run my app, i get several errors..
like
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:53:24: 'UIAccelerometer' is unavailable: not available on OS X
All errors are similar to this one. I don't know why the app is trying to run on mac OS X..
I dont know why you done this all if you only want to run your app on both iOS 6 and 7.
You can see your app running like on iOS 6 device by simply running the app on iOS 6 simulator with XCode 5 and iOS7 Sdk. You dont have to change your deployment target anyways.
Even if you want to see your XIb in iOS6 pattern,you can do that too in XCode 5. If you want to see that, please revert me i will tell you that too. Or if you want something else, please tell us more precisely. Thanks :)
Make sure that you can run other apps on your simulator.
What about your error description - UIAccelerometer is deprecated in iOS 5. I think you try to run old application.

Resources