To solve (on Mac OS X):
- Rename myapp.ipa to myapp.zip
- Unzip
- Go to the created "Payload" folder
- Right click myapp.app and click "Show package content"
- Open info.plist in a text editor
Change the value string of MinimumOSVersion to (at least this is what I put in, and it works)
<key>MinimumOSVersion</key>
<string>6.0</string>
Save the file and exit
- Right click the Payload folder and click "Compress 'Payload'"
- Rename back Payload.zip to myapp.ipa (where myapp is the original name of your ipa)
You have now solved this problem, however you may get an error when uploading, that the code signing is not messed up. I could upload OK but then when I went to the Prelaunch section of itunesconnect, it said "Invalid Binary" after 15 minutes.
In this case, also complete the following steps:
Create a file called Entitlements.plist in the same folder as your ipa, with the following content:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>application-identifier</key>
<string>XXXXXXXX.com.my.app</string>
<key>keychain-access-groups</key>
<array>
<string>XXXXXXXX.com.my.app</string>
</array>
</dict>
</plist>
Where XXXXXXXX is your team(?) code in your Distribution Certificate KeyChain Access, and com.my.app is your app's app ID.
Then run the following code in the terminal
/usr/bin/codesign -f -s "iPhone Distribution: MyName Surname (XXXXXXXX)" "--resource-rules=./Payload/MyApp.app/ResourceRules.plist" --entitlements "Entitlements.plist" "./Payload/MyApp.app"
These steps should of course be taken before the last two steps above :)
UPLOAD and it should work!