Following the directions to upgrade the Google Sign-In SDK from 1.0.0 to 2.0.1 on https://developers.google.com/identity/sign-in/ios/sdk/ causes the following compile error.
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_SKStoreProductViewController", referenced from:
objc-class-ref in GoogleSignIn(GIDStoreKit.o)
"_SKStoreProductParameterITunesItemIdentifier", referenced from:
l003 in GoogleSignIn(GIDStoreKit.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Add
StoreKit.frameworkto your Target's Linked Frameworks and Libraries.Also double check that
AddressBook.frameworkandSystemConfiguration.frameworkare also linked.