I have a new project in which I use Xcode 7 beta 3 and Swift 2.0 using GoogleMaps imported through cocoapods. This is a WatchKit 2.0 app, so I have a primary goal for the iPhone (Destinations), a target for the Apple Watch (Destinations WatchKitApp and Destinations WatchKitExtension) and an internal structure (DestinationsKit) that does the hard work for interacting with GoogleMaps among other things.
I can successfully import GoogleMaps into the main destination (Destinations) and successfully display the map.
import UIKit
import DestinationsKit
import GoogleMaps
class DestinationDetailsViewController : UIViewController
{
var destination: Destination!
var mapView : GMSMapView!
}
The above code imports my internal structure, DestinationsKit, and successfully uses GoogleMaps.
, , (DestinationsKit). , GoogleMaps, " " GoogleMaps ".
import Foundation
import CoreLocation
import GoogleMaps
public class UserTrip {
}
:
- ' Build Phases' → 'Link Binary With Libraries', Pods.Framework( , )
- " Framework Modules" ""
- "" → " " ""
My Pods :
source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
pod 'GoogleMaps'
, Pods.Framework . , , GoogleMaps, .
!