Skip to content
This repository has been archived by the owner on May 22, 2022. It is now read-only.

cocopods cannot update #17

Closed
raiks123 opened this issue May 8, 2018 · 12 comments
Closed

cocopods cannot update #17

raiks123 opened this issue May 8, 2018 · 12 comments

Comments

@raiks123
Copy link

raiks123 commented May 8, 2018

[!] CocoaPods could not find compatible versions for pod "AliyunSlsObjc":
In Podfile:
AliyunSlsObjc (~> 1.1.6)

Specs satisfying the AliyunSlsObjc (~> 1.1.6) dependency were found, but they required a higher minimum deployment target.

@lujiajing1126
Copy link
Owner

please check your Podfile

make sure that the minimum deployment target version >= 8.0

platform :ios, '8.0'

target 'SomeTarget' do
  # Pods for AliyunLogObjc
  pod 'AliyunSlsObjc', '~> 1.1.6'
end

@raiks123
Copy link
Author

raiks123 commented May 8, 2018

Thank you for your reply,but there is still a mistake:
-> Installing AliyunSlsObjc (1.1.6)

Git download
Git download
$ /usr/bin/git clone https://github.com/lujiajing1126/AliyunLogObjc.git
/var/folders/vl/t2rvj5w55wlbbpqvt0507jcc0000gn/T/d20180508-2467-1hg6xz1
--template= --single-branch --depth 1 --branch 1.1.6
Cloning into '/var/folders/vl/t2rvj5w55wlbbpqvt0507jcc0000gn/T/d20180508-2467-1hg6xz1'...
Note: checking out '52995a8bccfb4bd43c2439a2302fd7e2eaa47912'.

 You are in 'detached HEAD' state. You can look around, make experimental
 changes and commit them, and you can discard any commits you make in this
 state without impacting any branches by performing another checkout.
 
 If you want to create a new branch to retain commits you create, you may
 do so (now or later) by using -b with the checkout command again. Example:
 
   git checkout -b <new-branch-name>

Running prepare command
$ /bin/bash -c set -e protoc -I "./AliyunLogObjc"
--objc_out="./AliyunLogObjc/serde" "./AliyunLogObjc/sls.proto"
/bin/bash: line 2: protoc: command not found
[!] /bin/bash -c
set -e
protoc -I "./AliyunLogObjc" --objc_out="./AliyunLogObjc/serde" "./AliyunLogObjc/sls.proto"

/bin/bash: line 2: protoc: command not found

@lujiajing1126
Copy link
Owner

You should install google/protobuf

For macOS, you can use homebrew

$ brew install protobuf

@raiks123
Copy link
Author

raiks123 commented May 8, 2018 via email

@liuzhaozhen
Copy link

[!] Unable to find a specification for AliyunSlsObjc (~> 1.1.6) 已经有了protobuf

@lujiajing1126
Copy link
Owner

@liuzhaozhen 更新spec试试?

@liuzhaozhen
Copy link

@lujiajing1126 pod cache list 里没有缓存,不太明白您指的 spec ,没有用到这个呀

@liuzhaozhen
Copy link

我还是不明白。我的目的是像平常一样podfile 种增加“pod al.....”,然后执行就可以了。
为什么涉及到了 spec 呢。

@GavinKangDeveloper
Copy link

你好,我在使用 CocoaPods pod 'AliyunSlsObjc' 集成的时候,报了以下错误

[!] /bin/bash -c
set -e
protoc -I "./AliyunLogObjc" --objc_out="./AliyunLogObjc/serde" "./AliyunLogObjc/sls.proto"

/bin/bash: line 2: protoc: command not found

@lujiajing1126
Copy link
Owner

@PigKang 安装一下protobuf

@LMsowhat
Copy link

Thanks!It’s done!

在 2018年5月8日,下午4:15,Lu Jiajing @.***> 写道: You should install google/protobuf https://github.com/google/protobuf For macOS, you can use homebrew $ brew install protobuf — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#17 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AiaUK67-hSazv3_CMbqMDUog1eKRsGuNks5twVQSgaJpZM4T1_dc.

我安装了protobuf还是不行,你是怎么做的

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

No branches or pull requests

5 participants