upgrade version of an application - iphone

i want to know what things need to be do in developing the upgrade version of an application (like bundle version) so that if a user download my upgrade version of my application then it update the old version.
i have develop the upgrade version of my app in old version and just changed its version no. I need that data of my old app remains there.

All data in the document directory will not be touch when upgrading. All files in the bundle will be copies from the new version.

Related

direct update in MFP verion 6.3 is not working

I'm getting the below error, while deploying wlapp of Maximo Anywhere in development server.
Direct update is not working though the wlapp has been deployed.
FWLSE3210W: Environment: iphone of application sampleApp version 7.5.2.0 has been deployed with a different version of the native MobileFirst SDK. Direct updates will no longer be available for existing clients with other versions of the MobileFirst SDK. To continue to use direct updates, increment the app version, publish it to the public app store, deploy to the server, and (optionally) block/notify older versions of the app to enforce customers to upgrade to the new version from the app store.
Any ideas?
Need to manually stop auto upgrading the MFP if you are not using latest SDK. upgradeMFP will upgrade the mobile first SDK . workaround was we created new war and deployed new wlapp, ipa to made direct update to work

App store download previous version of app instead of latest

I already have an app on app store with version 1.0.0.
Now I submitted the new version of app 2.0.0. This new version is also approved by apple.
It has been more than 5 days since my app is approved and in state 'Ready for sale'.
Now when I download the app from app store on my iphone device it still downloads the previous version (1.0.0) and asks me to update to latest version (2.0.0).
Why app store is not downloading the latest version (2.0.0) of app directly on my device?
My device previously had the app with version 1.0.0 installed from app store but I deleted it and then installed the fresh app from app store.
When I download the same app on my friend's iphone it downloads the latest version (2.0.0). This device never had any version of the app installed.
I had the same problem and have now realised that it is related to iCloud. If you have previously downloaded your app on any device then when you download it on a new device, it will download the same version as you previously downloaded. You then get the option to update to the latest version.
Confused me to start with!
Your iPhone could be outdated / not meeting your defined requirements of the application itself. For example, if you have an iPhone 3G running IOS 6, you can not run an app that only accepts iOS7. Take a look in your xCode and inspect the properties of your application.

Preserving the previous SDK when installing a new iOS SDK

Each time I install a new version of the SDK I lose the previous one. I want to use the new SDK, but I need to build using the oldest one.
Is there any method to keep the installed SDk when installing a new one?
The recommended approach is to set the base SDK to the latest one but change the deployment target to the version you want to support.
Officially, you’ll have to follow #Govind’s advice on installing each Xcode version to a separate path. Unofficially, you can extract the SDK from the installer using a tool like Pacifist and keep it around. This is, of course, unsupported and undocumented.
You can have multiple versions simultaneously.
Just give a different path while installing.
But I had problems while having both versions together.
The main problem I noticed was in the code sense of the latest version.

How can I download older version of iPhone SDK?

I've just installed iPhone SDK 4.0 and it appears that the previous version of SDK has vanished from my system.
I was looking for any links to download the previous version of iPhone SDK to download, but I cannot find anything.
Any ideas where I could download it?
Any new submission or update to appstore must be on IOS 4. The older IPhone sdk's are no more available for download at http://developer.apple.com/. If you think that you still need old version (for example: to run some old example), then try searching for xcode in the torrent sites. You can find there almost any version (at own risk!)

iTunes Connect rejects my binary because I used a pre-release version of the SDK, what should I do?

I downloaded a pre-release version of the iPhone SDK and tried to update one of my existing apps using a binary I built with it. Obviously you are not supposed to do this but I had forgotten about the warning when I installed the pre-release SDK. Anyway - I have two questions:
Can I simply set the base SDK to an earlier version in the build settings and get around this problem?
If not, then what should I do?
You need to download the release version of Xcode with the release iPhone SDK. You can't use the SDK downloaded from the iPad beta version for any release products.
Just go to http://developer.apple.com/iphone/index.action and click on iPhone SDK 3.1 and download it. Then build your app bundle with that and submit it to Apple.
Before you download a pre-release version of the SDK from developer.apple.com, there are several prominent warnings, one of which clearly states that pre-release versions of Xcode / iPhone SDK can NOT be used to build production binaries. So the answer to 1. is an emphatic no.
As far as I can tell, the only option to be able to build production binaries that iTunes Connect will accept is to delete the pre-release version of Xcode / iPhone SDK and re-install the older stable version.
If you upgraded using the beta download (as opposed to installing on a fresh box that has never seen SDK or Xcode), set the base SDK to a released version of the OS. Compile a Distribution build, submit to the app store. The old SDK is still there, so that will get used. All of the prominent warnings I have seen state the the SDK cannot be used, without mention of Xcode.
Before anyone scoffs, note that I submitted an app on March 13 using the version of Xcode (3.2.2) included in Beta 4, setting Base SDK to 3.1. It was approved on the 15th. I've also done this during the 3.0 beta for 2.x apps.
EDIT: on the other hand, acceptance apparently isn't always guaranteed (note that this person had also submitted an app that did get accepted): The binary you uploaded was invalid. A pre-release beta version of the SDK was used to build the application