"This bundle is invalid" with MonoTouch and SDK 4.3 - iphone

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.

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

ios SDK 4.3 on Xcode 4.2?

I have upgraded to Xcode 4.2 Beta with iOS SDK 5, however, it turned out that the apps built in SDK 5 are not accepted by app store, although the target is set to be 4.0.
Since sdk 4.3 seems to be downloaded with Xcode 4, but I still want to keep the newer Xcode, how can I import SDK 4.3 in Xcode 4.2?
(I tried to reinstall the Xcode 4 with SDK 4.3, but a lot of crashes and errors with no luck. I am also on iTune 10.5.)
You should be able to install Xcode 4.0 (release) in addition to Xcode 4.2 beta.
Try deleting the directories for both, and re-installing...
Since we can't really talk about 4.2 because of the NDA, try asking over at the Apple Developer Forums.
I myself run both 'next to each other'. I have the latest official xCode installed under /Developer and downloaded the latest BETA version which I installed to /Developer/iOSBETA. For updates on old apps I use the official release, archive and release to the AppStore. For new and ongoing projects I use the BETA. This way you have the best of both worlds, in my opinion.

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.

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.

Xcode SDK IOS 4.2 installation and missing iOS 4.1 in build settings

i have download Xcode SDK 4.2(xcode_3.2.5_and_ios_sdk_4.2_final.dmg) from Apple developer site and installed successfully . when open my old xcode project it shows baseSDk missing ,when i try to change project setting ,i have found and set base SDk as 4.2 it works fine
my problem is ,in Base SDk list it shows
(iOS 2.1, iOS 2.2, iOS 2.2.1, iOS 3.0, iOS 3.1, iOS 3.1.2, iOS 3.1.3, iOS 4.2)
There is no iOS 4.0 and iOS 4.1 (which i have used before 4.2). anything wrong in my installation???? Plz help me to correct my mistake
Thanks in advance
This does happen. I generally just use the latest SDK as base SDK. You support the latest version and forget abt the older versions[apple style]. This way your app can take advantage of all the latest functionality.
One thing you must remember is that the Base SDK is different from the deployment target.
base SDK is the latest SDK your project will use and support.
deployment target is found in target->getInfo; this is the minimum version that your app will support.
4.2 is a free upgrade and most of them would upgrade, so i'd set the deployment target as 4.0 or at the least 3.0. who uses 2.x anymore?
if you really want 4.0 and 4.1 as well, you have to install the old 4.1 GM as a parallel Xcode IDE or follow this link and get support for all the versions in a single XCode IDE.
http://chris-fletcher.com/2010/08/28/howto-install-iphone-sdk-2-0-3-1-for-xcode-3-2/
I'd suggest building using 4.2 but follow the link and install all the simulator SDKs for old versions so that you can test the app on those versions of the simulator.
Nothing went wrong here. That's how Apple forces the developers to always use the latest SDK to develop.