Installing IOS sdk in xcode on lion - iphone

I have installed lion and afterwards I installed Xcode. But I have no IOS SDK.
If I look inside the directory: /Developer/SDKs/ I see a sdk for mac os x 10.6 and for
10.7 but no IOS SDK.
When I run my projects or I create a new blank project that uses this sdk I get the following build error:
ibtoold(5057,0x7fff73646960) malloc
auto_zone_set_associative_ref: object should point to a GC block or a global address, otherwise associations will leak. Break on auto_zone_association_error() to debug.
Any Ideas? I've tried re-installing it twice.
I am starting to think there is some bug using lion and Xcode together, I am going to ask this question on the apple developer forum. If I get an answer there, ill post it here.

Hi try doing a full clean un-install.
sudo /Developer/Library/uninstall-devtools --mode=all
Then make sure you download the LION version of XCode 4, I believe it's a free version now.
Good Luck.

The iOS SDK includes Xcode, but Xcode doesn't necessarily includethe iOS SDK. You should download and install the iOS SDK if that's what you want.

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)

No iOs templates in XCode 4.2

I installed Lion, then XCode 4.2 from the app store.
As I understand, the iOs SDK should be install with this release.
My problem is, I only get the MacOs templates, no iOs templates.
What am I doing wrong? (It's taking Apple a few weeks now to process my company enrollment and I need to start coding so long).
While installing you need to check that you want to install iOS 5.X SDK, it doesn't install automatically. Re-run the "Install Xcode" application which AppStore downloaded and check to install iOS SDK
Be sure that /Developer/Platforms/iPhoneOS.platform exists. If so, then iOS files were installed.
The iOS templates are contained in /Developer/Platforms/iPhoneOS.platform/Developer/Library/XCode/Templates
If they are there, but are not showing up in XCode, you can try repairing disk permissions with /Applications/Utilities/"Disk Utility".
Otherwise, you may have to rename the /Developer folder and re-install.

Does upgrading to OSX Lion have ANY caveats for development using Xcode?

Simple question, I want to know if anyone has had any weird or annoying problems with developing iphone apps in Xcode after upgrading to Lion. I remember having issues when Snow Leopard first launched. Are there any early adopter penalties here?
A big one for me: no more PowerPC emulation via Rosetta in 10.7 - important to think about if you need to do testing for legacy PowerPC code.
Fortunately you can still use Xcode 3.2.6 though if you don't want or need to use Xcode 4.1 - if Xcode 3.2.6 is installed prior to upgrading t Lion then it should still work, alternatively there are instructions available for installed Xcode 3.2.6 when Lion is already installed.
I just had the problem, that I had to upgrade to Xcode 4.1 because lower versions of Xcode don't work on Lion. ;-)
You have to download the latest Xcode 4.1 to do development on Lion. 4.0.x won't work.
You also have to learn how to scroll down pages like a flight simulator (you can turn it off). If you got used to the neat gestures in Snow Leopard, then get ready to completely start over again with new ones (no going back on Lion). Three finger web page navigation doesn't work, 4 finger application switching doesn't work, and a new "explosion" gesture is used for desktop and mission control.
The only thing i have noticed so far is that if you run Xcode in fullscreen mode, simulator can't be on same screen... And yes, you have to download new Xcode 4.1 from appstore... Everything else is pretty much amazing :-D
When you try to install Xcode 3.2.6 on Lion, Xcode toolset is greyed out and marked as skip. There is a simpler way to install it then those once described above. Here is the steps:
Mount the developer tools dmg
Open Terminal and run these two commands:
export COMMAND_LINE_INSTALL=1
open "/Volumes/Xcode and iOS SDK/Xcode and iOS SDK.mpkg"
Enjoy.
Be prepared for the new Xcode to remove the /Developer directory as a part of its cleanup process. This will wipe out QT in the process since it's installed there as well.
So if you want to keep QT intact you should skip Xcode's cleanup step or install a fresh QT afterwards.

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.

The version of iPhone OS on “” does not match any of the versions of iPhone OS supported for development with this copy of Xcode

I have followed Apples tutorial and upgraded my iphone to 3.0. But i get this error:
OS Installed on
3.0 (7A341)
Xcode Supported iPhone OS Versions
3.0 (7A312g)
2.2.1
And when i try to run an application on my iphone xcode states:
No provisioned iPhone OS device is connected.
What have I missed?
Stumbled across this question because I've had the same problem with 3.0.1. Apple has an advisory (PDF) about how to get XCode to stop worrying and love the 3.0.1. It boils down to running a command in Terminal:
ln -s /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.0\ \(7A341\) /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.0.1
It looks like you need to upgrade xcode to the newest version of the SDK as well as your iPhone / iPod Touch to the newest version of the SDK. It looks like your XCode is from beta 5 where your iPhone is GM.
Both XCode and the iPhone OS need to be the most recent version to install apps. In addition, you will need to reenable the iPhone for development after every software upgrade in the XCode device manager.
Look in the organizer window if the phone is in orange state ..then just restart the phone and see.
How To:
Add an iOS SDK from a downloaded Xcode dmg:
Download the Xcode version dmg containing the iOS SDK you need
Make sure Xcode is not running
Double click the downloaded Xcode dmg, right click the Xcode.app icon, choose "Show Package Content"
Copy Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/ to /Developer/Platforms/iPhoneOS.platform/Developer/SDKs (on you local machine)
Copy Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/ to /Developer/Platforms/iPhoneSimulator.platform/Developer (on you local machine)
Copy Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/ to /Developer/Platforms/iPhoneOS.platform/DeviceSupport (on you local machine)
Right click Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/, choose "Make Alias", rename the alias to "Latest"
Start Xcode
I have solved this as Pluckyglen said, but will add that this is a way to cheat XCode about the version of the Device.
Creating a unix Symbolic link:
ln -s <´Xcode version´> <´Device Version´>
makes Xcode think that the device version is a supported version, cause we are making the dev version just a link to one of the supported versions.
At least this is what I understood :P