iTunes Connect - Invalid Binary
I spent a few hours over the last 2 days dealing with a new check Apple is doing when submitting apps to iTunesConnect through XCode/Organizer. What was just fine a month ago seems not anymore, as I was surprised when my app passed validation, but was rejected after upload with an email like this:
Unsupported Architecture - Application executables may support either or both of the Intel architectures:
i386 (32-bit)
x86_64 (64-bit)
I went to my build settings and confirmed that i386 and x86_64 were what were selected, and I even confirmed that my app binary was set to that by running "lipo -info MyAppBinary".
My problem (after some pointers from @eternalstorms) was that I was using a couple third party frameworks in my app that still had PPC architecture inside their binaries. (ShortcutRecorder and BWToolkit). I attempted what I thought should have worked, and just ran "lipo -remove {ppcarchIDs} {frameworkbinary} -output {newFrameworkBinary}", which didn't work; also ran "ditto" to strip out the unwanted architectures - no go.
Ended up having to recompile both frameworks from source, after ensuring "i386 x86_64" were the only architectures in the build settings. And now I'm fine.
This is definitely a new check Apple is doing; submitted less than a month ago without any of this.


















