Skip to content

Conversation

@glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Aug 3, 2020

Motivation:

The "gRPC-Core" cocoapod specifies its module name as "grpc"; this is
unfortunate because we also specify our module name as "GRPC". This is
problematic if both are used in the same dependency graph. In CocoaPods
module_name is "name to use for the framework / clang module which
will be generated". We therefore end up with two "GRPC" frameworks.

If the module name is not specified it will default to the spec name
instead.

Modifications:

  • Don't generate a custom module name when generating Podspecs
  • Delete trailing whitespace

Result:

Motivation:

The "gRPC-Core" cocoapod specifies its module name as "grpc"; this is
unfortunate because we also specify our module name as "GRPC". This is
problematic of both are used in the same dependency graph. In CocoaPods
`module_name` is "name to use for the framework / clang module which
will be generated". We therefore end up with two "GRPC" frameworks.

If the module name is not specified it will default to the spec name
instead.

Modifications:

- Don't generate a custom module name when generating Podspecs
- Delete trailing whitespace

Result:

- Resolves grpc#905
- Generated frameworks match Podspec names (i.e. "gRPC-Swift" gets
  converted to "gRPC_Swift")
@glbrntt glbrntt requested a review from MrMage August 3, 2020 09:38
@glbrntt glbrntt added cocoapods Relates to CocoaPods semver/none No version bump required. labels Aug 3, 2020
@glbrntt glbrntt merged commit fa00728 into grpc:master Aug 3, 2020
@glbrntt glbrntt deleted the gb-cocoapods branch August 3, 2020 10:21
@IgorRosocha IgorRosocha mentioned this pull request Aug 10, 2020
glbrntt added a commit to glbrntt/grpc-swift that referenced this pull request Aug 10, 2020
…rpc#916)"

Motivation:

- grpc#916 was really ill thought through and breaks Cocoapods support

Modifications:

- Revert commit fa00728.

Result:

Cocoapods is less broken.
glbrntt added a commit that referenced this pull request Aug 10, 2020
…916)" (#930)

Motivation:

- #916 was really ill thought through and breaks Cocoapods support

Modifications:

- Revert commit fa00728.

Result:

Cocoapods is less broken.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cocoapods Relates to CocoaPods semver/none No version bump required.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants