mapbox / DEPRECATED-mapbox-ios-sdk

REPLACED – use https://www.mapbox.com/ios-sdk instead
https://github.com/mapbox/mapbox-gl-native
Other
323 stars 8 forks source link

MapboxGL on XCode Version 7.0 beta (7A121l) #651

Closed danielgomezrico closed 9 years ago

danielgomezrico commented 9 years ago

I´m one of those horrible compile error with the simple example on https://www.mapbox.com/mapbox-gl-ios/examples/. :(

My pod file:

source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
pod 'MapboxGL'

My view controller:

import UIKit
import MapboxGL

class MapViewController : UIViewController, MGLMapViewDelegate {

    override func viewDidLoad() {
        super.viewDidLoad()

        let mapView = MGLMapView(frame: view.bounds)
        mapView.autoresizingMask = [UIViewAutoresizing.FlexibleWidth, UIViewAutoresizing.FlexibleHeight]

        // set the map's center coordinate
        mapView.setCenterCoordinate(CLLocationCoordinate2D(latitude: 40.7326808,
            longitude: -73.9843407),
            zoomLevel: 12, animated: false)

        view.addSubview(mapView)
    }

}

Error:

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_MGLMapView", referenced from:
      type metadata accessor for ObjectiveC.MGLMapView in MapViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Is it a bug on Xcode or is mine?

incanus commented 9 years ago

@danielgomezrico Mapbox GL goes over here: https://github.com/mapbox/mapbox-gl-native Could you please re-file there?

danielgomezrico commented 9 years ago

Reissued https://github.com/mapbox/mapbox-gl-native/issues/1870 ,)