iOS app validation errors - ios

Today I was trying to upload my app to the iOS app store, but was unsuccessful. I tried different techniques like through Application Loader, but nothing worked for me. Then I read at some blog to validate the app first before uploading. And while uploading I got this issue (see screenshot).
I am using Mac OS Sierra, and Xcode 8.2 beta

You are using Xcode 8.2 beta and the error tells you not to use beta. Use the GM version of Xcode 8.2 and macOS Sierra. It's that simple.

Related

Xcode 7.3.1 app submission to the Appstore

Does Apple still accept apps built using Xcode 7.3.1 (Swift 2.2) for the AppStore ?
Or does it have to be migrated to Xcode 8 (at least Swift 2.3 or above) ?
Currently you're still able to upload apps built with Xcode 7.3.1, but you have to use:
Xcode 8.0 or higher
or
Application Loader 3.6 or higher (bundled with Xcode 8)
for the upload process.
This was after the public release of Xcode 8 and the app was accepted for submisson.
Tested on Mac OS Sierra (10.12.1)
Yes, Apple still accept.
If it doesn't work in default way (archive, then upload to AppStore), try to export .ipa file and upload it via Application Loader.

Xcode 6: iOS 8.1 The Developer Disk Image could not be mounted

I keep getting this error, whenever I try to run my app on my iphone, which is running iOS 8.1.-
The Developer Disk Image could not be mounted.
User’s iPhone may be running a version of iOS that is not supported
by this version of Xcode.
I tried restarting my mac and xcode, but problem persists.
Xcode 6 only contains the iOS 8.0 SDK.
If you're running iOS 8.1 on your phone, then you'll need to upgrade to Xcode 6.1, which contains the iOS 8.1 SDK.
Download the latest version of Xcode from the App Store. I had an early version of XCode 6.1 that lacked the 8.1 SDK. Upgrading to the latest fixed the problem.
Restarting my phone cleared this for me.
It started a day after updating to Xcode 6.1 and phone (4s) to 8.1 worked fine to start with then stopped with this message a day later.
Opening project in Xcode 6.1 then again in 6.0.1 seemed to fix issue, if your project is not ready to be compiled in 6.1!
Did you check your apps' base version. If the base version is set to 8 and your device is 7, you will probably get this error.
and if your base version, from what i imagine is 8.1 and your device is not updated to 8.1 it wont work either.
Xcode 6.4 beta would not run iOS 8.3. Switched to Xcode 6.3 fixed the issue. And then when opening it back in 6.4 beta, was working fine.
Just ran into this after absentmindedly upgrading my phone to iOS 8.3. Resolution required an upgrade to OS X Yosemite (10.10) before I could update to a version of Xcode that supports that version of iOS.
I have seen this error before in my experience. It means that the Developer Disk image in your Xcode is not compatible with the one in your iOS device that you are trying to run/develop an app with. One of the easiest way to solve this is update your Xcode installation. Another quick trick that I learned with is by copying Developer Disk image versions into Xcode.app's directory.
I earned some copies of different versions of Developer Disk image from various Macbooks that have updated and outdated Developer Disk images. You could download some resources online, extract it and then place the whole directory on your Xcode's installation directory normally located here: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/.
I hope this helps!

Non-public API usage

I can't upload an app to iTunes Connect.
Xcode uploader says that I'm using allocBatch:withEntity:count:, allocWithEntity:, IndexForKey:, fastIndexForKnownKey:
I'm not using this methods, and I don't know where they could be. A week ago same code was uploading successfully. What can be the cause of such behavior?
UPDATE
Submitting with older Xcode is not working anymore, this error reveals on binary processing.
I had this exact issue using Yosemite with Xcode 6.1 and using Objective C. I also got a warning on validation saying you can't upload an app created with a beta version of Xcode, which 6.1 is at the time of writing this.
I trashed Xcode 6.1 by dragging it to the trash form Finder then downloaded Xcode 6.0.1 GM from the App Store. I tried twice to install 6.0.1 over the top of 6.1 but it didn't work, hence the trashing of 6.1
Having cleaned and recompiled my app with Xcode 6.0.1 it validated and submitted to the app store with no problem. I hope this helps.
I fixed it by changing the deployment target from iOS4.3 to iOS5.0 all fixed using Xcode 6.1
I encountered the exact same error when using Xcode 6.1 (and its bundled Application Loader) on Mac OS 10.9.5. Clicking "Back" within the Application Loader and re-submitting the same binary worked. In other words, trying a second time succeeded. My app was built with iOS SDK 8.1.
You don't have to delete XCode 6.1. It would become handy in couple days. Just download XCode 6.0.1, copy it somewhere, and use sudo xcode-select --switch /Applications/Xcode601.app/Contents/Developer/. Then start it, and build your great app with it.
The API differs between iOS 7 and iOS 8. I got my App validated by switching to Deployment Target "8.0" - built with XCode 6.1. It might not be the solution to all you guys but you could give it a try.
Might have happened to me because I recently started using UIAlertController -> seems to be an iOS-8-Feature. On iOS 7 this would be UIAlertView. So if you use some nifty new features they might not have been available with previous iOS versions - thus non-public API.
Increasing the version number of my app did the trick for me.
EDIT: Just saw a comment in my bug report to apple
So most likely the version number had nothing to do :D
I got the same problem in Xcode 6.0.1 if I use the archive created by Xcode 6.1. It works if I recreate the archive by Xcode 6.0.1. That means the non-public API is added by Apple in Xcode 6.1.
I tried to delete all DerivedData.
/Users/{user_home_folder}/Library/Developer/Xcode/DerivedData
and I validated successfully.
http://qiita.com/PGMY/items/831618ad416780e0dc7c
i had meet same issue when i cancelled archiving to app store. Apple send me email about this subject. And than i recreate archiving and send to App Store. Everythink is ok for a now.

Xcode 4.2 with iOS 5.0 not detecting iPhone iOS 5.1.1

I changed a while ago from Xcode 3 to Xcode 4.2 for Snow Leopard. Everything was fine, I developed apps for iPhone and all was going smoothly until today...
I got alert:
The version of iOS on “iPhone Prophone” 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.
Which is strange, because yesterday I was able with simple "run" test my app aimed for iOS 5.0 (Xcode target 5.0, 4C199) with my iPhone 4S, which has iOS 5.1.1 (9B206) for quite some time. In Organizer->Devices my iPhone has a yellow dot suggesting that something is wrong. I don't think I did something unexpected, just came, turned mac on and fired up Xcode... any solution?
I've read that, but as I said - I was using new Xcode for few weeks and suddenly this "non-detection" happened...
I'm stuck, thanks for help.
EDIT:
I found something relevant in this topic on SO, but I'll wait a bit - maybe there is something simpler or more obvious that I missed.
I managed to solve the problem, by:
1) downloading xcode 4.3.1
2) copying from package content SDK & Device Support for iOS 5.1 into Xcode directories
3) run and test on your device
solution found here: iOS 5.1 with Xcode 4.2 and retina in iPad 3

Will Xcode 4.3.2 suffice to build apps for iOS 6?

After today's announcement that iOS 6 Beta is available to developers today, I am wondering if I jump on the iOS 6 ASAP will I still be able to build my apps in progress on my device(iPhone) from Xcode 4.3.2? or will there be a required update for Xcode as well?
Update: Currently I have iOS 6 on my iPhone and Xcode 4.5 installed. After that the organizer in Xcode (4.3.2 and 4.5) said 'could not support development' in the Provisioning. Then fixed that, and now I have 4.3.2 saying that it is running my app on my iPhone, but its not showing up on my phone. And 4.5 gets to the 'TakingInstallLock' point in the process, and just keeps trying, but getting nowhere. Anyone else having this issue? Anyone know of a solution?
You can push apps to your phone from Xcode 4.3.x if your phone is running the iOS 6 Beta.
You cannot, however, utilize any of the iOS 6+ frameworks such as the new Social framework from within Xcode 4.3.x
I can't comment yet so this is to confirm that installing Xcode 4.5 DP acutally installs the iOS 6 SDK for Xcode 4.3.2 as well. This is rather obvious as SDK files are installed in a general place (namely the Library folder) of OSX.
The steps to use your updated iOS 6 device for development with Xcode 4.3.2 thus are:
Download Xcode 4.5 DP from the dev area of apple.com.
Install Xcode 4.5
Start up Xcode 4.3.2
Open up the devices section, choose your device for development, wait for the process of fetching information to finish and you are good to go.
Regards!
Any apps that you write using beta software will be rejected. To translate, if you use iOS 6 SDK beta or the new Xcode beta that gets released today, your app will be rejected even if you make a build for just iOS 5.
I installed iOS6 and Xcode 4.3.2 didn't recognize my device. After installing Xcode 4.5 beta and letting it install a few things, 4.3.2 now recognizes my device and I can carry on building and testing on my iOS6 device.
I would say no!
I updated last night and now I can't run my app on my phone.

Resources