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

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.

Related

Xcode 3 wont allow me to Install Xcode toolset

So I attempted at giving Xcode 4 a swing, after uninstalled XCode 3, and it failed me.With all the shortcuts out of place i didn't feel at home. So i uninstalled XCode 4, and began installing Xcode 3 once again. but this time. I am no longer allowed to download the Xcode Toolset.!
http://tinypic.com/r/29z242d/7
At first i assumed that the Xcode toolset would someone works it way into the instillation and it would all work out. but after installing this more that 3x on my computer I cannot seem to FIND XCODE at ALL! nor can i find iOS simulator or any other software. What do i have to do inorder to fix this?
I think this is happening because I inappropriately uninstalled Xcode 3 the first time, I used an application called App Zapper rather than running the -sudeo command...
You can install Xcode 3 on Lion using the following method:
Mount the Xcode 3.2.6 DMG
Open Terminal
Enter the commands:
export COMMAND_LINE_INSTALL=1
open "/Volumes/Xcode and iOS SDK/Xcode and iOS SDK.mpkg"
Use at your own risk as Xcode 3 is not supported by Apple on OSX Lion.
If you are installing alongside Xcode 4, make sure to install into a different directory (create this in Finder first), and then you can untick all the boxes apart from the Essentials and it'll run just fine.
Source: http://anatomicwax.tumblr.com/post/8064949186/installing-xcode-3-2-6-on-lion-redux
Just a heads-up: on Mountain Lion and Mavericks (and quite possibly on other versions as well, but I only "tested" this two...) this causes a kernel panic at startup, so I would advise against installing Xcode 3 on them.
If you already did that, and need some help, here and here are some information.

Installing IOS sdk in xcode on lion

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.

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.

iPhone Simulator locks up immediately upon Build / Run

I'm having a problem getting my MacBook set up to build iPhone apps in xCode. The iPhone Simulator locks up and shows the "spinning circle" busy icon.
I've tried everything I can think of, including
resetting the simulator
tried all of the different hardware options
tried the two debug build choices in xCode.
uninstalling the SDK and completely reinstalling
I downloaded the SDK today - "xcode_3.2.2_and_iphone_sdk_3.2_final"
I'm just upgraded from Leopard to Snow Leopard (10.6.3). I've run all the software updates. xCode version says 3.2.2 (1650)
If it matters, my MacBook is 3-4 years old, 13 inch, dual 2.16 ghz intel cores, 2 gig RAM. I've never had a single problem with it.
I would be so grateful if anyone can help me
thanks so much,
if you have access to the 4.0 one, then try that, if not, then I would install a previous sdk version in a different folder (or rename your current developer folder or delete it, then install the previous version under /Developer) and run that one instead
I just finished installing the 4.0 SDK. I made a new windows-based iPhone app (HelloWorld) and tried a build/run (Simulator-4.0 | Debug)
Same exact behavior... The simulator appears and the rainbow spinning progress wheel just keeps going and going
I took a sample from the process ("not responding...") but it's pretty big and I don't see any way to attach it to this question.
thanks again

xcode clean failed

Both my iPhone projects are sometimes giving a "build failed" error with no explanation of what the error is, and then a "clean failed" when I try to do a clean. I tty emptying the xcode cache but that doesn't seen to help. What normally clears it is re-starting my Mac. However, that has just failed to work.
Has anybody else experienced this? I'm using the latest version of the SDK on Snow leopard.
(My Mac has also completely frozen twice today to the extent that only turning it off at the mains seemed to revive it so not a good day).
Make sure you have enough disk space on your mac.
Then go and delete your build directory in the project. Close xcode, open it back up. Try to build.
Hope that works, its just a guess.
Your Mac froze? Twice? On the Same Day? Seems your Mac is in serious disorder, I would look for this first. Maybe the build problems are just another symptom of a bigger issue.
Also, apart from checking out Xcode's logs in Console.app and posting anything interesting, did you install Xcode 3.2 from the Snow Leopard DVD before installing the iPhone 3.1.2 SDK for Snow Leopard?
If you upgrade to Snow Leopard (w/ Xcode 3.1 installed), and then immediately install the latest iPhone SDK (before installing Xcode 3.2 from the Snow Leopard disc), you may experience grave problems like this one. I know I did.
It sounds like you have disk/file problems. Check the permissions on the files and directories in the projects build folder. If you've lost permission for one of the files, the clean will fail.