Compatibility of Xcode 5 with Xcode 6 - objective-c

Apple has now announced Xcode 6 (and iOS 8). I currently have Mavericks on my Mac (and am not planning to upgrade to Yosemite yet), and am wondering if I can download the Xcode 6 dev preview, while still maintaining my current version of Xcode 5. This is so that I can use the new Xcode 6 features, while still being able to work on, and upload, my current applications. Is that possible?
Also, if I update my phone to iOS 8 Beta, will I be able to run apps from Xcode 5, or only Xcode 6?
Answers would be hugely appreciated! Thanks :)

Even I use Mavericks, I installed Xcode 6. In order to be sure about my maintenance projects, I've also downloaded Xcode5.1.1 from Apple developer portal, copied it into my Desktop, renamed it as XCode 5.1.1 and then moved it to my applications folder.
I have both versions at the moment without any issues and can also select the version of Xcode while opening an existing Xcode project by using open with menu feature.
I hope this helps...

Xcode 6 Beta Release Notes
Xcode 6 Beta requires a Mac running OS X version 10.9.3 (or later) or 10.10.
I think its possible that you can do all things you was able to do with Xcode 5 but I will tell you when my xcode 6 download is finished.

You may install XCode 6 Beta on OS X 10.9.3, and I think that you'll need XCode 6 in order to run iOS8 apps.
One thing that you didn't ask, but that you should keep in mind (as you mentioned your phone):
Devices updated to iOS 8 beta can not be restored to earlier versions
of iOS.

i've installed Xcode6 in Mavericks and iOS simulator crash with message : Unable to boot the iOS Simulator. :-(

You can download the preview of Xcode 6 and use your existing installed Xcode 5 side by side without affecting anything you're doing. Just make sure if you click on a project file that you open it in the correct version of Xcode.

Download xcode dmg file from Apple's developer site. Install it in a different location other than the Applications folder. There you go !!

Related

Crash while running old project on iOS 11

I have code which was initially developed on Xcode 3.2. It was then later update to become compatible with ios 7. But now when I run that code with Xcode 9 GM, it run alright on any iOS 10.x device.
But crash on iOS 11 device with following error detail:
Plus: When i open this project with Xcode 9 GM, Xcode doesn't show iPhone X simulator.
I think you have some old static libraries. iOS 11 supports only 64-bit libraries.
And also you can check Deployment target of your app. Maybe it's too low (I think ios7 deployment target is not supported now).
I think your app is running on 32-bit
As a reminder, new iOS apps and updates submitted to the App Store must support 64-bit. Support for 32-bit apps is not available in iOS 11 and all 32-bit apps previously installed on a user’s device will not launch
64-bit Apps on iOS 11
I don't know what is you exact scenario but possibilities of crash with payload could be following. Hope anyone of below all will work for you.
Please Try Following.
Disable "Enable guard Malloc" from diagnostics.
OR
You Can do Following:
delete all certificates from keychain.
Quit xcode
Delete xcode derivedData and delete all provison profiles
Restart mechine
Download latest certifcates and provison profile from Member Center
Click on certifcate i will install in keychain access.your key chain access should like this
OR
if you are using custom framworks, you need to put it inside the Embedded Binaries section located in the Xcode project under the tab Target / General.

Installing Xcode 8 on pre-installed Xcode 7.3.1 [Using multiple version]

Hi I am currently using Xcode 7.3.1 on macOS Sierra. Due to the issue ERROR ITMS 90167. I can't upload my archive using Xcode 7.3.1. So, It's time to upgrade Xcode 8.
But, unfortunately, I can't use Xcode 8 to Develop application due to migration problem on my previous project which was big. All I want is built in Application Loader from Xcode 8. And I need to do some migration on Xcode 8 while I am developing my current app from 7.3.1
And I did download Xcode 8 from Developer Program => Xcode8.xip
Before I install this version, I changed my previous Xcode 7.3.1 to
//Application/Xcode7.3.1.app
inorder to protect overwriting this version.
When I paste Xcode 8(Xcode.app) which i extract from .xip to Application Folder, I open it after its done installing after passing "Installing Component".
Then I open it,it worked (Xcode.app) = Xcode 8.
Then when I open my 7.3.1(Xcode7.3.1.app), it stop working means can't open and show me crash message every time I opened it until I changed my Xcode 8 app title to
//Application/Xcode8.app
So, there will be two Xcode Version on Application Folder. Then when I open Xcode 8(Xcode8.app), it won't let me open and show me error alert again.But, Xcode 7.3.1(Xcode7.3.1.app) come back to live and prompt me to install .git Command Line Tools then I can work back using Xcode 7.3.1.
But then, my problem is I can't open or use Xcode 8 anymore even I change my Xcode app name to different name.Was it "Command Line Tools" causing the problem?
I really need solution to solve this case because I want to use both Xcode Version on my mac.Any Help?
Download Xcode DMG files. I have Xcode 7.3.1 in my Applications folder and Xcode 8.0 in my Desktop folder. I use both Xcode very often.
If you already have two Xcode delete one, delete Xcode 8.0. Or delete both of them if you want. And you can download Xcode 8.0 from developer portal or update to macOS Sierra and download the AppStore version of Xcode 8.0. But then you can't download Xcode 7.3.1, you will not get the DMG, I don't think that you can download the DMG from developer portal for Xcode 7.3.1.
So in my opinion the best option is that. delete Xcode 8.0 from your Applications folder. And download Xcode 8.0 DMG from developer portal and put in some other folder not in Applications folder.
I have both the versions of Xcode 7.3 and 8.0. I have installed Xcode 8.0 from dmg file without changing anything in the applications folder for Xcode 7.3.1.
After installation of Xcode 8.0, I observed application folder has only one Xcode version so to open projects in different version I do something like in the image
This works just fine.

Xcode 7 & iOS 7 simulator

Ive upgraded the version of Xcode to 7 (Release version).
Is it possible to have Xcode 7 and Xcode 6 installed side by side?
I need to support users on the iOS 7.0 platform but for testing I do not have extra devices with me with iOS 7.0 installed. If the answer to the previous question is NO, is there a way to install iOS 7.0 simulators in Xcode 7
Follow up question: If I open a project in Xcode 7 and then open it Xcode 6 will there be any errors in the project files/storyboards?
Yes, you can have multiple copies of Xcode.app installed on the same computer and switch between them. You may run into issues if you try to use both at the same time, but as long as you quit one before using the other, you should be fine.
There is no way to install the iOS 7.0 Simulator with Xcode 7.0. The iOS 7.0 Simulator Runtime is not supported on Yosemite and newer host OS versions, and Xcode 7.0 is only supported on Yosemite and later. You will need to use a Mavericks host OS in order to use the iOS 7.0 Simulator Runtime. If you would be satisfied with the iOS 7.1 Simulator Runtime, that is still supported on Yosemite (but not El Capitan) when using Xcode 6.x (but not Xcode 7.0).
In regards to opening your project in different Xcode versions, there shouldn't be any problems like that.
For your first question i think this link can be help full,please check
Can Xcode 6 and Xcode 5 coexist on the same computer?
I have xCode 6.4 http://developer.apple.com/devcenter/download.action?path=/Developer_Tools/Xcode_6.4/Xcode_6.4.dmg and xCode 7 side by side, just download and install "xCode 2"

Xcode 5 not detecting iPhone running iOS 8

I have an iPhone with iOS 8 installed on it, but when I connect it to Xcode 5.1, it doesn't recognize it.
As with the other answers, it seemed fairly random whether or not my iOS 8 device was being picked up by Xcode 5.1. It appears that it works if you have the iOS 8 device plugged in before you start Xcode 5.1. When you do that, you will get a screen indicating the symbols are being processed:
After this completes, the device is selectable. I am pretty sure this needs to be performed with each new beta. That might explain why it appears to suddenly stop working.
If this isn't working for you, make sure you have the latest Xcode 6 Beta to match the iOS 8 Beta version, and connect the device while Xcode 6 is running. The same "Processing Symbol" files process will occur and then Xcode 5.1 seems to work.
the only decent way to make it work is to create a symbolic link to a folder that contains binary for iOS8. You can make fool Xcode 5.1 saying "yes, iOS 8 is ok." via a symlink:
In my case I have Xcode 5.1 on Mavericks HD, and Xcode 6.0 beta 4 on Yosemite HD.
I did:
sudo ln -s /Applications/Xcode6-Beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/8.0\ (12A4331d) /Volumes/MAVERICKS/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/8.0\ (12A4331d)
and Xcode 5.1 did work with my iOS8 iphone.
(note the space before /Volumes/MAVER... )
PS: for every beta, I have to patch again... :(
You need to download the Xcode 6 Beta. It's available in the iOS Developer Center, where you downloaded the iOS 8 Beta.
I have connected my iPhone with iOS 8 installed to Xcode 5.1.First time it doesn't recognize.but when i unplugged device and connect again , Device Recognized.
I dont know the reason Anyway i am sure that you can also connect your IOS8 installed device to Xcode5.1 ....
I've been using Xcode 5 to build on an iOS 8 device just fine. Now all of a sudden, it won't let me anymore.
first use xcode6 build on your iPhone5s.
second open xcode 5 ,unpluge device and connect again.
then device recognized.
Open xcode 6 and wait until device is recognised. When done, close xcode 6 and open xcode 5.1 and your device is going to be automatically recognised.
That way you can run your application on a device with iOS 8 with the old xcode.

How to install Xcode 5?

OK, as it turns out, I did not explain my question very well at all. here is a complete re-write.
I have Xcode 4/iOS SDK 6.1 installed. I want to install and use Xcode 5 but want to use iOS6.1 SDK. I know that I can download iOS6.1 SDK from Xcode 5. But, I want to avoid that since the iOS 6.1 is already in my hard drive. Is there any way I can avoid having to download iOS6.1 SDK again.
You download Xcode 5 from the Appstore.
In preferences / Download you can download the iOS 6.0 and 6.1 Simulator
In Project Info you set the iOS Development Target to 6.1 and in the Storyboard you can chose as which iOS (6.1 or 7.0) the Views should be displayed.
EDIT: Also, Xcode5 supports earlier iOS with the same files you already have. There is no need to separate iOS 7 from the earlier Versions.
No need. Xcode 5 supports iOS 6 integration. For more info about this, look at this post: Can one develop for iOS 6 using XCode 5 on Mavericks (OS X 10.9)?
EDIT
Here is how iOS 6 SDK can be installed in Xcode 5 (requires Xcode 4 to get the SDK)
In finder, go to Applications, and find Xcode (4)
Right Click into Show package Contents
Navigate to Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs
Copy iPhoneOS6.1.sdk
Once you download/update-to Xcode 5, go into the same folder, where you should see iPhoneOS7.0.sdk
Paste the SDK in this folder
Fore more information on setting up Xcode 5 for iOS 6, look here: Is it possible to install iOS 6 SDK on Xcode 5?
Although this question isn't really meant for SO (More for Superuser),
Can I have multiple Xcode versions installed?
how to install two versions of xcode
This should answer your question. (The installer gives you the option of where to install it; you can simply choose a different directory)