[TIMOB-25729] Hyperloop: iOS - Unable to load Mapbox using Hyperloop
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | None |
| Status | Closed |
| Resolution | Not Our Bug |
| Resolution Date | 2018-01-27T17:10:10.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Hyperloop |
| Labels | n/a |
| Reporter | Victor Vazquez Montero |
| Assignee | Hans Knöchel |
| Created | 2018-01-26T21:26:59.000+0000 |
| Updated | 2018-08-06T17:52:05.000+0000 |
Description
Attachments
| File | Date | Size |
|---|---|---|
| HyperloopDemo.zip | 2018-01-26T21:25:40.000+0000 | 10010451 |
| HyperloopDemo-fixed.zip | 2018-01-27T17:07:24.000+0000 | 9520041 |
| Screen_Shot_2018-01-26_at_1.29.28_PM.png | 2018-01-26T21:25:52.000+0000 | 156131 |
I cannot see any reference to the Mapbox SDK in the sample project. Here is an example of using Cocoapods to manage the framework:
Doing that, you can instantiate a new view:install! 'cocoapods', :integrate_targets => false platform :ios, '8.0'Change to the actual app name
target 'HyperloopDemo' do pod 'Mapbox-iOS-SDK' endvar UIScreen = require('UIKit/UIScreen'); var UIViewAutoresizingFlexibleWidth = require('UIKit').UIViewAutoresizingFlexibleWidth; var UIViewAutoresizingFlexibleHeight = require('UIKit').UIViewAutoresizingFlexibleHeight; var MGLMapView = require('MapBox/MGLMapView'); var mapView = new MGLMapView.alloc().initWithFrame(UIScreen.mainScreen.bounds); mapView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; // ... Create your Titanium view ... myTitaniumView.add(mapView);Fixed their project for them and re-attached it under "HyperloopDemo-fixed.zip". There were a couple of issues: * Mapbox SDK wasn't included * Mapbox API-key were missing * Mapbox geolocation permissions were missing I've also updated our [Mapbox sample-app](https://github.com/hyperloop-modules/ti.mapbox) that can be used as an additional reference. Cheers!
Closing as "not our bug". If you disagree, please reopen.