upgrading Xcode 4.0.1 to 4.1 giving compilation error for iPhone sdk - iphone

I have new changed the Snow leopard with Lion OS x and Xcode 4.0.1 with 4.1. The iPhone code was working fine on Xcode 4.0.1. Now in Xcode 4.1 it giving errors mostly related to LLVM GCC 4.2. I have tried with changing the compiler's different options available. Can body know the issue and help me out of this.

I think you want to change the compiler version on the target and double click it then you have to change it from there.Try it,i may solve your problem.
http://useyourloaf.com/blog/2011/3/21/compiler-options-in-xcode-gcc-or-llvm.html
check this url

I know that when I upgraded to Lion and Xcode 4.1, the update via App Store removed iOS SDK 4.0, 4.1 and 4.2, leaving only 4.3.
This gave me compile errors because my base SDK was 4.0, it required the 4.0 SDK files to compile, I was lucky enough to have everything backed up and I copied my SDKs back over to Lion into
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs
This was the only issue I had with the upgrade, hope this helps.

Related

xCode 4.2.3 can not compile to iOS 5.1.1 (9B208) or iOS 5.1.1 (9B206)

Yesterday after about a whole nights tinkering i manage to compile for 5.1.1
That was after i downgraded from iOS 5.1.1 (9B208) to iOS 5.1.1 (9B206) as a last desperate attempt.
But today afte a restart im back to square one.
When i go to the organizer and select devices from the top menu i get the following text as before:
The version of iOS on “xs iPhone” does not match any of the versions
of iOS supported for development with this installation of the iOS
SDK. Please restore the device to a version of the OS listed below, or
update to the latest version of the iOS SDK; which is available here.
OS Installed on xs iPhone
5.1.1 (9B206)
Xcode Supported iOS Versions Latest
5.0 (9A334)
4.3
4.2
I feel completely dumbfounded that it has to be so vastly complicated getting xcode and iOS go together.
But lets say i clean out xcode and reinstall my iphone.
Is there a safe way to compile for the latest IOS "currently 5.1.1"?
As others have pointed out, you need to install the latest version of Xcode, which is 4.3.2.
We recently had this problem after the latest iOS update and upgrading Xcode solved it just fine.
I had similar problems until I upgraded my Xcode to the latest version. Upgrading should fix your issue.
I had a similar problem and I can not upgrade to Xcode 4.3.x because I am still running Snow Leopard and 4.2 still is the latest Xcode version. I solved the issue after following the steps in this answer
https://stackoverflow.com/a/9621226/467813

The iPhone app does not run in my old xcode

i made project in Xcode 4.1 in lion OS and when i run the same project in snow leopard 10.6.5 xcode version 3.2.4 i get lot's of error. what's the problem? is it possible to do any changes in project when i run in xcode 3.2?
In xcode 4, Select your project and look for Project format on the right hand side. Try setting it to xcode 3.2 compatible.

Errors running xcode 3.2.2 on Lion

Just installed xcode 3.2.2 (on Lion) so I can test my app for the iOS 3.0 and 3.2
Created a simple test app based on View application template.
Just trying to build it gives me the following error.
I doubt you can use XCode 3 with Lion, even I was using XCode 4 and had to update to 4.1 to run on Lion.
However if using XCode 3 is mandatory for you I found some post explaining how to do so but it seemed tricky. In his original post he clearly mentions the same problem as you're having.
You can (must? should?) use the latest version Xcode and still target the older iOS. I see that you're trying to do this presumably to use the simulator, but I'd strongly recommend testing on the actual devices with the older versions of iOS.

"This bundle is invalid" with MonoTouch and SDK 4.3

I'm running into a problem submitting my application through the Application Loader. I'm receiving the message "This bundle is invalid. Apple is not currently accepting applications built with this version of the SDK."
I've installed Xcode 4.0.1 w/SDK 4.3 ("4A1006", March 24), and I've reinstalled both MonoDevelop and MonoTouch. I've also made sure my build/bundle settings are using SDK 4.3, and I've tried each of the min versions of 4.0, 4.1, 4.2, and 4.3.
Suggestions?
Update: I've uninstalled Xcode 4 (rebooted), installed latest Xcode 3 same w/SDK (rebooted), and reinstalled MonoDevelop & MonoTouch. Still no luck unfortunately. I tried with and without manually specifying DTXcode:0400.
I've been reinstalling MonoTouch by re-running the installer. Is there a way to do a clean uninstall of MT and could that help in this case?
Apple changed the keys required in the application manifest in iOS SDK 4.3.1. We've released a new MonoDevelop build to track this.
Xcode 4.0.1 was released last week with the iOS 4.3.1 SDK, you need to install that.
One thought: Double-check that you're building/signing for release, and not e.g. for ad-hoc distribution.
i had this problem for one week and i just solve it today , it seems that SDK 4.3 has a problem with the monotouch anyway
the one works with me i uninstall the SDK and install SDK 4.2 with Xcode 3.2.5 and Remove monorouch 3.2.6 and install 3.2.3 . and it will work.

How to fix "Apple is not currently accepting applications built with this version of the SDK." error for distributing an iOS SDK 4.2 app

This is very similar to a couple of other questions on stackoverflow, but they all seem to be from last year and referring to lower version numbers.
I have:
xcode version 3.2.5
A distribution build with Base SDK = Latest iOS (currently set to iOS 4.2), iOS Deployment Target = iOS 3.2
I've tried the following without much luck:
Deployed to a device (not the simulator)
Setting the iOS Deployment target to 3.0, 3.2, 4.0, 4.1 and 4.2
Cleaned my xcode cache
Deployed through Application Loader and Organizer
Did a clean build
Reinstalled xcode <-- turns out this was the problem - need to check that it's the final version (ie, xcode_3.2.5_and_ios_sdk_4.2_final.dmg) and not the beta version
Tried finding a version of the SDK < 4.2 to install, but apple seems to remove all old versions from their developer site
I'm sure iOS 4.2 should be out of beta now, so I don't think this is the issue either.
Any other ideas? Is there any way of getting more information about the versions of the SDK that apple want?
Very frustrating indeed!
I had this problem yesterday and solved it by redownloading XCode from the developer center and reinstalling it. For some reason, the dmg file on my disk was from 19th of November (no, it was not a beta), and the release date of the SDK is 22nd on the iOS Dev center. Check if your local copy was downloaded before that. It just automagically worked after a reinstall. I built the binaries against SDK 4.2 and set the deployment target to 3.1 if that helps.
I am not sure at the moment, did apple rerelease SDK 4.2 with XCode 3.2.5 at some point without changing the version? Anyway, hope that helps, it worked for me.