尝试将GooglePlacesPicker添加到Swift Project时发生Complie错误

时间:2018-09-25 03:12:08

标签: ios swift google-maps-sdk-ios

我正在尝试将GooglePlacesPicker添加到我的应用程序。我将以下行添加到我的podfile中:

pod 'GooglePlacesPicker'

并运行:

pod install

将吊舱安装到我的项目中。但是,当我在将GooglePlacesPicker pod添加到我的项目后尝试构建该项目时,我得到:

Argument of '#selector' refers to instance method 'placeTextFieldDidChange()' that is not exposed to Objective-C
Add '@objc' to expose this instance method to Objective-C

此错误似乎存在于Google的一个文件中:AlertSelectPlaceController.swift。需要明确的是,这不是我创建的文件,它似乎是随Pod一起提供的。

所以我可以点击“修复”按钮并添加@objc标志,但是它是一个锁定文件,我真的不想弄乱Google的代码(我认为它很好)。

我尝试根据另一个StackOverflow答案更新我的API密钥,但是没有运气...

有什么想法吗?

编辑:这对我来说是爆炸功能:

enter image description here

0 个答案:

没有答案
相关问题