2015-09-19 10 views
6

コードにGoogle Places APIオートコンプリート機能を使用しようとしています。Xcode 7/iOS9を使用してGoogle Maps APIでパスエラーで最適化モデルを読み込めませんでした

私はそれを実行すると、私はこのエラーを取得しています
import UIKit 
import GoogleMaps 

class ViewController: UIViewController, GMSMapViewDelegate { 

    var placesClient: GMSPlacesClient? 

    override func viewDidLoad() { 
     super.viewDidLoad() 

     placesClient = GMSPlacesClient() 

     let filter = GMSAutocompleteFilter() 
     filter.type = GMSPlacesAutocompleteTypeFilter.City 
     placesClient?.autocompleteQuery("Pizza", bounds: nil, filter: filter, callback: { (results, error: NSError?) -> Void in 
      if let error = error { 
       print("Autocomplete error \(error)") 
      } 

      for result in results! { 
       if let result = result as? GMSAutocompletePrediction { 
        print("Result \(result.attributedFullText) with placeID \(result.placeID)") 
       } 
      } 
     }) 

    } 
} 

CoreData: Failed to load optimized model at path '/var/mobile/Containers/Bundle/Application/ 任意のアイデア?

+0

あなたの地元のリポジトリを更新 https://developers.google.com/maps/documentation/ios-sdk/releases?hl=en をマップiOS9/Xcodeの問題です。7. https://code.google.com/p/gmaps-api-issues/issues/detail?id=8459&& https://stackoverflow.com/questions/322をご覧ください。 33939/core-data-failure-to-load-optimized-model-at-path – Gowiem

答えて

2

は "Other Linker Flags"

(Build Settings -> Linking -> Other Linker Flags). 

これは私のためにそれを解決するために-ObjCを追加します。

このフラグを追加した後、紛失したシンボルに関するエラー(_ CBAdvertisementDataManufacturerDataKeyなど)が届きました。

私はこの問題は、Googleの新しいアップデートで修正される* Build Phases -> Link Binary With Libraries*.

1

AccelerateCoreBluetoothフレームワークを追加しましたようだ、このリンクをチェックして、

関連する問題