Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

swift examples dont compile due to error with boringSSL pod #39

Closed
Daij-Djan opened this issue Apr 4, 2017 · 5 comments
Closed

swift examples dont compile due to error with boringSSL pod #39

Daij-Djan opened this issue Apr 4, 2017 · 5 comments

Comments

@Daij-Djan
Copy link

Daij-Djan commented Apr 4, 2017

hi,
the swift example doesnt compile due to error with boringSSL pod

./Pods/BoringSSL/include/openssl/module.modulemap:1:20: Redefinition of module 'openssl'

the installation:

Installing !ProtoCompiler (3.0.2)
Installing !ProtoCompiler-gRPCPlugin (1.0.2)
Installing BoringSSL (7.0)
Installing Protobuf (3.2.0)
Installing gRPC (1.0.2)
Installing gRPC-Core (1.0.2)
Installing gRPC-ProtoRPC (1.0.2)
Installing gRPC-RxLibrary (1.0.2)
Installing googleapis (0.0.1)
Generating Pods project
@Daij-Djan
Copy link
Author

applies to Speech-gRPC-Streaming sample as well as the stickynotes demo

@Daij-Djan Daij-Djan changed the title swift example doesnt compile due to error with boringSSL pod swift examples dont compile due to error with boringSSL pod Apr 4, 2017
@alexiscreuzot
Copy link

alexiscreuzot commented Apr 4, 2017

In Xcode 8.3 framework declarations need to have the same filename as Framework. BoringSSL pod only names it modulemap.modulemap.

So solution is to change
Pods/BoringSSL/include/openssl/module.modulemap
to
Pods/Target Support Files/BoringSSL/BoringSSL.modulemap.

Also commenting the content seems to work (and doesn't break pod install)

@Daij-Djan
Copy link
Author

thanks!

@derpoliuk
Copy link
Contributor

This did work for me without changing module.modulemap: #4 (comment)

@jianming
Copy link

kirualex, can you explain more about the solution? I saw the Pods/Target Support Files/BoringSSL/BoringSSL.modulemap is auto generated.

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

4 participants