2016-08-03 104 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!