Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pod install 失败 #2

Open
stevenlfg opened this issue Mar 21, 2015 · 5 comments
Open

pod install 失败 #2

stevenlfg opened this issue Mar 21, 2015 · 5 comments

Comments

@stevenlfg
Copy link

/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.36.0/lib/cocoapods/user_interface/error_report.rb:13:in report': incompatible character encodings: UTF-8 and ASCII-8BIT (Encoding::CompatibilityError) from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.36.0/lib/cocoapods/command.rb:59:inreport_error'
from /Library/Ruby/Gems/2.0.0/gems/claide-0.8.1/lib/claide/command.rb:374:in handle_exception' from /Library/Ruby/Gems/2.0.0/gems/claide-0.8.1/lib/claide/command.rb:315:inrescue in run'
from /Library/Ruby/Gems/2.0.0/gems/claide-0.8.1/lib/claide/command.rb:303:in run' from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.36.0/lib/cocoapods/command.rb:46:inrun'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.36.0/bin/pod:44:in <top (required)>' from /usr/bin/pod:23:inload'
from /usr/bin/pod:23:in `

'

@limboy
Copy link
Owner

limboy commented Mar 23, 2015

我这里使用 cocoapods 0.36 正常,重装下试试?

@zhao520wei
Copy link

localhost:bizhi mac-root$ pod install
Updating local specs repositories

CocoaPods 1.0.0.beta.5 is available.
To update use: gem install cocoapods --pre
[!] This is a test version we'd love you to try.

For more information see http://blog.cocoapods.org
and the CHANGELOG for this version http://git.io/BaH8pQ.

Analyzing dependencies
Downloading dependencies
Installing AFNetworking (2.5.4)

[!] Error installing AFNetworking
[!] /usr/bin/git clone https://github.com/AFNetworking/AFNetworking.git /var/folders/cx/1_x9pk0s4858mb2n4c3_mqtm0000gn/T/d20160322-3055-1kfllrd --single-branch --depth 1 --branch 2.5.4 --recursive

Cloning into '/var/folders/cx/1_x9pk0s4858mb2n4c3_mqtm0000gn/T/d20160322-3055-1kfllrd'...
fatal: unable to access 'https://github.com/AFNetworking/AFNetworking.git/': Could not resolve host: github.com

[!] CocoaPods was not able to update the master repo. If this is an unexpected issue and persists you can inspect it running pod repo update --verbose
localhost:bizhi mac-root$ pod --version
0.39.0
localhost:bizhi mac-root$

@feng-tianyou
Copy link

我把后面的版本号全部去掉,加上target就成功了
但是我运行的时候出现这个错误
ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)
是还要依赖其他什么库吗?
我profile是这样的
platform :ios, '6.1'
inhibit_all_warnings!

target 'bizhi' do

pod 'AFNetworking'
pod 'SDWebImage'
pod 'ReactiveCocoa'
pod 'SVProgressHUD'
pod 'SVPullToRefresh'
pod 'ReactiveViewModel'
pod 'CHTCollectionViewWaterfallLayout'
pod 'JSONModel'
pod 'AFNetworking-RACExtensions'
pod 'Objection'

end

@aimulkhan
Copy link

Just go to "Build Phases" -> "Compile Sources" and look for duplicate of classes. and remove it....worked for me
screen shot 2017-05-30 at 10 13 36

@aimulkhan
Copy link

aimulkhan commented May 30, 2017

but permission is required to run it....would any body plz grant me permission to run it...i'm new to objective c and use it for learning purpose

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants