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

蓝咒 提交于 2020-01-05 12:55:52

问题


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)

回答1:


Add StoreKit.framework to your Target's Linked Frameworks and Libraries.

Also double check that AddressBook.framework and SystemConfiguration.framework are also linked.



来源:https://stackoverflow.com/questions/30835604/upgrading-from-google-sign-in-sdk-1-0-0-to-2-0-1-fails-to-compile-on-skstore-ref

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!