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

Support for pod. #45

Closed
kj3104 opened this issue Apr 25, 2017 · 16 comments · Fixed by #207
Closed

Support for pod. #45

kj3104 opened this issue Apr 25, 2017 · 16 comments · Fixed by #207

Comments

@kj3104
Copy link

kj3104 commented Apr 25, 2017

When grpc-swift support for pod?
master branch podspec name have "incomplete".

@takemiyamakoto
Copy link

It would be great to have this soon, as we are using it in Hyperledger Iroha.

@johndpope
Copy link
Contributor

there is a swift build package / but it has problems with linking libz.tbd - until this resolves - this is a blocker.

@johndpope
Copy link
Contributor

@luca3104 in your podfile you can specify a specific git commit

eg.
pod 'SwiftGRPC', :git => '[email protected]:grpc/grpc-swift.git', :commit => '6022ef1'

try that

@kj3104
Copy link
Author

kj3104 commented Apr 29, 2017

Thanks.

@sashabaranov
Copy link

@johndpope this yields redefenition of module 'openssl' in BoringSSL to me.

@sashabaranov
Copy link

Probably due to old version of BoringSSL?

Analyzing dependencies
Pre-downloading: `SwiftGRPC` from `[email protected]:grpc/grpc-swift.git`, commit `6022ef1`
[!] Unable to satisfy the following requirements:

- `BoringSSL (~> 8.2)` required by `Podfile`
- `BoringSSL (~> 7.0)` required by `gRPC-Core/Implementation (1.0.2)`

@DamirDiz-zz
Copy link

Using the Swift Package Manager is really a nightmare. pod support would be amazing

@johndpope
Copy link
Contributor

Presumably from title of cocoapod somethings missing as it's 'incomplete'. so these helpers may get nowhere. I haven't used this - am using SPM. these are some stabs in the dark.
you could try

pod update

does it help to force these lines into podfile?
pod 'BoringSSL', '~> 8.2'
pod 'SwiftGRPC', :git => '[email protected]:grpc/grpc-swift.git', :commit => '6022ef1'

(lastly - if all that don't work - you could try updating brew / cocoapods - beware of changes in osx)
https://github.com/johndpope/updater-for-macos

@0xSalman
Copy link

did anyone get it to work with pod?

@ghost
Copy link

ghost commented Aug 13, 2017

Any plans to fix this? Excited about integrating this into our project, however it has been a painful process.

@ghost
Copy link

ghost commented Aug 15, 2017

bump!

I think most issue is related to version dependence in podSpec for Core-GRPS. I tries to bump bump the version so that I can install newer version of BoringSSL but that also cause a lot of issue with the other dependencies.

Would be great if we can have this fixed

@kj3104
Copy link
Author

kj3104 commented Sep 4, 2017

How is the progress ? they don't have plans for it ?

@bootstraponline
Copy link
Contributor

Cocoapods support would be amazing. apple/swift-protobuf is supporting Cocoapods already.

@bootstraponline
Copy link
Contributor

Summary of the issue

SwiftGRPC-incomplete.podspec references a very old gRPC-Core version. Updating to the latest gRPC-Core (1.6.0) helps. There are still compile errors on Xcode 9 though:

xcode_9_grpc_swift

Cocoacods is completely broken with grpc-swift sadly. 😭

@vanshg
Copy link

vanshg commented Nov 20, 2017

Is there any timeline for when CocoaPods will be officially supported?

@MrMage
Copy link
Collaborator

MrMage commented Feb 19, 2018

I have prepared a podspec that seems to work for me. See #111 (comment) on how to try it out. (Also, I'd suggest closing this as a duplicate of #111.)

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

Successfully merging a pull request may close this issue.

9 participants