MKStoreKit and iOS 5 - ios5

I've been using MKStoreKit to enable in-app purchases in my apps. The latest binary I submitted using this method was rejected because nothing happens when the user clicks on the purchase button when the reviewer tested it on iOS 5. Is this an iOS 5 issues, or has something else gone wonky? It works fine when I test it on iOS 4.
My iPod is too old to upgrade to iOS 5 and I've started saving up to buy a new one, but I'd like to get this app on the store before then. Also, it means that several of my other apps will be broken and I would like to fix those as well.

There is nothing special in MKStoreKit that could probably break on iOS 5. I've used it in many apps running iOS 4 and 5 without any issues. Can you test it on a real device and post what happens?

Related

Xcode 9, iOS 11 & WatchOS 4 Crashes Apple Watch App

I have 2 Apps in the AppStore since iOS 10 and both apps have iPad, iMessage Stickers and Apple Watch apps. They have been working great up until the release of all the new Apple software, Xcode 9, iOS 11 & WatchOS 4.
The apps did not need anything changed for Swift 4 but my first error occurred when I try and submit my archived apps to the AppStore. I get error messages referencing missing app icons which isn’t the case. I found a workaround here on stack overflow by editing the archived files Plist and then submit to AppStore and this works but is inconvenient and obviously I shouldn’t have to do this.
My next problem is now when I go to use the apps on my Apple Watch they crash every time on startup. I don’t have any crashes when it’s run on the simulator so I’m thinking the only thing I’ve modified since testing is the Plist of the archive.
Here is the link to the fix I was using to allow me to successfully upload my apps.
AppStore Upload Temporary Fix

Solving identifierForVendor/uniqueIdentifier for apps targeted at pre-iOS6

We have an app targeting iOS 5 that uses UIDevice.uniqueIdentifier to get an ID for the device.
On iOS 6 and later we're replacing this with UIDevice.identifierForVendor.
When we submitted however, the app got rejected for using UIDevice.uniqueIdentifier - which we need on iOS 5 since it doesn't support UIDevice.identifierForVendor.
Does this simply mean we can no longer support iOS 5 - since we can no longer submit an app that has a way to get a device ID?

is Store Kit framework working on i OS 6 Simulator?

I implemented In App Purchase in my application. It is working fine on iPhone 5.1.
I know Store Kit is not working on iPhone Simulator 5.1.
But on i OS 6 simulator, i can connect to App store and i get alert for confirmation In App Purchase. But the transaction is failed with error on iOS 6 Simulator.
Any one please explain reason for this.
Simulator
For this release, iOS Simulator does not support testing In-App Purchase. Please use a device to test your apps that use this feature.
iOS 6.0 Release Notes
On Xcode 4.5.2 and iOS 5 and iOS 6 it works fine.
I try in simulators for iPhone 5 and 4, and on all iPads too.
There is only a little delay in the simulator, but the transaction is fully functionally
I see that is very important the configuration in iTunesConnect.
In my opinion is better to check the ItunesConnect config before change the code.
the docs say that IAP can be fully tested in the sim, except for hosted content:

Unable to test iOS in-app purchase on devices, only simulator

When I retrieve details for in-app purchases, they are displayed fine on iPhone simulator but simulator doesn't allow me to complete a test purchase. I then try it from an iOS device (tested with 4.x and 5.x) and it doesn't display any data for the in-app purchase
I know the code is fine because the simulator works fine (until purchase) and when app is submitted and becomes approved, but this in turn makes in-app test very tricky to me...
How can I test in-app purchases on my device?
First thing to check and this is a classic is to see if you are logged in with another account that is not the test user. Check the device's settings.
Another thing is this and I had this problem 3 times before with 3 different devices: corrupted file system. The only solution that always works for me is to reset the device to factory firmware. This is done in iTunes. It will wipe your device and reinstall the firmware with the current iOS version. Prepare yourself for at least 50 minutes of pleasure and rage while you wait everything being wiped and reinstallad.
Don't forget to backup first and don't blame me if things get wrong... 😃

Can I still develop for the current iOS 4 with iOS 5 beta installed?

I would like to install the iOS Beta 3 on my iPhone 4 but I also have a couple of updates I'm working on that I want to submit in the coming weeks. So I was wondering can I still submit these app updates if I've tested them using iOS 5 Beta 3 on my device?
No, you need to download the beta of Xcode that works with iOS 5 in order to test them on your device, and this version of Xcode is not enabled for submitting apps to the App Store.
Well first of all you should never install a beta on a device that isn't dedicated to testing as it will be insanely buggy.
Other than that you should be fine providing you...
1) Install the iOS 5 SDK in a separate directory because the beta SDK can't submit apps to the App Store.
2) Don't use any iOS 5 specific APIs in your app because this will cause issues on any other OS version.