Xcode lost all frameworks after update to Snow Leopard: How to fix that? - iphone

For some reason after updating to Snow Leopard, my Xcode 3.2 is stupid like a toast. I had all iPhone SDK's, tons of Gigabytes of data. All is gone to deep toilet. And now I start downloading all that stuff again. Is there maybe some little hope that all those SDK's are still on my mac, somewhere? Where? Or must I really re-download and re-install all this stuff?

Get the 3.1 final sdk, it has the 2.2.1 sdk in it. On disk it's usual location is: /Dwveloper/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.2.1.sdk
Also included is 3.0 and 3.1.

Chances are it's gone, just reinstall and it should be fine and dandy like sour candy

iPhone SDK 2.2.0 and iPhoneSimulator SDK 2.2.1 are gone forever!

Related

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.

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.

iOS 4.3.1 on the phone - does it work with XCode 3.x ? or only 4.0.1?

I upgraded my iPhone to the latest OS (4.3.1) yesterday, and noticed there is no corresponding XCode 3.x release, only a 4.x release (4.0.1).
Since upgrading I am getting warnings when I try to install apps on the device using my development certificates (Application failed codesign verification).
Not sure if the OS upgrade on the Phone and the error message are related, so I'm just asking the question if anyone else had this happening?
And are we supposed to use XCode 4.0.1 when we develop for the 4.3.1 iOS release or can we use a 3.x version as well?
The Xcode version number isn't important, but the SDK version number is. You can get the latest SDK with either Xcode 3.2.6 or Xcode 4.0.1 at the time that I'm writing this.
You can still download the XCode 3.2.6, it goes with the SDK 4.3, and it is free to download.
You can try with XCode 4 as well, but you have to either to have an iPhone or Mac Developer account (99$/year) or you need to buy it from the AppStore
It still works, however of you first attach your iPhone to Xcode it will ask you to download the debugging symbols off the phone. Answer Yes to this question and you are ready to go.
However there is one more thing: usually Apple makes restrictions about the SDK you should use when submitting apps to the store. So if you want to submit an app it could be that you have to use the most recent SDK.
Deploying an application directly from XCode 3.2.6 on a device where iOS 4.3.1 has just been installed won't work.
First, you need to open XCode's Organizer window and ask to collect information from the device. Then it will work fine.

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.

How to develop for iphone 3.1.3 without re-downloading the whole SDK

I have downloaded the latest iphone SDK which support developing for the ipad 3.2 and iphone 3.1.2
However 2 days ago the firmware 3.1.3 has been released by apple so my question is how to make my SDK to support this new firmware without re-downloading the whole SDK which is more than 2 gigs?
Thanks
You can install them to different paths. I recommend installing the 3.1.3 SDK to /Developer and the 3.2 SDK to /Developer (Prerelease). Then, launch whichever version of Xcode you want to use.
Maybe you can simply symlink the 3.1.2 SDK to 3.1.3? I think that was advised in the past when a minor update came out.
Unfortunately, it is the additional tools, not the SDK that take up a large chunk of the 2.5GB+ download size. The official response is there are no SDK only downloads. So you're kind of stuck with the download.
If you're looking to try make 2 SDKs available to you at once, well that's a different question.