我已经在我的Mac电脑上安装了cocoapods。
Cocoapods
$ pod --version
1.9.3
$ which pod
/Users/user/.rbenv/shims/pod
$ which gem
/Users/user/.rbenv/shims/gem
$ which ruby
/Users/user/.rbenv/shims/ruby
问题
但是,如果我添加了特定于设备的代码,比如我设置了firebase或添加了geolocator插件,然后单击Android Run绿色按钮,我总是得到以下错误:
Launching lib/main.dart on i
下面是我在这个项目中使用的podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!
pod 'AFNetworking', '~> 2.0'
pod 'GoogleMaps'
pod 'MONActivityIndicatorView'
pod 'NYXImagesKit'
pod 'MagicalRecord'
pod '
这是我的Podfile
# Uncomment this line to define a global platform for your project
# platform :ios, '10.0'
# Pods for BandUJam
target 'BandUJam' do
pod 'Masonry'
pod 'SDWebImage'
pod 'VODUpload'
pod "AFNetworking",'~> 3.1.0'
我运行的是XCode 7、Swift 2.0、iOS 9。
我想使用Cocoapods在我的项目中安装Alamofire。我做了以下工作:
gem install cocoapods
pod setup
pod init
已将Podfile更新为:
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
use_frameworks!
target 'JSONeg' do
pod 'Alamofire', :bran
我无法在我的系统中安装任何吊舱。因此,我从我的Mac中删除cocoapods,然后重新安装它。进程是成功的,但是当我运行命令pod init时,在终端中出现了以下错误:
`verify_minimum_git_version!': [!] You need at least git version 1.8.5 to use CocoaPods (Pod::Informative)
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.1/lib/cocoapods/command.rb:49:in `run'
from /Librar
我试图将谷歌分析整合到我的项目中,但我很惊讶它现在要求cocoapods安装google分析软件。
我在这里跟踪了这些文档:
我在终端上调用pod init,然后我用podfile编辑了
# Uncomment this line to define a global platform for your project
# platform :ios, '6.0'
target 'Unity-iPhone' do
pod 'Google/Analytics', '~> 1.0.0'
end
target '
我需要安装cocoapods进行youtube集成,我参考了这个链接
这是我的文件
//////////////////////////////////////////
# Uncomment this line to define a global platform for your project
# platform :ios, '7.0'
target 'testyoutube' do
pod "YouTube-Player-iOS-Helper", "~> 0.1"
end
t
我在更新了我的pod install后运行了Podfile,LeanCloud吊舱没有安装,我收到了以下消息:
分析依赖!只有满足下列要求的预发行版本:
‘'LeanCloud','>= 0’
您应该显式指定版本,以安装预发布版本。
下面是我的Podfile的样子:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'todolist' do
# Comment the ne
我的Podfile看起来像这样
platform :ios, '11.2'
target 'live-quiz' do
use_frameworks!
pod 'Fabric'
pod 'Crashlytics'
pod 'Kingfisher'
pod 'Alamofire'
pod 'youtube-ios-player-helper'
pod 'Firebase/Core'
pod 'Fi
我有点小问题。当我尝试使用来自firebase的auth示例项目部署unity3d应用程序时,我得到了这个错误"error building Player: iOS framework addition failed due to a CocoaPods installation failure",但我已经正确地安装了cocoapods,我甚至卸载并重新安装了它。我只在auth项目中得到这个错误,而不是在数据库中。我尝试使用终端使用pod init而不是unity将cocoapods添加到项目中,但似乎什么都不起作用
我将我的macOS更新为High,现在通过iOS应用程序中的cocoapods安装依赖项。但我面临以下错误。
XXXXXXXXX:MyProject CompanyName$ pod update
-bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory
比我试过的
Zubair-mac-mini:~ sdsol$ gem install cocoapods
ERROR
我有一个应用程序,有两个libray安装cocoapods,Braintree和GoogleAnalytics。我要做的是把Braintree从我的项目中删除。这是我的项目根目录中的Podfile:
# Uncomment this line to define a global platform for your project
# platform :ios, '7.0'
target 'MyApp' do
pod 'Braintree'
pod 'Google/Analytics'