Found an unexpected Mach-O header code: 1918975009 when validating an archive


#1

When I create an archive for sending to the App Store, I get
"Found an unexpected Mach-O header code: 1918975009"
in Xcode when validating the archive. I’ve have no idea how to fix this or if this is Ionic related.
I use

  • Ionic CLI 1.4.5
  • Ionic lib 1.0.0
  • Cordova 5.0.0

And the plugins com.ionic.keyboard,com.phonegap.plugins.PushPlugin,com.phonegap.plugins.facebookconnect,cordova-plugin-console,org.apache.cordova.device,org.apache.cordova.network-information

Has anybody an idea or a pointer? Much appreciated!


#2

I have the exact same problem. Is there any support for this?


#3

Hello All,

This issue did happen in my XCode too and I assume all of us here have installed phonegap-facebook-plugin into our ionic app. Below are the steps to fix this:

  • By using finder, browse to <your ionic app’s project directory>/platforms/ios/<your app’s name>/www/js/lib/phonegap-facebook-plugin/platforms/ios/
  • Locate, delete or move the FacebookSDK.Framework folder
  • Retry generating your IPA file again.
    Hope it helps.

Cheers.