cocoapods-generate icon indicating copy to clipboard operation
cocoapods-generate copied to clipboard

pod gen doesn't respect platform specific dependencies

Open mikehaney24 opened this issue 6 years ago • 3 comments

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`.

mikehaney24 avatar May 17 '19 17:05 mikehaney24

Thanks for the issue! Would you be able to share a podspec we can use to reproduce the issue? Thanks!

segiddins avatar May 24 '19 23:05 segiddins

Here's an integration test that demonstrates the issue: https://github.com/paulb777/cocoapods-generate/commit/ea11dc16634b03a8c976b21dcc78a6f42a38620a

paulb777 avatar May 26 '19 23:05 paulb777

Looks to be a CocoaPods bug - https://github.com/CocoaPods/CocoaPods/issues/8855

paulb777 avatar May 27 '19 15:05 paulb777