从 Google 登录 SDK 1.0.0 升级到 2.0.1 无法在 SKStore 引用上编译

Upgrading from Google Sign-In SDK 1.0.0 to 2.0.1 fails to compile on SKStore references

按照说明将 Google 登录 SDK 在 https://developers.google.com/identity/sign-in/ios/sdk/ 上从 1.0.0 升级到 2.0.1 会导致以下编译错误。

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)

StoreKit.framework 添加到 Target 的 链接框架和库

还要仔细检查 AddressBook.frameworkSystemConfiguration.framework 是否也已链接。