iOS SDK for Mountain Lion - iphone

I upgraded to Mountain Lion from Snow Leopard on my macbook. In my macbook I had iOS SDK 4.3 and Xcode 4.2. Now I am downloading Xcode 4.4 for Mountain Lion.
In my iMac I have OSX Lion and it has iOS 5.1 SDK with Xcode 4.3.
What I want to know is should I download again iOS SDK 5.1 for my macbook? OR could I copy Developer folder from my iMac to macbook?

You can copy the downloaded App file that you used to install the SDK. The app file can then be run on different Mac systems.

You can't separate them, so you will end up downloading it anyway. No need to copy it from your other computer.

Related

Programming for iOS with older Xcode

I'm pretty new to coding for iOS and i have a question about setting up my development components.
I have MacBook Air with 10.5.8 Leopard on it. So we question is: will I have no problems writing apps having iPhone SDK 3.1.3 with XCode 3.1.4 for Leopard (10.5.7)? Will the created app work on all iphone versions? There is a possibility to upgrade to mountain lion and use newest xcode, but is it worth it ? Considering that I firstly have to upgrade to snow leopard and then to mountain lion.
Thank you for your answers in advance.
If you want to send them to the app Store, the apps have to be compiled with the latest iOS (right now iOS6), so you can't compile them with xcode 3.1.4.
You need lion to download xcode 4.5 that includes the iOS 6 sdk
It looks like the configuration of your MAC Machine is not compatible for latest Mountain Lion OS. Even if it supports Lion OS, that itself will be a great deal.
Anyways, Using leopard, you can develop applications only upto iOS ver 3.2. So you would not be able to submit your applications to App Store untill you compile it with latest SDK.
For this you need atleast Lion OS (Better if you upgrade your hardware compatible with Mountain Lion). So that you can install latest XCode (Currently Ver 4.5). It will allow you to develop fully featured iOS application with latest features as well as upload them to Apple App Store.
Hope it helps. Let me know if anything else required.

xcode 4.? + ios 6 works at lion 10.7.2?

I got a working mac os lion 10.7.2 system, and I don't want to upgrade to mountain lion so I can begin ios 6 development. Which Xcode version should I install so I can get ios 6 set up to work? My current Xcode is 4.2, how to install ios 6 sdk and simulator in it?
To do iOS 6 development you need Xcode 4.5. It should still work on Lion and can be installed through the Mac App Store. The iOS 6 SDK and Simulator will be automatically installed with it.
See also: http://www.iclarified.com/24572/apple-releases-xcode-45-featuring-sdks-for-ios-6-mountain-lion-108
If You have the developer account then download the latest version of xcode with it's .dmg file and also you find the older version of the xcode i would prefer to instal new version of the xcode 4.5 to building the IOS 6 Application.
https://developer.apple.com/downloads/index.action?name=Xcode
Here to download the versions of the xcode

iPhone with iOS 5.1 not detected with XCode 4.2

My XCode 4.2 does not detect iPhone with iOS 5.1.
I have MAC OS X 10.6.7 installed, with XCode 4.2 and iPhone with 5.1
If I build app for iOS 5.0 it works, but not 5.1.
I want to submit my app to appstore today, will it be accepted?
And How do I run app on 5.1 devices?
Please help
Following are my device config:
Developer Information:
Version: 4.2 (4C199)
Location: /Developer
Applications:
Xcode: 4.2 (828)
Instruments: 4.2 (4233)
Dashcode: 3.0.2 (336)
SDKs:
Mac OS X:
10.6: (10K549)
iPhone OS:
5.0: (9A334)
iPhone Simulator:
3.2: (7W367a)
4.0: (8A400)
4.1: (8B117)
4.2: (8C134)
4.3: (8F192)
5.0: (9A334)
According to the developer center Xcode 4.3.1 supports iOS 5.1. The last release of Xcode for OS 10.6 is Xcode 4.2 which supports iOS 5 (this is the release you have).
You need to upgrade to Mac OS 10.7 and Xcode 4.3 to get support for iOS 5.1. You can continue to use the 5.0 SDK and build against that as long as you don’t need features in iOS 5.1.
I assume that your phone will continue to not be recognized by Xcode until you upgrade your SDK/Xcode to 5.1.
You have to install latest iOS version (5.1) to your xcode to detect your ios5.1 devices. But it does not included in xcode4.2 installer, so you have to upgrade your OS to 10.7.
There is a way to install iOS sdk 5.1 to your xcode 4.2 running on Mac OS X 10.6.x.
First, you have to download latest xcode installer here (mine is xcode_4.3.1_for_lion.dmg, you may have to login to download)
Open terminal (Application->Utilities->Termial) and type these commands:
sudo cp -R /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
sudo cp -R /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/
sudo cp -R /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1\ \(9B176\) /Developer/Platforms/iPhoneOS.platform/DeviceSupport/
sudo rm -f /Developer/Platforms/iPhoneOS.platform/DeviceSupport/Latest
cd /Developer/Platforms/iPhoneOS.platform/DeviceSupport/
sudo ln -s ./5.1\ \(9B176\) ./Latest
Restart you xcode and now it works.
There is a hack the I confirmed working. For further reading check IOS 5.1 on XCode 4.2 Snow Leopard
If you upgraded your iPhone/iPad to 5.1 but do not want to upgrade your XCode and Mac OS. Here is a work around for you to be able to still install your app to your testing device:
Sign up to testflightapp.com, upload your app to testflightapp.com and then download it to your device over the air.
By this, you can postpone upgrading to Mac OS 10.7 and Xcode 4.3 for a while. You will not be able to debug/put break points on your app while testing on the device though.
This thing worked for me
First I ran the project in xcode 3.2.5 and the project ran on iOS 5.1!!!!
*Later i disconnected the device and again ran the project on xcode 4.2* on snow leopard and it started working with out nay problem.Dont know how this worked
I was having snow leopard and old xcode 3.2.5
The above suggestion by prajul does work. Just connect the 5.1 device and authenticate xcode 3.2.5 to collect the details. Then once it starts collecting your xcode4.2 will be able to run the device that has os version 5.1. I got it worked in ipad with ios 5.1.1.
These steps might only be helpful to people with access to XCode4.2 and XCode 4.3 both.
Was easy for us, as we have iMac with XCode 4.3 and a MBP with SnowLeopard - XCode 4.2
XCode 4.3, Sync provisioning profiles from Organizer-Add Device to Provisioning Portal
XCode 4.3, run the application on the device
Unplug the device with iOS 5.1 and connect to XCode 4.2

Xcode 4.2 (Snow Leopard) and iOS 5.1 [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
ios 5.1 with xcode 4.2 for iOS development
I updated my iPhone to iOS 5.1.
My operating system is Snow Leopard.
Now I need the sdk 5.1 to develop, with xcode 4.2.
Where can I download it?
Any suggest?
Solution:
Downgrade to ios5.0 or update to Lion
To get Xcode 4.2 on Snow Leopard to run code on a device running 5.1 you can do this:
If you have another Mac running Lion + XCode 4.3.1 you can copy the files from:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)
to the equivalent place on your SL Mac: probably
/Developer/Platforms/iPhoneOS.platform/DeviceSupport
and also copy version.plist from the Lion machine in the iPhoneOS.platform folder to the SL machine.
Re-start XCode on the SL machine and re-connect the devices and it seems happy enough.
[Edit: If you don't have access to a machine with Lion+4.3.1 you can get the files out of the 4.3.1 DMG which can be downloaded from Apple here: http://adcdownload.apple.com/Developer_Tools/xcode_4.3.1_for_lion/xcode_4.3.1_for_lion.dmg
then mount the DMG, Show Package Contents on the XCode icon and drill down to
/Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport to
find the files mentioned above.]
In steps:
Stop XCode on SL machine
Disconnect your iphone
Mount the Xcode 4.3.1 image (.dmg that you can download from Apple dev site)
Show package contentes of the Xcode 4.3.1
copy XCode/Xcode/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)
to <HD>/Developer/Platforms/iPhoneOS.platform/DeviceSupport
copy XCode/Xcode/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/version.plist
to <HD>/Developer/Platforms/iPhoneOS.platform/
Start Xcode
connect your iphone and it should work.
You can't.
You need to update to Mac OS 10.7 Lion in order to get the latest version of Xcode with the 5.1 SDK.
The last installable version of Xcode on Snow Leopard will be 4.2. Apple really wants developers to keep up to date on everything, whether MacOS or iOS.
If you want to stay on Snow Leopard, download the iOS 5.0.1 firmware of your device on this link : http://www.iphonefirmware.com/firmwares-download.
And do a manual restore on iTunes.
I did it today (March 8, 2012) on my iPad 2 and it works, Apple still seems to sign this iOS version.I guess not for a long time, so do it quickly.
iOS 5.1 is only avalaible in xCode 4.3.1, and its only avalaible in Lion, sorry.
YOu can try changing the version of your mac and faking it to install 4.3.1, but I cannot assure you its going to work...

Are Xcode 4 and iOS SDK 4.3 compatible with Snow Leopard?

Currently I am using Xcode 3 and iOS SDK 4.2 on Snow Leopard. I am planning to download and install Xcode 4 and iOS SDK 4.3.
I would like to know if Xcode 4 and iOS SDK 4.3 are compatible with Snow Leopard.
Yes..You will have separate .dmg available for download when you visit iOS developer center X-Code download link.
Please do note that the X-Code 4.2 will have iOS 5 simulator and library only. If you want lower version simulator and library with X-Code just goto X.Code->Prefrences-> Downloads Tab. In downloads tab you'll have two tabs:
1) Components - Here you will have option to download iOS 4.3 simulator(~600 Mb), iOS 4.0-4.1(~670 MB) Device debugging support, iOS 3.0-3.2.2(686.3 MB) Device debugging support.
2) Documentation- Yoy will have option to download iOS 5.0,XCode 4.2 Developer libaray,Mac OSX 10.7 Core Library.
Install the components which ever you need and there you go..
Hope that helps.
There's a specific version of Xcode 4.2 (and likely earlier versions) that can be used on Snow Leopard. That's the version I use on my iMac. Note that you can use 4.2 w/iOS5 SDK and still deploy on older devices (and even download the 4.3 simulator) in case you cannot find Xcode 4.
However you cannot use (download) the one from the AppStore which is Lion-specific. To find the Snow Leopard specific version log into Apple's developers portal and you'll see separate links for SL and Lion.
Yes, it's compatible. Download the XCode 4.2 .dmg from the iOS dev program portal, which includes the iOS 5.0 SDK.
http://developer.apple.com/devcenter/download.action?path=/Developer_Tools/xcode_4.2_with_ios_5_sdk/xcode_4.2_and_ios_5_sdk_for_snow_leopard.dmg
Yes, but only if you have the correct download from Apple.
There are currently 2 separate dmg downloads for the SDK and Xcode installer from the enrolled Developer web site, one for Lion and one for Snow Leopard. The download for Lion is only compatible with Lion. The download for Snow Leopard is only compatible with Snow Leopard. The installer from the App store might be for Lion only, so you may have to sign up for the developer program to get the other installer.
Apple usually removes (or hides) downloads for previous versions of the SDK, so if you didn't download the correct installer dmg (with the SDK for iOS 4.x) for the Mac OS of interest in time, you won't have a compatible installer.