我正在尝试将Mapbox实现到我的Hyperloop项目中。但它并没有像我预期的那样工作。
知道我做错了什么吗?
到目前为止,我已经通过可可pods将Mapbox-iOS-SDK导入到了我的AppC项目中。
platform :ios, '7.0'
target 'Hyperloop-map-test' do
pod 'Mapbox-iOS-SDK' end它工作得很好,我可以看到它已经安装在我的项目中:

在我的index.js控制器中,我使用了以下内容:
var UIView = require('UIKit/UIView');
var mapView = require('Mapbox-iOS-SDK/Mapbox').Mapbox;
var map = new mapView().MGLMapView;
//map.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
map.setCenterCoordinate.CLLocationCoordinate2DMake(40.7326808,-73.9843407);
map.zoomLevel = 12;
map.animated = no;
$.container.add(map);然后,我从CLI运行该项目,它抛出以下错误:
[ERROR] Script Error Couldn't find module: Mapbox-iOS-SDK/Mapbox for architecture: x86_64发布于 2016-03-14 16:51:28
wer目前正在调查包含破折号(-)的Pod/框架的问题。您可以跟踪JIRA-ticket here。谢谢!
https://stackoverflow.com/questions/35965171
复制相似问题