Run Debug Builds on iOS 9 Device with iOS 8 SDK - ios

It there any reproducible way to run a debug build compiled with iOS 8 SDK on an iOS 9 device?
Xcode usually tells me that the device's iOS is not supported by that version of Xcode. BUT I have managed to run on the same device with the same SDK via AppCode - unfortunately it does not work everytime, but in very rare cases. In these cases even break points worked fine.
Also when distributing an app for testing, it is no problem to install an app built with the iOS 8 SDK on a device running iOS 9.
So how can we properly debug that case?

So here's a hack that works for my whole team (I agree that it's annoying and frustrating, until you move to Xcode 7)
Make sure you have Xcode 7.x and Xcode 6.x Installed
Open Xcode 7 and let it Copy Symbols + Process Symbols so you can build the app for the device (Can take very long for new devices)
Open Xcode 6.4 and you'll see the iPhone. If Build fails Clean first (Cmd + K) and then run again
Known issue,
- It can sometimes say "Unavailable" or "OS Version" (can't be mounted because it's running on iOS 9).
Fix - Quit both Xcode's. Run Xcode 7 first, let it detect the phone and then open Xcode 6.4 and you can run the app now.
FYI: Sometimes just disconnecting and reconnecting the iPhone makes it discover. Also, it takes a looong time to Copy/Process symbols on new phones. The process is faster on known/previous devices.
You have to play with it for a while to figure it out. Best fix is to move to Xcode 7 ASAP.
Everything works just fine, including running on both iOS 8 and iOS 9 devices, breakpoints + debugging, and also submitting the app to iTunes connect.

Related

Xcode 10 with iOS 14 device - An error was encountered while attempting to communicate with this device. (The service is invalid.)

Is there any solution to fix this error?
My project is not working in Xcode 11/12 as one of our third party framework is not being supported. I have been copying DeviceSupport for my Xcode 10 since last year from Xcode 11 and all along it was working fine.
Ever since upgrading my iPad to iOS 14, it is showing me this new error:
Obviously I have tried to reconnect the device, restart, and tried to search for solution in forums.
Please share if you have run into this problem too.
iOS 13 is still working fine with my Xcode 10.3, and I am able to run my project in simulator as well.
I have found a workaround for this problem. Build (Command + B) using Xcode 11 and Deploy or Run Without Building (Option + Command + R) using Xcode 12 and it deploys to device successfully and debugger is also attached. However, for some reason debugger is not working as expected for me using this approach.

simulator .app for ios 10 not working in ios 8

Basically I ran my project into iOS 10 and copied the .app from there and tried to run it on iOS 8 simulator on a different machine but its not getting installed.
But ideally it should get installed and run perfectly.
so ios 10 simulator .app is compatible with only iOS 10 for iOS 8 we again have to run it on iOS 8 simulator and copy it over
can anybody put some light on this problem
You need to set the app's deployment target appropriately and properly handle the usage of API that is not available in the oldest OS that you intend to support.
There shouldn't be any problem I have never experience this and I was able to run the app on iOS 8,9 and 10.

iOS 9 not supported on Xcode 6.3

I downloaded the iOS 9 beta for the iPhone 5s and wanted to test an application that I have finished but now it says that my iPhone is an ineligible device. Is there a way I can still run apps on my iPhone without downloading the Xcode 7 beta?
You can RUN App on iOS 9 device using Xcode 6, But firstly you need to build your app on XCode 7, after that it will support on XCode 6.
I dont know the reason.
I have checked this on My Mac.
[EDIT]
Steps
Build the project on Xcode 7 while Xcode 6 is opened on the same
project.
Disconnect the device and reconnect it.(Now u can run ur app on XCode6, It may take little time to load device)
When i have checked iOS9 with Xcode6, Bugs are very less.
So i have plan to support iOS9 with XCode6 for quick release. Later i will do for XCode7.
You can build to an iOS 9.0 or 9.1 beta device from Xcode 6.4, not out of the box though.
Download Xcode 7.0 and/or Xcode 7.1 beta dmg, and copy the
Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/9.0 (13A340)
from Xcode 7.0 or:
.../9.1 (13B5110e)
from Xcode 7.1 beta folders to corresponding folder in your Xcode 6.x.
After restarting Xcode iOS 9.0/9.1 devices will no longer be marked an ineligible.
If you installed iOS 9 beta onto your iPhone, then you cannot develop on it without Xcode 7.
However, this is not a completely terrible thing; you can readily have both Xcode 7 and Xcode 6 on the same computer.
(What you cannot do, according to Apple, is revert your iPhone back to iOS 8 - but there are some comments below from people who were able to do it.)
Install the latest XCode. Keep both versions on your Mac. Give Keep Both when installing the new XCode and do not give Replace present XCode during the installation.
Go to application, right click XCode --> show package contents. Copy the latest version from the path:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
and copy to the Xcode you are currently working in the same path. Find the screen shots below and start working.
Happy coding.
Don't need build your project at Xcode 7.0, just open and select your device, after that, open your Xcode 6.4 and your device will automatically update the necessary things to build app by Xcode 6.4
Not the easiest or correct way. But if you really have to test once or twice in the device.
In Xcode,
Product -> Archive
Build for Ad-Hoc Distribution
Connect the device
Open Itunes, Select the device,
Select Apps, Drag and drop the .ipa file generated in step 2 to itunes
Press install
App will be installed to the ios9 device.
No, you have to download Xcode 7 beta since tools like the compiler and debugger are part of the IDE.
As stated on Apple Developer Website (here), Xcode 7 Beta has the Swift 2 compiler and SDK for iOS 9. My guess is, your current Xcode doesn't know how to compile for iOS 9 SDK.
However, Apple doesn't specifically mention Xcode 7 as a requirement. It states that OS X Yosemite or later is required.
I don't think you can specifically download an SDK that isn't supported inside Xcode. For example, you can go to Xcode -> Preferences -> Downloads and under Components you may see the iOS 9 Simulator.
If you go to the iOS 9 SDK and download it, it seems to only download the device OS and not the entire SDK.
In conclusion, I believe that the SDK "kit" is integrated with Xcode 7 that would allow you to develop on your iOS 9 Device. Without upgrading, I don't see you being able to do that. I could be wrong though.

Xcode cannot run using the selected device error in iOS 8

I tried to run my iOS app on iPhone 5 using Xcode, but when I connected it, the iPhone didn't show up in the top-left selection pane. And also when I ran the app from within Xcode, the error: Xcode cannot run using the selected device error occurred.
After that, I found that my iPhone was not even found in the organizer; it was there previously. However, after upgrading my OS X to Yosemite beta and iPhone to iOS8 (officially released version of iOS 8), everything doesn't work any more...
The last time I was able to run my apps on iPhone is 5 months ago, so I'm not sure when there's something wrong occurred during the period...
I cleaned and rebuilt the app, and restarted Xcode, but nothing worked.
I also confirmed that I use Default compiler in Build Options's compiler settings.
So what am I missing?
I had same problem. Problem is that your xcode is running on v.5 and there is no option to choose iOS 8 as device system. Try to update your xcode over appstore to v.6

Can't install my iOS 7 app to the iPhone Retina (4-inch 64-bit) iOS simulator

I can run my app on a physical 64-bit device it runs fine. Also I can install other test apps to the 64-bit sim. However when I try to run and build my app on the sim it acts like it is about to start by zooming in on the icon but then it freezes with the icon zoomed in then crashes but Xcode's debugger doesn't show anything. Any ideas?
EDIT: Works fine on non-64 bit sims. I have reset all iOS sims. (/Users/xxx/Library/Application Support/iPhone Simulator). I have cleaned my project and build folder.
EDIT 2: When I start a new blank single view app it doesn't work either. So I think it's my Xcode install. The 'other' app that works in the 64-bit sim doesn't build a 64-bit binary.
Reinstalling Xcode fixed the issue.
I wonder if I helped start this issue by side loading the iOS 6 SDK along side the iOS 7 SDK so that I could submit an iOS 6 app to the App Store with Xcode 5.

Resources