我正在尝试将我在 GitHub 上找到的 Swift 框架连同 GoogleMaps、GooglePlaces 安装到我的 Xcode 项目中,但出于某种原因,当我尝试安装 pod 文件时出现以下错误
[!] The 'Pods-project1' target has transitive dependencies that include static binaries: (/Users/user1/Desktop/project1/Pods/GoogleMaps/Base/Frameworks/GoogleMapsBase.framework, /Users/user1/Desktop/project1/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework, and /Users/user1/Desktop/project1/Pods/GoogleMaps/Maps/Frameworks/GoogleMapsCore.framework)
这是我要安装的 Pod 文件:
#Uncomment the next line to define a global platform for your project
#platform :ios, '9.0'
source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
target 'project1' do
pod 'GooglePlaces'
pod 'GoogleMaps'
pod 'Google-Maps-iOS-Utils'
pod 'PopupDialog'
end
这里还有我要安装的 swift 框架的链接: https://github.com/Orderella/PopupDialog
我不知道该怎么办,我尝试了很多方法,但似乎都不起作用。任何帮助将不胜感激。
最佳答案
这是因为“Google-Maps-iOS-Utils”不是动态库,而你使用了“use_frameworks!”在你的 Podfile 中。不幸的是,对于这个库,我们需要为 Swift 项目手动安装它。您可以在此处查看详细说明:
https://github.com/googlemaps/google-maps-ios-utils/blob/master/Swift.md
关于ios - CocoaPods "target has transitive dependencies that include static binaries",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42611599/