我是iOS的新手,我在使用谷歌地图方面遇到了问题。我正在使用Pod。
source 'https://github.com/CocoaPods/Specs.git'
target 'EmployeeConnectOCS' do
pod 'GoogleMaps'
pod 'GooglePlacePicker'
pod 'GooglePlaces'
end
它也成功安装。我的项目工作正常,但现在显示:
<GoogleMaps/GoogleMaps.h> file not found
我在互联网上尝试过的东西,但没有任何帮助我。谷歌框架文件已存在于项目中,但它显示错误,我不理解这个问题。
它存在于项目中,如图像:
我的其他链接标志文件是
显示如下
[!] The `EmployeeConnectOCS [Debug]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods-EmployeeConnectOCS/Pods-EmployeeConnectOCS.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The `EmployeeConnectOCS [Release]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods-EmployeeConnectOCS/Pods-EmployeeConnectOCS.release.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
答案 0 :(得分:1)
您忘记更改Podfile中的ProjectName, 用此
替换您的PodFile代码source 'https://github.com/CocoaPods/Specs.git'
target 'EmployeeConnectOCS' do
pod 'GoogleMaps'
pod 'GooglePlacePicker'
pod 'GooglePlaces'
end
更改PodFile后,将PodFile更新为更新命令。 希望它能起作用。