kronenthaler / mod-pbxproj

A python module to manipulate XCode projects
MIT License
1.2k stars 294 forks source link

again How to add one framework just want to build it output as a framework with my main proj #308

Closed flyingDandelionYD closed 3 years ago

flyingDandelionYD commented 3 years ago

Snip20210827_5

I see the api add one framework/library , it may not works

Thanks!!!

kronenthaler commented 3 years ago

I think i understand now what you want to achieve. This is my guess, you want to create a target (TFPaySDK) that produces a framework as an output.

For that, there is no one single command, nor i think it fits the purpose of this library.

Still you can do that manually, You would need to do a series of steps (from the top of my head):

The best way to know exactly what to do is to reverse engineer what Xcode is doing. Start with an empty project, copy it and keep it as your source. Use xcode to create the framework target, this will be your target. Then compare both source and target using a diff viewer. Then you will see what configs and objects will need to be created and linked together.

I hope it helps you to continue with your project.

flyingDandelionYD commented 3 years ago

Thanks, I may know how to make it !