How to install previous version of an ios app? - ios

I've developed an ios app, but now I got some crash reports which says that the app is crashing only when updated from a previous version and it goes away when uninstalling and then reinstalling that app altogether.
So I decided to reproduce the crash by going back to the older version doing some stuff and then updating it back to the latest build.
The thing is reverting back to an old commit for a switching back to the older version of the app is causing quite a lot of issues and errors which I'm unable to resolve as of now. So is there any way besides this to install the older version of the app.
I'm using Xcode 8 and Swift 4, while the previous version was built on Swift 2.3 and an older Xcode, my Testflight app only has the latest builds while there is nothing backed up on iTunes too.

The thing is reverting back to an old commit for a switching back to the older version of the app is causing quite a lot of issues and errors which I'm unable to resolve as of now
Ah, but that's not how to do it. What you want to do is not recompile the old version from source; you want the already compiled old version as an actual app. That is exactly what the archive is for! The reason we keep archives is so as to have the exact same already compiled code that has been distributed thru the store.
So just go to the Organizer window, find your old archive, and export it as an Ad Hoc build. Now you can install that on your device through the Devices window, play around with it, and then install the new version on top of it and run that and (one hopes) reproduce the problem.

A crash like this is almost always caused by data that is no longer compatible from the first version of the app.
If you don't have access to the compiled binary and don't have a way to re-install it, then your best bet is to install an old version of Xcode to install the old version of the app, and then use the new version of Xcode to install the new version of the app over it.
You may run into issues with the old version of Xcode not supporting your newer iOS version on your device. In that case, use the old version of Xcode to install the app to the simulator. Then in Xcode you open Window -> Devices and Simulators. You can download the sandbox folder for your app from the device and then copy over the exact files to a device with the new version of the app. Then when you run the new app you should be able to reproduce the issue.

Related

iOS version 16.2 released, but no Xcode support?

I am attempting to run my Swift app in Xcode, and after finding out my Xcode is up to date, yet my device is not supported, I took my problems to Google. Found out through a couple sources that I need to manually add device support, using this
I added the contents from the 16.0 folder into a new folder in Xcode Device Support and renamed the folder to 16.2 as it stated I should do.
Now, when I click Build, it tries to run before popping up an error on my computer saying:
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.
I'm not sure what to do as it doesn't make sense for me to attempt downgrading back to another iOS version when I should be running my app with the latest version. Why does Xcode not update these folders to provide support for new iOS versions?
If you haven't received an update, delete xcode completely from your computer and download xcode 14.2 from this link https://developer.apple.com/download/all/?q=Xcode
download it from this link
IOS device support

ios applications crashes on the start after updating to new version from apple store

I have uploaded a new version of my app to the apple store and when users tried to update it to the new one, it crashes on the start with some users having ios 14.0 , but when they reinstall the app and download it, it works without crashing.
so what the reasons behind the crash, how to produce the issue, and how to solve it?
beside note:
I added react-native-video package.
the app is working fine on simulator and testfight.
all the previous version was uploaded with this version of cocoapods: 1.8.4
And this new one I uploaded it with the updated version cocoapods: 1.10.0
is it may be the reason of the crash?
the application is built with react native.

Xcode 8.3.3 to Xcode 9.0 update

I have recently installed Xcode 9.0, but in order to also keep the previous version (i.e. both Xcode 8.3.3 and Xcode 9.0) available on my computer, instead of using the usual App Store Updates I have followed the instructions found here.
As much as I can see the result is pretty good.
Nevertheless the App Store application does not seem to understand that I am now up to date with Xcode 9.0.
It keeps showing me the update for it. What am I supposed to do about that? Any way to inform the App Store app?
The instructions you linked had you keep your old version and just install the standalone version of the new.
These instructions are bad. You've just found out why.
Throw away the standalone version of the new and go ahead and let the Mac App Store update your Xcode. Then download the old version from https://developer.apple.com/download/more/, rename it, and stick it in /Applications.
Also don't forget that while you can keep multiple versions of Xcode 9 open at the same time, this isn't true for older versions of Xcode. If you have Xcode 8.3 running, you can't have Xcode 9 running, and vice versa.

How does one (re)install xcode?

I made the mistake of upgrading xcode and its been painful.
I'm at my wits end trying to satisfy apples demand of "Rebuilding my app using the current public (GM) version of Xcode and resubmitting it."
some details Xcode 7.0.1 - Invalid Swift Support - cocoapods HOW TO FIX?
As far as I know I'm using the current public (GM). I'm using version 7.0.1 (7A1001), please someone tell me if thats not the current public (GM).
I've tried just about every "solution" here, the error still persists.
Now I'm down to reinstalling xcode as a last grasp.
Of course this process is cloaked in mystery, how do you go about "reinstalling" xcode? I've heard that xcode has a "large footprint" so it's just not a matter of trashing the app, is it?
Yes, it is just a matter of trashing the app and re-installing the older app.
Delete the Xcode, empty the trash. Make sure you get all copies, even ones outside the Applications folder.
Either get a fresh versio from the Apple app store or get an older version from the downloads.
To get the older version 6.4 from: https://developer.apple.com/downloads/ You will need to sign-in with your developer id.

Do I have to upgrade xcode to 4.3.2 with sdk 5.1 to distribute apps on ios 5.1?

My xcode is 4.2.5. I don't want to upgrade xcode now, because I read that xcode 4.3.2 has some problems.
I know it is necessary to upgrade xcode to test on 5.1 devices, but I am just wondering whether a release version compiled by sdk 5.0 can run on 5.1 devices.
You will not be able to build to a device running 5.1 without upgrading to the latest version of XCode (which also requires OSX Lion).
If you were to submit your app to the app store, however, users running 5.1 would still be able to download it. It very well might crash if you have 5.1-specific errors in the code, but users could install it.
No, it cannot. You must compile with at least the same version number as your target.
EDIT Wait, I should say that it will run but you won't be able to debug it. So I guess the answer is actually yes now that I read the question again.

Resources