Error building application for iOS

Hello everyone. I’m having some troubles while trying to build my application for the iOS platform.

error message: ld: file is universal (4 slices) but does not contain a(n) armv7 slice: project/Plugins/com.googlemaps.ios/GoogleMapsCore.framework/GoogleMapsCore file 'project/Plugins/com.googlemaps.ios/GoogleMapsCore.framework/GoogleMapsCore' for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
"cordova": {
    "plugins": {
      "cordova-plugin-device": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-statusbar": {},
      "cordova-plugin-whitelist": {},
      "ionic-plugin-keyboard": {},
      "com-sarriaroman-photoviewer": {},
      "cordova-plugin-android-permissions": {},
      "uk.co.workingedge.phonegap.plugin.launchnavigator": {},
      "com.unarin.cordova.beacon": {},
      "cordova.plugins.diagnostic": {},
      "phonegap-plugin-push": {
        "FCM_VERSION": "11.0.1",
        "SENDER_ID": "mySenderId"
      },
      "de.appplant.cordova.plugin.local-notification": {},
      "cordova-plugin-googlemaps": {
        "API_KEY_FOR_ANDROID": "myKey",
        "API_KEY_FOR_IOS": "myKey"
      }
    },
    "platforms": [
      "android",
      "ios"
    ]
  }
cli packages: (/Users/myself/Desktop/apps/project/node_modules)

    @ionic/cli-utils  : 1.13.0
    ionic (Ionic CLI) : 3.13.0

global packages:
    cordova (Cordova CLI) : 7.1.0

local packages:

    @ionic/app-scripts : 3.0.0
    Cordova Platforms  : android 6.3.0 ios 4.5.3
    Ionic Framework    : ionic-angular 3.7.1

System:

    ios-deploy : 1.9.2
    Node       : v8.4.0
    npm        : 5.5.1
    OS         : macOS Sierra
    Xcode      : Xcode 9.1 Build version 9B55

Misc:

    backend : legacy

I wonder if anyone had this problem or something similar that can give me a hand here.

Cheers.

It seems to be related to the google maps plugin? Have you checked the repo for the plugin to see if anyone else had this problem with the plugin as well?

Thanks for your answer!
Yes I have checked the plugin repo and didn’t find nothing like this. I also searched for this specific error and nothing that I’ve found has helped me on solving this issue.

Context is missing. What is your ionic info output? What Cordova plugins are you using?

Hey Sujan12, thanks for your answer and for editing my post.

So, here it is:

"cordova": {
    "plugins": {
      "cordova-plugin-device": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-statusbar": {},
      "cordova-plugin-whitelist": {},
      "ionic-plugin-keyboard": {},
      "com-sarriaroman-photoviewer": {},
      "cordova-plugin-android-permissions": {},
      "uk.co.workingedge.phonegap.plugin.launchnavigator": {},
      "com.unarin.cordova.beacon": {},
      "cordova.plugins.diagnostic": {},
      "phonegap-plugin-push": {
        "FCM_VERSION": "11.0.1",
        "SENDER_ID": "mySenderId"
      },
      "de.appplant.cordova.plugin.local-notification": {},
      "cordova-plugin-googlemaps": {
        "API_KEY_FOR_ANDROID": "myKey",
        "API_KEY_FOR_IOS": "myKey"
      }
    },
    "platforms": [
      "android",
      "ios"
    ]
  }
cli packages: (/Users/myself/Desktop/apps/project/node_modules)

    @ionic/cli-utils  : 1.13.0
    ionic (Ionic CLI) : 3.13.0

global packages:
    cordova (Cordova CLI) : 7.1.0

local packages:

    @ionic/app-scripts : 3.0.0
    Cordova Platforms  : android 6.3.0 ios 4.5.3
    Ionic Framework    : ionic-angular 3.7.1

System:

    ios-deploy : 1.9.2
    Node       : v8.4.0
    npm        : 5.5.1
    OS         : macOS Sierra
    Xcode      : Xcode 9.1 Build version 9B55

Misc:

    backend : legacy

Try upgrading to 6.4.0 - maybe this already fixes your issue.

I tried that, still got same error. Why should I upgrade android version if the error is on iOS?
Thanks for your help.

Because I obviously can’t read - sorry.

2 Likes

There is absolutely no poblem on that mate, do you got any other idea on how to solve this sorcery?

Not really. I would create a new project with ionic start and only add that plugin and see if it successfully builds.

I’ll give that a try and then update this post to tell if it was successfull or not, thanks.

Update 1: After starting a brand new project and adding the google maps plugin it all worked correctly, I’m now going to add other plugins that may be conflicting with this google maps one.

Update 2: I removed the google maps plugin and managed to successfully build the application, but the application is not going any further than the splashscreen.

1 Like