How to run xcode project in xcode 3.1 developed in xcode 4.3? - iphone

I have installed Mac OS X Snow Leopard 10.6.2 on Windows 7 PC with the help of Virtual box. On that I have installed Xcode 3.1 as it was the compatible version of Xcode on Mac OS X 10.6.2.
While running Xcode project in Xcode 3.1 developed in Xcode 4.3 I get lots of errors.
Is there any way where I can make the codes compatible on xcode 3.1 or at least upgrade xcode 3.1 to xcode 4.3 (nearby) which will be supported by Mac OS X 10.6.2

If you sign in with your developer account at http://developer.apple.com/ios, you'll see that there's a link to "Xcode 4.2 for Snow Leopard". That's what you want. Xcode 3.1 is WAY out of date, and does not include any of the current SDKs.

Its been a while since you posted this so I hope you or others finds this useful. I had the same issue with Mac OS X Snow Leopard running on VirtualBox and not being able to run a later version of Xcode than 3.1. My understanding is that running Mac OS as a VM does not not allow you to run the standard built-in upgrade utility to upgrade the OS.
The resolution that worked for me was documented here How to install Snow Leopard Hackintosh in Virtualbox.
The following method is hacky and has not been thoroughly tested in any way. Use these instructions at your OWN RISK.
First you will upgrade Mac OS Snow Leopard then you will install Xcode 4.2 The steps you'll need are the following:
Take a snapshot of your Mac OS VM in case something goes arigh
Search google for "10.6.7 combo update" (replacing version number with the one you need)
Download the combo update from apple's official site and run
Complete the install (DO NOT REBOOT)
Google "10.6.7 legacy kernel" and download replacing version number with same version number as the combo update (the author of the article recommends finding kernel by nawcom)
Install legacy kernel
Reboot Mac OS and your upgrade should be complete
(Note: when I rebooted the spinning wheel that appears during bootup stopped after a min or two. I had to force restart the VM with VirtualBox and it appeared to have updated properly)
Once in Snow Leopard click on the time/date in upper right hand corner and click "Date & Time Preferences"
Uncheck "Set date and time automatically"
Change the date to 01/01/2012 (this is because of an expired cert check that is checked during the install)
Google "xcode_4.2_and_ios_5_sdk_for_s­now_leopard.dmg", download, and install it
Once installed you should now have a working copy of Xcode 4.2.

Related

Xcode 4.6 running OS 10.7.5

The App Store says I have an update available: XCode 4.6. I'm still running OS X 10.7.5. Will XCode 4.6 run on this OS? I looked at the App Store and Mac Developer site and couldn't find what OS version was required for 4.6.Kindly give me link for Xcode 4.6 running OS 10.7.5. Many thanks.
It will work without any issue. Maybe this page about Xcode Release Notes will be useful for you
When the Mac App Store shows the Application it should run on your system because as on iOS you can decide as developer which OS versions you support. Apple decided to show you the update - so they decided to allow 10.7.5. There are also no information about discontinuing support for 10.7.5 in Xcode 4.6 release notes.
Yes, I'm running 4.6 on 10.7.5 here.
You can go right ahead and download it from the app store.
If you're concerned about it screwing up your existing work, you could rename your existing install. (to ".old" or something)

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

XCode 4 and XCode 3.2.6 side-by-side

I need to build one iOS app and one Mac OS app on the same machine. Mac OS app needs to run on 10.5, and even though Apple claims you can build with the 10.6 SDK and run on 10.5 by setting the right target value, it's not true. Simple things, like the name/version of libssl, are different on 10.5 and 10.6 which makes this impossible.
Anyway, so I'm about to try and install XCode 3.2.6 on the same machine as I have XCode 4 on - any tips/gotchas/guides?
Thanks!
That should work fine, however it's best to install XCode4 last. So if you install XCode3 you'll want to re-install XCode4 as well after (to keep the system tools at the latest version).
I'd also recommend XCode4 go into /Developer, and XCode3 goes into a folder with some other name, as it's had more time to be hammered out to work installed in different locations.

XCode 3.2 version: now I can't compile

I have this IPhone app underway that was working fine, then I installed OS 10.6 and the shiny new XCode.
It's not compiling, instead coming up with the single error,
"There is no SDK with the name or path 'iphoneos3.0'"
I can't find such a file or folder on my hard drive.
What's broke, and how do I fix it?
Thanks for any assistance.
That's because iphoneos3.0 old and you probably have iphoneos3.1.3 or ios4. You need to go to Project -> Edit Project Settings -> General and change the Base SDK to iphone device 3.0 or 4.0. That fixed it for me.
Make sure your target is setup correctly and you select the right active config.
If you have done that then this might help you out:
You don't say which version of the SDK
you installed. If you installed SDK
version 3.2 for snow leopard, then you
also need to download and install
iPhone OS 3.1 SDK add-on installer for
Xcode 3.2 on Snow Leopard. The version
3.2 provided on the snow leopard CD or download does not include the iPhone
files that you need.
http://forums.oreilly.com/content/Inside-iPhone/5024/Help-With-Samble/
This is a good tutorial for that process: Reconfiguring Xcode projects after iPhone SDK update.
You need to download (or install) the new Snow Leopard specific Xcode. Snow Leopard should also come with Xcode on its installation disc.
Once you have done that, you have to go back to the iPhone download center and download/install the Snow Leopard specific iPhone development toolset for Xcode.

Xcode's shared workgroup 'Unreachable' after Snow Leopard/Xcode upgrade

After upgrading to OS X 10.6 (Snow Leopard) and iPhone SDK 3.1 (with Xcode 3.2), Xcode's shared workgroup builds (distributed) can't seem to find or access other computers in our office.
Distributed builds worked perfectly in OS X 10.5 with iPhone SDK 3.0.
All the computers that have upgraded are now listed with a status of Unreachable. Even my own computer, artanis, is listed as Unreachable!
I've already tried all of the suggestions listed in Troubleshooting Distributed Network Builds. And none of us have the OS X firewall enabled.
Any suggestions?
Here's a screenshot:
Xcode Preferences Screenshot http://img170.imageshack.us/img170/3972/screenshot20090917at104.png
The solution seems to be to run Xcode in "32-bit" mode - you set this in the "Get Info" dialog in the Finder.
You must re-install Xcode using the version on the Snow Leopard DVD. The iPhone SDK must be re-installed afterwards.
Edit: I just noticed that Apple started distributing Xcode 3.2 with the iPhone 3.1 SDK. I would recommend you to attempt a full uninstall of the developer tools, as described in the SDK release notes (see developer.apple.com), and then to re-install it. You should also check that each computer have a unique name set in system preferences>>sharing. As a last resort, I'd check that Snow Leopard was booted in 32-bit mode (it does by default), and (just for the test) try to boot Snow Leopard in 64-bit mode (hold the 6 and 4 keys while booting).
Edit 2: Check this thread, it seems related. Maybe you should try to enable Xgrid in sharing preferences?
I had a problem installing it now it works since it needed for the xcode and ipphone sdk the firewall disabled to install, I think that fix my problem where it did not want to install the files strange bug I guess, with firewall on , the installer fails to install, and I am still in 64bit mode