Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iTunes Connect: Invalid binary

I am getting this error in iTunes Connect.

I have an app and I make some changes in that. So now I am uploading the updated version with the Organizer, but after upload, I am getting "invalid binary", but no more information. Looking into this forum I found many people face same issue but no solution works for me.

I validate the app before uploading and the validate process is OK.. any advice will be welcome, this is driving me crazy.

thanks in advance.

Titanium SDK 5.5.0 GA

macOS Sierra.

like image 891
Juan Carlos Salinas Ojeda Avatar asked Sep 22 '16 19:09

Juan Carlos Salinas Ojeda


3 Answers

Whenever you get an invalid binary error an email gets sent to the itunesConnect account, with the explanation on why it is invalid.

I did receive an invalid binary message and contained the following message:

This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSAppleMusicUsageDescription key with a string value explaining to the user how the app uses this data.

So it does have to do with a permission request. The way to fix this issue is to check the email, and explain why you are requesting access to that privacy-sensitive data. Keep in mind that we are not using Apple Music, but for some reason that showed up there ;)

like image 58
Leo Avatar answered Sep 25 '22 08:09

Leo


I get this email from Apple:

This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value explaining to the user how the app uses this data.

This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSMicrophoneUsageDescription key with a string value explaining to the user how the app uses this data.

This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data.

This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSAppleMusicUsageDescription key with a string value explaining to the user how the app uses this data.

Once these issues have been corrected, you can then redeliver the corrected binary.

My App is using the camera, not Apple Music, not Agenda, etc... Maybe one of the Modules...

But anyway, I fixed it by adding this to tiapp.xml

<ios>
    <plist>
        <dict>
            <key>NSContactsUsageDescription</key>
            <string>Can we use to your contacts?</string>
            <key>NSCameraUsageDescription</key>
            <string>Can we use your camera?</string>
            <key>NSCalendarsUsageDescription</key>
            <string>Can we use your calendar?</string>
            <key>NSPhotoLibraryUsageDescription</key>
            <string>Can we save to your library?</string>
            <key>NSMicrophoneUsageDescription</key>
            <string>Can we use your microphone?</string>
        </dict>
    </plist>
</ios>

You can visit this page:

https://www.appcelerator.com/blog/2016/09/ga-release-for-titanium-sdk-5-5-0-appcelerator-cli-5-5-0-appcelerator-studio-4-7-1/

I hope that helps.

like image 29
macCesar Avatar answered Sep 22 '22 08:09

macCesar


I finally solve this problem.

In my app i use: Version: 1.0.6 Build: 1.0.6

For some reason, now i cant do that, so i change the build version to: 106 and that makes the magic.

i hope this can help to others..

like image 43
Juan Carlos Salinas Ojeda Avatar answered Sep 24 '22 08:09

Juan Carlos Salinas Ojeda