コードに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/
任意のアイデア?
あなたの地元のリポジトリを更新 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