Can I develop for iPhone with Xcode on 10.6.8? - ios

I am trying to get into iPhone apps and my 2009 Macbook Pro (running 10.6.8) is not capable of running the newest version of Xcode.
Do I need the newest version of Xcode to properly create an app? (I have v 4.02)
If so is a software update the way to go or will I need to upgrade the computer to run Xcode efficiently?

With 10.6.8 you can at least upgrade to Xcode 4.2 so you should do this. But you won't be able to work with any projects that include Storyboards or the new collection literals. You will be able to use ARC (modern memory management). You won't be able to use any iOS 6 features (max iOS version is 5.0 I think, maybe 5.1).
For learning this is fine, your main limitation will be opening sample code projects from others that use new features, you won't be able to run them. Also you won't be able to use 3rd-party frameworks targeted for iOS6 / OSX10.7+.
But your 2009 Macbook Pro should run the latest OSX.10.8.2 fine. I am running a 2008 MBP (6MB ram) with no problems. Then you can run the latest XCode 4.5.2 and be compatible with everything.

WARNING! DON'T WASTE YOUR TIME!
OS X 10.6.8 (snow leopard) is now TOO OLD to publish an iphone app.
You'll need a new mac with OS X 10.8 (mountain lion). If the hardware in your mac won't support an upgrade to more recent OS X versions, don't waste your time. Apple have not maintained backward compatibility, so the necessary versions of Xcode or Application Launcher won't run on 10.6.8.
You can develop, test and simulate with your old mac, but ultimately to build and publish your app you'll need a newer Mac.

You don't need the newest version of Xcode to create an app, but you'll need the newest version of Xcode to create apps that take advantage of newer versions of iOS.

Yes You can Develop but in order to avail the latest developments and improvement it is advisable to upgrade.Upgrade usually makes the life of developers easy, though there is some initial resistance towards change

Yes You can develop apps through your Xcode. The last version of Xcode is 4.2 for Snow Leopard. But you need to update your OS for develop for latest OS and device. Also Upgrade your OS, So you can use latest Xcode and get advantage of development tools

Related

Install ios 5 simulator to xcode 5.1?

I am currently using xcode 5.1 with Mac 10.8.5. But i can not install ios simulator in this xcode? any one tell me how to install ios 5 simulator ?
Man, this really made me angry today when I upgraded from Xcode 5.0 to Xcode 5.1 and discovered that I no longer had a functional iOS 5.1 simulator. There was nothing in the Software Update process that gave me any heads-up whatsoever that this would disable iOS 5.0/5.1 simulators. Bad Apple! Bad!
Anyway, here's the workaround I came up with. It seems pretty clean.
I noticed that in ~/Library/Caches/com.apple.dt.Xcode/Downloads there was an old file sitting around called Xcode.SDK.iPhoneSimulator.5.1-5.1.dmg (thank god I never cleared out that cache directory).
I double-clicked this disk image to mount it, and then double-clicked the .pkg file inside that. The package installer then placed the contents into a subdirectory of /Platforms.
I then moved /Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk into /Applications/Xcode/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs and restarted Xcode.
Bam. Done. Back in business.
Note: Another approach, if you happen to have a thorough Time Machine backup of your full system, as Pandey Laxman pointed out earlier, is simply to restore the contents of /Applications/Xcode/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk from an older backup. In my case, I wasn't able to do this because my development system is a MacBook Air that I keep backed via Time Machine up onto a permanently-installed 32GB SanDisk Cruzer Fit USB flash drive (as well as two extra Time Machine backups on separate network drives). Anyway, because the backup drive is relatively small, when I first set up Time Machine on this system, I had excluded /Applications from my backup (something I don't recommend doing).
In order to develop for the latest version of iOS, you need the latest iOS SDK, which requires the latest version of XCode, which in turn requires the latest version of OSX (at least as of writing this iOS 8.3 requires XCode 6.3, which requires OSX 10.10 - all the latest and greatest).
I would guess that Apple doesn't want to support iPad 1s and old iPhones anymore running iOS 5. Thus, they've done what they could to discourage developers from supportting them.
I, personal, put a lot of effort into coding to support iOS 5 through 8. I am not in hurry to throw that backwards compatibility away, but obviously developing for the most current version of iOS takes priority.
To get to the point, you can't install or run an iOS 5 simulator on OSX 10.10 Yosemite. I couldn't get an iOS 6 simulator to run either for some reason (even though I was able to install it in XCode 5).
I did, however, find a solution so I could use simulators for iOS 5 through 8 on my machine.
How? Setup a dual boot into an older os and install some software which can no longer be downloaded, but I tracked down.
I've posted the steps and all the software here. Nothing is difficult about any of this, but it will take many hour of downloading and running installations, ect. Reserve a day to do this while working another machine most of the time.
Create a partition on your hard drive from which you can run OSX Lion. I found 32 GB was large enough.
You may also want to create an additional partition at the same time rather than use a flash drive in step 2. I also made it 32 GB, but it could probably be a lot smaller (8? maybe even 4 gig?).
Here's a link to help with that:
http://arstechnica.com/apple/2014/06/how-to-create-a-test-partition-for-the-os-x-yosemite-beta/
Create a bootable installer drive for Lion. You can use a flash drive, or the extra partition suggested in step 1 (that's what I did when the only flash I had on me was acting up).
Here's the os:
OSX 10.7.2 Lion
https://drive.google.com/file/d/0BwmycZWygE8EUlhCYWlOWjlCcHM/view?usp=sharing
Here's directions for doing this:
http://www.tech-recipes.com/rx/11807/os-x-lion-convert-os-x-lion-dmg-installer-to-a-bootable-usb-thumbdrive-install-without-an-optical-drive/
Run the installer. Restart the machine whiling holding down the "option" key on the keyboard to select your boot device.
Once you have Lion up and running, you need to upgrade it to 10.7.5 (sorry I didn't have that to post to begin with).
Simply use the basic software update mechanism to do this.
Install XCode 4.6. Here's the software:
XCode 4.6.3
https://drive.google.com/file/d/0BwmycZWygE8ETnlFQ1BSYVV1ZUE/view?usp=sharing
Normally, you ought to be able to install an iOS 5 simulator via XCode, but Apple has blocked this.
You can however, install it manually as others have described in this thread for the various sdks (as long as you already have the software!)
Here is the software (since we don't have just happen to be lucky enough to have it previously installed):
Sorry, I don't have 5.1, only 5.0
iOS 5.0 Simulator
https://drive.google.com/file/d/0BwmycZWygE8ETndPOFJyUVg0b3M/view?usp=sharing
Install the command line tools if necessary. Again, XCode ought to allow you to do this, but it will fail when you try the normal way. Go ahead and give it a try.
Here's a dmg instead which you can install yourself that is compatible with this setup:
Command Line Tools (XCode 4.6 / OSX 10.7)
https://drive.google.com/file/d/0BwmycZWygE8EWm9QTW5HYV9PUnM/view?usp=sharing
Get your project to build in this new environment. There are permission issues and such when you try to cross over to your primary drive.
I found the easiest way to get everything working was to copy whatever I needed to the Lion drive and make sure all the relative paths were identical.
I also had to play a bit with the code because what compiled for the 7 and 8 sdks didn't work perfectly with this one. That's on you.
I believe the iOS 6 simulator will already be installed for you, but otherwise you should be able to download that still via XCode if needed.
Enjoy having all these simulators now!
you need to copy the simulator SDK to Xcode 5.1.
First copy the simulator SDKs from your previous installed Xcode.
then paste it in
Xcode 5.1 "Show Package Contents->Contents->Developer->Platforms->iPhoneSimulator.Platforms
->Developer->SDKs folder
There restart the Xcode 5.1.
Unfrotunately ,Xcode 5.1 in OS X 10.9 or 10.8.5 the iOS 5 simulator is no longer available.
Better to use some older versions like 4.6 for use iOS 5 simulator
using of Xcode 5 under OS X v10.8 then if you go to Preferences -> Downloads you should see the 5.0 and 5.1 simulators available under Components. You can download and install directly from there.
If you're using Xcode 5 under OS X v10.9 then the iOS 5 simulator is
no longer available.
xCode 5.02 up to available iOS 58 simulator but after updated the xcode through 5.1 the available simulator start from iOS 6
iOS Simulator
Performance issues can arise when running apps within the iOS Simulator on OS X Mavericks with a simulated OS version of iOS 6.1 or earlier.
A workaround is to disable timer coalescing while using the iOS 6.1 or earlier simulator by executing the following command in a Terminal window:
sudo sysctl -w kern.timer.coalescing_enabled=0 (15501929)
https://developer.apple.com/library/ios/releasenotes/DeveloperTools/RN-Xcode/xc5_release_notes/xc5_release_notes.html

Developing for IOS on 10.6.4

Ill start developing for IOS but the hardware I got only suport up to 10.6.4
I know that Xcode 4.2 seems to work on Snowleopard...
but the last version requires 10.7.4, in there anyway to make the last version work on the 10.6? If not, if I just use the 4.2, can I still develop with no problems? what Im going to be missing out?
Thanks
Edit: Thanks guys, Ill be building myself a hackintosh...
Older versions of Xcode are still available:
If you can't install the latest version of Xcode on your MAC, you can get older versions at connect.apple.com.
Notes:
However, they won't come with the latest SDKs.
And you can't develop for the latest iOS devices with an old version
of Xcode.
In short, you will probably need to upgrade your hardware in order to develop using the laters version of Xcode.
Apple are very sneaky - they want to sell hardware - so by dropping support for various OS versions in Xcode and not supporting older hardware with newer OSes they are effectively forcing developers to buy the latest hardware to keep up to date with software development.
You can still develop older iOS apps (i.e. using older SDKs and targeting older iOS versions) using an older version of Xcode (Apple do at least make the older versions of Xcode available through the developer portal). However, you'll need to carefully figure out what iOS versions you can target because Apple are also increasing the minimum app specifications in order to submit new apps and updates to the App-Store. So soon enough it won't be possible to submit apps developed using Xcode 4.2 to the store and you will need to update the Apple hardware you develop on if you want to make apps that will be submitted to the store.
The most annoying thing about this is that you can't even use an older Apple computer as a build server. I have a Mac mini which is less than 5 years old and I can't use it for development any more - it would be perfect as a build server!

Can I write an iOS app with OSX 10.5?

I'm trying to write an app for my own use on my iPhone (iOS 6.0). Unfortunately I'm also traveling with my OSX 10.5 laptop with Xcode 3.1.4 loaded. Is there any way to run an app built with this xcode on my iPhone? I don't need any feature from a recent iOS and there are plenty of old apps that run just fine and were probably developed with old Xcode versions, but I always get an amber button indicating the iPhone iOS isn't supported when I hit build and run.
The oldest version of xcode that can develop for iOS 6 is xcode 4.5, and for running xcode 4.5 you need to have MAC OS 10.7.4 or later version
Sorry man, You can't.
You need Xcode4 and Lion for iOS6 development.
EDIT:
Now(2014 AD) Apple doesn't allow any app developed using below Xcode 5, so you need to have Xcode 5.
No. To develop for a modern iPhone, you need an Intel mac, and I doubt that a laptop with 10.5 is an Intel Mac (or that 10.5 even supports x86). Also, Xcode versions are correlated to API versions, if you haven't noticed, so even if possible, you'd probably only be able to use the 3.0 APIs, which are now not even usable because of the multitasking introduced in 4.0.
Short answer: No.

Am I able to still build and submit apps to the app store if I am only capable of running OS X 10.6.8 Snow Leopard with XCode 4.2?

Am I able to still build and submit apps to the app store if I am only capable of running OS X 10.6.8 Snow Leopard with XCode 4.2? This limits me to iOS 5.0.1 development.
My Mac Mini maxes out at 10.6.8 and cannot run Lion, therefore it cannot run XCode 4.3 to develop for the iOS 5.1.x platform.
Should I continue to develop my app because it will be compatible or should I abandon my goal until I am able to upgrade my hardware?
Running 4.2 won't stop you from being able to upload your app to the App Store. Running this version will prevent you from being able to test your app against newer versions of iOS, leaving room for users to experience bugs that you didn't know existed.
Normally I'm an advocate of staying up to date, but considering there isn't an enormous difference between 5.0.1 and 5.1.1, you can probably pull it off. (at least for now) I would still recommend that you upgrade your hardware as soon as possible.

Macbook 1,1 - IOS 5.0.1 - Xcode 4.2 - If I develop in this, will it work on current gen devices?

I only have the Macbook, which I CANNOT upgrade to Lion. I'd like to get started developing IOS applications. I've got an iPod Touch 5.0.1, so I'm good there. My main question is this-
When I finish making my applications and I deploy them to Apple, will they work just fine on other devices, like iPhone 4S 5.1.1?
Also, if I pay the $100 to Apple to develop, will they support my Xcode 4.2 for the whole year?
Will I be able to deploy my applications using this scenario without fear of Apple cutting me off?
Thanks in advance.
Xcode 4.2 is the last officially supported Xcode version that runs on Snow Leopard, but if you do developing on it, anything that works for older iOS's will run on your iDevices running newer OS's. You might be able to get newer SDK's to run with Xcode 4.2 but myself, I wouldn't risk it.
I think the big issue you're going to run into is that if you install a new OS onto your iDevice for testing, you may end up not being able to use your device for testing (in the Xcode organizer). So you probably want to keep at least one device back on the last supported iOS version for Xcode 4.2.
And this should take care of you for the whole year.
And hopefully you'll make enough money from whatever app you're building to afford a Macintosh where you can run Mountain Lion (OS 10.8) and Xcode 4.4 or 5 or whatever will be out a year from now.
Yes.
Yes.
Yes.
It really doesn't matter which Xcode do you have. You can even have Xcode 3 ;)

Resources