Is there a way to test my Xcode 7.2 compiled app with iOS 9.3?

I have iOS 9.3 beta installed on a test device as I am running multiple compiled 9.3 apps, but I also have an older app that is compiled in Xcode 7.2. I can run the app on any iOS 9.2 device with ease, but if I try to run it on one iOS 9.3 beta device, I get a "Couldn't find developer file" error.

Xcode 7.3 contains some updates for Swift, so I would have to change a lot of my files, and I just want to check if it works fine. Is there a way to do this without changing a lot of Swift code? It's in the App Store built for 9.2 and I can run it on my 9.3 device, so I don't understand why it's so hard.

0


source to share


1 answer


If you want to avoid Xcode beta from potentially modifying the original project, just make a copy of the project and then just open it in beta. If you have an app running in Swift 2.1.1 (Xcode 7.2), the differences with Swift 2.2 (Xcode 7.3) are pretty modest. And if you do it with a copy, you can be sure that the original project will not be altered.

If you don't want to do this, for some reason you can install apps from production Xcode on a beta iOS device:

  • First, you want to make sure you have profiles installed on your beta iOS device. The easiest way to do this is to run the "Hello World" app on a beta device from the beta version of Xcode. If you are prompted to add a command / profile to your device, you should go ahead and do it as usual.

  • Close the beta of Xcode and launch Xcode and open the project for the app you want to install. Select "Generic iOS Device" where you select the active schema in the navigation bar and then build the app. Then you will see the file .app

    (not in red) in a folder Products

    in the Project Navigator tree in the left pane.

  • Install the app on the device by opening the devices window ( shift+ command+ 2) and selecting the appropriate device. In the right pane (or the top right pane if you're showing the console too), you'll find the Installed Applications section. Just drag the file .app

    from the "Products" folder to this section of the installed applications.

    screenshot



Obviously, if you have other applications that you want to install, you can simply repeat steps 2 and 3. as needed.

There are many ways to install an app on a device, but I find this to be the easiest one for a one-time installation with the device in front of me. You won't be able to debug if you do, but you can at least run it, run it in your own steps, watch the device console for any debug messages that might be NSLog

'ing, etc.

+3


source







All Articles