The build status of Ionic App has changed to Invalid Binary

I found an interesting error today while uploaded an iOS archive to App Store connect.

Got below notification message:

The build status of [App Name] (version 0.0.1 (0.0.1) iOS) has changed to Invalid Binary

How to reproduce

  1. create new project with ionic start MyApp blank
  2. select ‘Angular’
  3. Answer No for capacitor
  4. Add cordova-ios 5.1.1 with ionic cordova platform add ios@5.1.1
    5.Open MyApp.xworkspace in Xcode
  5. then set bundle identifier to match the one in iTune Connect.
  6. Goto Xcode > Product > Archive
  7. Use Organizer to submit archive to iTune Connect.
  8. After finished the uploading, I got the notification message in iTune Connect Application (iOS).

Ionic info:

Ionic:

Ionic CLI : 6.9.2 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 5.1.1
@angular-devkit/build-angular : 0.901.7
@angular-devkit/schematics : 9.1.7
@angular/cli : 9.1.7
@ionic/angular-toolkit : 2.2.0

Cordova:

Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : ios 5.1.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 4 other plugins)

Utility:

cordova-res : 0.14.0
native-run (update available: 1.0.0) : 0.3.0

System:

ios-deploy : 1.9.4
ios-sim : 8.0.2
NodeJS : v12.15.0 (/usr/local/bin/node)
npm : 6.14.5
OS : macOS Catalina
Xcode : Xcode 11.4.1 Build version 11E503a

I am having the same issue. No warning or notification what so ever, upload to App Store is successful but only getting a notification message via the Connect App on my iphone: invalid binary. Strange as my apps are created by Ionic…

Hi, I finally discovered with my partner who told me about this problem, that we should put a setting in config.xml file:

<preference name="WKWebViewOnly" value="true" />

as mentioned in this Ionic’s blog post..

After put this into config.xml. It passed that ‘Invalid Binary’.

I think we should put this into config.xml as default now for anyone who start building application with cordova instead of capacitor.

I create a request here.

1 Like