{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/1870","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/1870/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/1870/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/1870/events","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/1870","id":94189818,"number":1870,"title":"MapboxGL on XCode Version 7.0 beta","user":{"login":"danielgomezrico","id":76348,"avatar_url":"https://avatars.githubusercontent.com/u/76348?v=3","gravatar_id":"","url":"https://api.github.com/users/danielgomezrico","html_url":"https://github.com/danielgomezrico","followers_url":"https://api.github.com/users/danielgomezrico/followers","following_url":"https://api.github.com/users/danielgomezrico/following{/other_user}","gists_url":"https://api.github.com/users/danielgomezrico/gists{/gist_id}","starred_url":"https://api.github.com/users/danielgomezrico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielgomezrico/subscriptions","organizations_url":"https://api.github.com/users/danielgomezrico/orgs","repos_url":"https://api.github.com/users/danielgomezrico/repos","events_url":"https://api.github.com/users/danielgomezrico/events{/privacy}","received_events_url":"https://api.github.com/users/danielgomezrico/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-07-10T01:26:06Z","updated_at":"2015-08-19T21:34:11Z","closed_at":"2015-07-10T01:53:10Z","body":"I´m one of those horrible compile error with the simple example on https://www.mapbox.com/mapbox-gl-ios/examples/. :(\r\n\r\nMy pod file:\r\n```\r\nsource 'https://github.com/CocoaPods/Specs.git'\r\nuse_frameworks!\r\npod 'MapboxGL'\r\n```\r\n\r\nMy view controller:\r\n\r\n```\r\nimport UIKit\r\nimport MapboxGL\r\n\r\nclass MapViewController : UIViewController, MGLMapViewDelegate {\r\n\r\n    override func viewDidLoad() {\r\n        super.viewDidLoad()\r\n\r\n        let mapView = MGLMapView(frame: view.bounds)\r\n        mapView.autoresizingMask = [UIViewAutoresizing.FlexibleWidth, UIViewAutoresizing.FlexibleHeight]\r\n\r\n        // set the map's center coordinate\r\n        mapView.setCenterCoordinate(CLLocationCoordinate2D(latitude: 40.7326808,\r\n            longitude: -73.9843407),\r\n            zoomLevel: 12, animated: false)\r\n\r\n        view.addSubview(mapView)\r\n    }\r\n\r\n}\r\n```\r\n\r\nError:\r\n```\r\nUndefined symbols for architecture x86_64:\r\n  \"_OBJC_CLASS_$_MGLMapView\", referenced from:\r\n      type metadata accessor for ObjectiveC.MGLMapView in MapViewController.o\r\nld: symbol(s) not found for architecture x86_64\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\n```\r\nIs it a bug on Xcode or is mine?"},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/comments/132793513","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/1870#issuecomment-132793513","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/1870","id":132793513,"user":{"login":"1ec5","id":1231218,"avatar_url":"https://avatars.githubusercontent.com/u/1231218?v=3","gravatar_id":"","url":"https://api.github.com/users/1ec5","html_url":"https://github.com/1ec5","followers_url":"https://api.github.com/users/1ec5/followers","following_url":"https://api.github.com/users/1ec5/following{/other_user}","gists_url":"https://api.github.com/users/1ec5/gists{/gist_id}","starred_url":"https://api.github.com/users/1ec5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1ec5/subscriptions","organizations_url":"https://api.github.com/users/1ec5/orgs","repos_url":"https://api.github.com/users/1ec5/repos","events_url":"https://api.github.com/users/1ec5/events{/privacy}","received_events_url":"https://api.github.com/users/1ec5/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T21:34:11Z","updated_at":"2015-08-19T21:34:11Z","body":"> http://corinnekrych.blogspot.com/2015/04/how-well-does-swift-plays-on-ios7.html (read first comment)\r\n\r\nI stand corrected. But https://github.com/CocoaPods/swift/issues/9#issuecomment-79065802 is pretty much spot on. In fact, the main benefit we’ve gotten from CocoaPods has been its ability to wrap the static library in a dynamic framework (something we’ve been planning to roll at home for #828). However, if you’re writing in Swift but backwards-deploying to iOS 7.0, you may want to consider the [manual installation route](https://www.mapbox.com/mapbox-gl-ios/#binary) if you aren’t using CocoaPods for any other packages.\r\n\r\n> your podspec is using `m.xcconfig` which isn't listed in Pod docs\r\n\r\nLooks like our use of `xcconfig` dates back to mapbox/mapbox-gl-cocoa@906a1bbfb4bc18fad9deb4c1970f5d5976a0844f. `pod_target_xcconfig` and `compiler_flags` only replaced `xcconfig` quite recently in CocoaPods/CocoaPods#3573 in 0.38.0. I’ve opened #2132 to move over to the new flag, though I don’t know if we want to require the newest CocoaPods version so soon."}}