cocoapods-packager
cocoapods-packager copied to clipboard
how to output a debug package by cocoapods-packager ?
hey there, i use the cmd < pod package xxx.podspec --force> to output a framework,it's release package even i set the build configuration to debug in Xcode by edit schema. And when i check < pod package --help > there is no option about how to output debug package. Any solution ? Thank you !
This isn't supported at the moment.
Any pointers on how to add support for this? We need it as well as other "variant" support so are willing to do some work.
@djMax Sure, thanks for offering to help.
There's a central place which calls xcodebuild
: https://github.com/CocoaPods/cocoapods-packager/blob/master/lib/cocoapods-packager/builder.rb#L264 — you could inject -configuration Debug
there.
Adding a new CLI option can be done here: https://github.com/CocoaPods/cocoapods-packager/blob/master/lib/pod/command/package.rb#L11
Let me know if you have additional questions.
@neonichu I am continuing @djMax 's work... it seems the current version takes the debug argument, but fails when I try to build and iOS-only podspec with configuration Debug. I hope you are active yet :) I have issued a PR to fix the error:
https://github.com/CocoaPods/cocoapods-packager/pull/192
Check dependencies No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=arm64 armv7 armv7s).