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

how to output a debug package by cocoapods-packager ?

Open crespoxiao opened this issue 9 years ago • 4 comments

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 !

crespoxiao avatar Nov 10 '15 14:11 crespoxiao

This isn't supported at the moment.

neonichu avatar Nov 10 '15 15:11 neonichu

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 avatar Feb 24 '16 03:02 djMax

@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 avatar Feb 24 '16 09:02 neonichu

@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).

snehanshuashar avatar Jan 08 '18 19:01 snehanshuashar