こんにちは、自分のアプリケーションでGoogleプレイスを実装するためにポッドを使用しましたが、アプリを実行しようとするとこのエラーが発生します。目的地のエラーがあるGoogleプレイス
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_GMSPlacesClient", referenced from:
objc-class-ref in ViewController.o
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
これは私のポッドファイルです:
source 'https://github.com/CocoaPods/Specs.git'
project '/Users/GeorgeYoung/Desktop/Travel/Travel.xcodeproj'
target 'Travel' do
pod 'GooglePlaces'
end
エラーがAppDelegate.m
[GMSPlacesClient provideAPIKey: "AIzaSyBYRDTp7U-633XB81qsBeOiVGhokPrc6_M" @]から来ることがapears。
Podfile.lock:
PODS:
- GoogleMaps/Base (2.4.0)
- GooglePlaces (2.4.0):
- GoogleMaps/Base (= 2.4.0)
DEPENDENCIES:
- GooglePlaces
SPEC CHECKSUMS:
GoogleMaps: 8436ab5d1c25e36915b2f7416d0c8e3fa2e76c61
GooglePlaces: aafe5990fa7951e98e078761bbdaaf236d7e0c65
PODFILE CHECKSUM: e564be8d79cfc6ae7b4a4a197ee6149eac7d65d2
COCOAPODS: 1.3.1
? –
はい私は誤ってxcodeprojで作業していたと確信しています。 –