Building MapboxNavigation SDK error


I was trying to use MapboxNavigation sdk to my system. I already created separate folder for it and add it via tns plugin cli command. But I wasn’t able to build cocoapods, everytime I added MapboxNavigation to the Podfile. Bur other dependencies works fine.

Here is the example of error output.


The following build commands failed:
PhaseScriptExecution NativeScript\ PreBuild /Users/admin/Library/Developer/Xcode/DerivedData/mapboxnavigationandroidpoc-dmdqwhtapzkkbjchtcvkctsggrde/Build/Intermediates/
(1 failure)
Command xcodebuild failed with exit code 65

For full error logs please see it in

I wasn’t sure if it’s nativescript cli or MapboxNavigation SDk itself.

Please see the attached file for more error logs info.

P.S: I don’t have experience on worrking on iOS before.



Up! Can anyone help with this? same thing on this end.


Hi Lawrence,
Can you provide the steps you took?
Can you attach the podfile that you used to import the pod to your project?

  • Sebastian


Hi Sebastian,

This are the steps I took regarding the issue I encountered.

  1. Create {N} project

    • tns create MyApp --ng
  2. Create local plugin under the root folder (mapbox-navigation folder).

  • Structure:
    • mapbox-navigation
      • package.json
        • {
          “name”: “mapbox-navigation”,
          “version”: “0.0.1”,
          “nativescript”: {
          “platforms”: {
          “ios”: “2.5.1”
    • platforms
      • ios
        • Podfile

          • platform :ios, '9.0’
            pod ‘MapboxNavigation’, ‘~> 0.4.0’
  1. Add local mapbox-navigation plugin to {N} project

    • tns plugin add ./mapbox-navigation
  2. Build project

    • tns build ios

Hope it was clear.

Thanks in advance,


Thank you sebastian for helping us out here, and please keep us posted if you are able to replicate the issue or if you need additional information.


The problem is that the metadata generator exits with an error when generating metadata for the MapboxNavigation SDK Pod. You can track the progress of the issue here