Skip to content
This repository has been archived by the owner on May 9, 2018. It is now read-only.

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

Closed
danielgomezrico opened this issue Jul 9, 2015 · 2 comments
Closed

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

danielgomezrico opened this issue Jul 9, 2015 · 2 comments

Comments

@danielgomezrico
Copy link

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
Copy link
Contributor

incanus commented Jul 9, 2015

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

@incanus incanus closed this as completed Jul 9, 2015
@danielgomezrico
Copy link
Author

Reissued mapbox/mapbox-gl-native#1870 ,)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants