CocoaPods“目标具有包括静态二进制文件的传递依赖项”。 [英] CocoaPods "target has transitive dependencies that include static binaries"

查看:154
本文介绍了CocoaPods“目标具有包括静态二进制文件的传递依赖项”。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将我在GitHub上找到的swift框架以及GoogleMaps,GooglePlaces都安装到我的Xcode项目中,但是由于某些原因,当我尝试安装pod文件时出现以下错误

I'm trying to install a swift framework I found on GitHub along with the GoogleMaps, GooglePlaces into my Xcode project but for some reason when I try to install the pod file its giving the following error


[!]'Pods-project1'目标具有传递性依赖项,包括静态二进制文件:(/ Users / user1 / Desktop / project1 / Pods / GoogleMaps / Base / Frameworks /GoogleMapsBase.framework、/Users/user1/Desktop/project1/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework和/Users/user1/Desktop/project1/Pods/GoogleMaps/Maps/Frameworks/GoogleMapsCore.framework)

[!] 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文件:

Here is my Pod File I'm trying to install:

#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

这也是指向我正在尝试的快速框架的链接安装:
https://github.com/Orderella/PopupDialog

Also here is the link to the swift framework that I'm trying to install: https://github.com/Orderella/PopupDialog

我没有做什么,我已经尝试了多种方法,但似乎都不起作用。任何帮助将不胜感激。

I don't what to do, I've tried multiple things but non of them seem to work. Any help would be appreciated.

推荐答案

这是因为当您使用 Google-Maps-iOS-Utils时,它不是动态库用过 use_frameworks!在您的Podfile中。不幸的是,对于这个库,我们需要为Swift项目手动安装它。您可以在此处查看详细说明:

It is because "Google-Maps-iOS-Utils" is not a dynamic library while you used "use_frameworks!" in your Podfile. Unfortunately, for this library, we need to install it manually for a Swift project. You can check detailed explanation here:

https://github.com/googlemaps/google-maps-ios-utils/blob/master/Swift.md

这篇关于CocoaPods“目标具有包括静态二进制文件的传递依赖项”。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆