2017-02-24 47 views
1

我是iOS新手,我面臨着Google地圖的問題。我正在使用Pod。<GoogleMaps/GoogleMaps.h>目標C中找不到文件

source 'https://github.com/CocoaPods/Specs.git' 
target 'EmployeeConnectOCS' do 
    pod 'GoogleMaps' 
    pod 'GooglePlacePicker' 
    pod 'GooglePlaces' 
end 

它也安裝成功。我的項目工作正常,但現在它顯示:

<GoogleMaps/GoogleMaps.h> file not found 

我試過在互聯網上的東西,但沒有什麼可以幫助我。 Google框架文件已經存在於項目中,但它顯示錯誤,我不理解這個問題。

它在項目中存在的圖像:

enter image description here

而我的其他鏈接標誌的文件是

enter image description here

enter image description here

顯示這樣

[!] 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. 

enter image description here

+0

評論是不適合擴展討論;此對話已被[轉移到聊天](http://chat.stackoverflow.com/rooms/136689/discussion-on-question-by-muju-googlemaps-googlemaps-h-file-not-found-in-objec) 。 –

回答

1

您忘了將項目名中Podfile, 更換你的PodFile代碼與本

source 'https://github.com/CocoaPods/Specs.git' 
target 'EmployeeConnectOCS' do 
pod 'GoogleMaps' 
pod 'GooglePlacePicker' 
pod 'GooglePlaces' 
end 

改變PodFile後,更新你PodFile更新命令。 希望它的工作。

+0

我寫了ProjectName來添加代碼聽到。 EmployeeConnectOCS已經寫在那裏。 – Muju