Building MapboxNavigation SDK error


#1

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.

** BUILD FAILED **

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

For full error logs please see it in https://drive.google.com/file/d/0B5n-HTVfNqN2THhqOXlfTDNYQkk/view?usp=sharing


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.

Regards,
Lawrence


#2

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


#3

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

#4

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,
Lawrence


#5

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.


#6

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 https://github.com/NativeScript/ios-runtime/issues/785.