2016-08-03 100 views
1

我一直在這個小時現在,我不明白什麼是錯的。我仔細跟蹤了Google羣集iOS集羣設置,但不管我做什麼都行不通。我收到此錯誤:谷歌地圖iOS的實用程序與谷歌地圖缺失GMSGeometryUtils.h

.../Pods/Google-Maps-iOS-Utils/src/Clustering/Algo/GMUNonHierarchicalDistanceBasedAlgorithm.m:22:9:未找到'GoogleMaps/GMSGeometryUtils.h'文件

我已經安裝了以下內容:

Using Alamofire (3.4.1) 
Using Google-Maps-iOS-Utils (1.0.0) 
Using GoogleMaps (1.9.2) 

波德文件:

source 'https://github.com/CocoaPods/Specs.git' 
platform :ios, '8.3' 
use_frameworks! 

pre_install do |installer| 
     def installer.verify_no_static_framework_transitive_dependencies; end 
    end 
target 'Happevents' do 
    pod 'GoogleMaps' # Objective-C pod 
    pod 'Google-Maps-iOS-Utils' # Objective-C pod 
    pod 'Alamofire', '~> 3.4' # Swift pod 
end 
+1

有一件事我發現是,它是迅速的相關問題,如果我刪除use_frameworks!和Alamofire,然後錯誤dissapiers。 – mirazasx

回答

0

我安裝谷歌,地圖-IOS-utils的在我的項目由吊艙INSTAL特徵研。請更新您的POD文件

target 'Happevents' do 
pod 'GoogleMaps' # Objective-C pod 
pod 'Google-Maps-iOS-Utils', :git => 'https://github.com/googlemaps/google-maps-ios-utils' 
pod 'Alamofire', '~> 3.4' # Swift pod 

+0

它給出了一個錯誤:[!]用Swift編寫的Pod只能被集成爲框架;將'use_frameworks!'添加到您的Podfile或目標選擇使用它。正在使用的Swift Pod是:Alamofire – mirazasx

0

您應該從POD文件中刪除use_frameworks!