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.
Related
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
I have tried to build an app through to the AppStore but they rejected it due to the app using sdk 11.4. Stating that it needs to use the updated version of 12.1.
The current Xcode I have installed is 10.1 or 10B61 which is the latest without making use of a Beta. I have searched through the settings trying to find how to update the sdk as well as maybe target that newer base SDK.
Things I have tried:
Searched for newer Xcode (stated above)
Searched through settings for the base SDK version number so it can be changed.
Went to AppStore to find any updates for Xcode (there were none)
Tried googling how to change/update the sdk, but none give an explicit answer on where this can be done. It merely states that Xcode 10 should come with a base SDK of 12.1, but that does not seem to be the case here.
Please note that this is not to target the minimum version. I know where that is and it is set accordingly. No issues there.
EDIT:
I have run $> xcodebuild -showsdks and it shows that sdk 12.1 is the sdk that is installed.
However, it seems that it is somehow overriding it to 11.4 when it is trying to build to AppStore. Not sure why.
The issue did not seem to be with Xcode itself but rather Bitrise that we were using to build and publish the app to the AppStore. Once the correct stack was selected for the building/publishing, it managed to build, however, we then found a different issue.
Using Xcode 10.1 we built the app in iOS 12.1, however, Bitrise seems to have an issue with React-Native third-party dependencies when it comes to Xcode 10.0+. It just doesn't seem to install them correctly and throws an error while compiling. (dependency: double-conversion)
The only advice we could find online was to downgrade xCode to 9.4 and then manually add the Device Support files (from targeted SDK to 12.1) to the app. This is something we don't want to do.
We are waiting for Bitrise to sort their stuff out, but in the meantime, we are looking into building straight from Xcode or Fastlane.
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.
I am wondering how to handle running two versions of xcode on a mac, or if it is even possible.
I currently have a number of production apps that I service with the release xcode7. I must have this available for uploading app versions to the app store.
I also have a ipod touch device I have the ios9.1 beta running, and want to test and write code for the new os.
However, xcode7 says I can't test ios 9.1 beta, that I have to install xcode beta. Also, I've read that you can't push apps to the app store with the beta. So how can you maintain current apps, as well as, build new functionality?
Maybe I have missed something? some setting that allows me to toggle between these xcodes? or will the mac allow me to have two different versions of XCode installed? I assumed it would just override the other.
I don't want to buy another mac, or to partition the one I have, or keep downloading and installing different versions on all the devices, if I don't have to.
Any information would be helpful, how does everyone else handle this?
You simply need to rename them in /Applications; for example:
Xcode 6.4: /Applications/Xcode6.app
Xcode 7.0: /Applications/Xcode7.app
Xcode 7.1 beta: /Application/Xcode-beta.app (the default anyway).
They will co-exist perfectly happily, however if you do command line builds, you'll want to use xcode-select to select the version you want to use when using xcodebuild or clang, etc.
The betas generally come with the name Xcode-beta.app (this is true for the iOS 9.1 beta), so you can just download it and copy it to the /Applications folder as usual.
In the rare cases where that's not true, you can just rename Xcode.
You can install both versions. They will happily co-exist in your /Applications folder. One will be called Xcode, the other will be called Xcode-Beta
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.