ios - CocoaPods "target has transitive dependencies that include static binaries"

标签 ios xcode google-maps cocoapods swift-framework

我正在尝试将我在 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/

相关文章:

swift - AppDelegate 窗口初始化大小不正确

ios - 谷歌地图地点选择器 iOS Swift

javascript - 如何在选择建议路线时获取从源地到目的地的所有纬度和经度

ios - MFMailComposeViewController打开然后关闭

iphone - 无法在 EKEvent 中编程开始日期

ios - 尝试从 iOS 将文件上传到 OneDrive。我的要求有什么问题?

ios - 核心数据查询值 "is not nil"未返回值等于 0 的对象

iphone - UITableView didSelectRowAtIndexPath : Not Working

c - 为什么 LLVM 不使用 Xcode 编译 pch 文件中类型定义的 C block ?

javascript - 使用带有数据库 javascript MySQL PHP 坐标的 google maps api 创建线