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

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.

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.

ERROR ITMS - 90167 No. app bundles found in the package on macOS Sierra

I am using Xcode 7.3.1 on macOS Sierra which I just updated yesterday.
Since I updated, I can't upload any more builds to Testflight; I always get this error message.
ERROR ITMS - 90167 No. app bundles found in the package
I see from research that this problem only happens in the macOS Sierra beta, but I worry it's going to continue through the final release
After a deep search and investigation, I finally decided that there is nothing wrong with our build. There was a problem when uploading our build with Apple iTunes Connect, which is that server denied uploading our build on Xcode 7.3.1 on macOS Sierra. But, uploading with Xcode 8 is working just fine. Just use the Application Loader from Xcode 8 if you are not ready for Migration to Xcode 8, or if some of your project's third party libraries don't support Swift 2.3.
So, how do I pass this?
Simply, just install two version on Xcode: one to continue your development.And one for uploading the submit.
Here is how : https://blogs.oracle.com/mobile/entry/how_to_install_multiple_xcodes
Create an archive from your Xcode 7.3.1 and export an .ipa with with your production profile. Then upload that .ipa via the Xcode 8 Application Loader. This is inside the Xcode app bundle: Xcode.app/Contents/Applications/Application Loader.app
You can also get to it inside of Xcode:
Xcode menu > Open Developer Tools > Application Loader
This is the only solution until Apple fixes it, believe me.

How to test my app on ios 7 using Xcode 6 simulator

I'm trying to test my app with ios7 using Xcode 6's simulator but I can't find the option to change it. Currently it only loads ios8 while my deployment target is set to 7.
Also according to this message from Apple:
Starting February 1, 2015, new iOS apps uploaded to the App Store must include 64-bit support and be built with the iOS 8 SDK, included in Xcode 6 or later. To enable 64-bit in your project, we recommend using the default Xcode build setting of “Standard architectures” to build a single binary with both 32-bit and 64-bit code.
Does this mean that new apps cannot run on ios7 anymore?
Thank you for your help.
First, Change Deployment Target to 7.You can change Deployment target from target under Deployment Info.
Go to Xcode Preferences, Select Downloads tab and download iOS7 Simulator.
Now go to Xcode, you can find iOS7 Simulator on target device list, if not than quit and restart Xcode.
Hope it will help.
The deployment target is the minimum version of iOS that your application will be expected to run on. It effects how your app is BUILT and not where you run it. You need to choose an iOS 7 device from the run destinations menu and then do a Build&Run to build, install, and run the app on the iOS 7 device.
If you don't have an iOS 7 simulator device in the run destinations menu, go download the iOS 7 runtime from Xcode -> Preferences -> Downloads
Yes you can, go to xcode(7) preferences>select Components here you can download Simulater and Documents also.

Compatibility of Xcode 5 with Xcode 6

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 !!

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)