Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-24740

iOS - Unable to use Mapbox SDK (third-party framework) with Hyperloop

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Not Our Bug
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Hyperloop
    • Environment:

      Appcelerator Studio, build: 4.8.1.201612050850
      Titanium Studio Version: 4.8.1.1480394157-7v7d7y9Sfvz-z-wFMBL
      TiSDK 6.0.4.GA
      Hyperloop 2.0.1
      Xcode Version 8.2.1 (8C1002)
      OSX Version 10.11.6 (15G1217)
      iOS simulator 10.2

    • Story Points:
      1
    • Sprint:
      2017 Sprint 16 SDK

      Description

      Hi,
      I'm trying to use Hyperloop to integrate the mapbox framework to my app, but it is not working.

      After following the appcelerator's guide for include third-party framework to ios, when I run the app on the ios simulator, the app crashes and I got a crash report (see attachments).
      step to reproduce :
      -create a new project in appcelerator using the default alloy project with hyperloop enabled.
      -download the Mapbox iOS sdk at http://mapbox.s3.amazonaws.com/mapbox-gl-native/ios/builds/mapbox-ios-sdk-3.5.4-dynamic.zip
      -Unzip and place the Mapbox.framework file in "src" folder in the project's root directory
      -I add an appc.js file on the project's root directory with those lines :

      module.exports = {
      	hyperloop: {
      		ios: {
      			xcodebuild: {
      				flags: {
      					FRAMEWORK_SEARCH_PATHS: '../../src',
                                              LD_RUNPATH_SEARCH_PATHS: '@executable_path'
      				},
      				frameworks: [
      					'Mapbox'
      				]
      			},
      			thirdparty: {
      				'Mapbox': {
      					source: ['src'],
      					header: 'src',
      					resource: 'src'
      				}
      			}
      		}
      	}
      };
      
      

      -Add the "MGLMapboxAccessToken" key in the tiapp.xml
      -Edit the index.js controler :

      function doClick(e) {
      	alert($.label.text);
      }
      var MGLMapView = require('Mapbox/MGLMapView');
      var map = new MGLMapView();
      $.index.add(map);
      $.index.open();
      

      -run the app on iOS simulator

        Attachments

          Activity

            People

            • Assignee:
              emerriman Eric Merriman
              Reporter:
              jcanourgues La Fabrik
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-10724
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code