cocoapods-generate
cocoapods-generate copied to clipboard
pod gen doesn't respect platform specific dependencies
Given a podspec supporting multiple platforms but also with a platform-specific depa like s.ios.dependency 'SomeiOSSpecificDep', pod gen won't generate a podfile that has that platform information in it. Running pod gen will produce an error similar to
Generating MyLib in `gen/`
[!] The platform of the target `App-macOS` (macOS 10.11) is not compatible with `SomeiOSSpecificDep (1.0)`, which does not support `osx`.
Thanks for the issue! Would you be able to share a podspec we can use to reproduce the issue? Thanks!
Here's an integration test that demonstrates the issue: https://github.com/paulb777/cocoapods-generate/commit/ea11dc16634b03a8c976b21dcc78a6f42a38620a
Looks to be a CocoaPods bug - https://github.com/CocoaPods/CocoaPods/issues/8855