框架未找到GoogleMapsCore错误

Sam*_*ing 8 xcode frameworks google-maps

我在我的项目中使用了cocoapods,我在我的podfile中安装了googlemaps(2.5.0)和googleplaces(2.5.0)(我已经安装了'pod install').

但是,当我尝试构建时,我收到此错误:

ld: framework not found GoogleMapsCore
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)

我在Build Settings中将'Build Active Architecture Only'更改为NO.我也在我的project.xcworkspace而不是我的project.xcodeproj文件中.我甚至尝试过改变我的有效架构,但这些都没有用.

注意,在我的工作区Project Navigator中,由于某种原因,我的project.xcodeproj文件为红色,这可能会有所帮助.project.xcodeproj通常永远不会有红色.

Sam*_*ing 18

最后解决方案:

pod deintegrate 
pod install
Run Code Online (Sandbox Code Playgroud)

我不得不重新放弃我的Git项目(因为我尝试了太多的解决方案来回溯新的警告和错误)然后我在终端中执行了上述命令.

  • 最后是一个简单的解决方案 (2认同)