gurhub / surmagic

🚀 Command Line Tool to create XCFramework for multiple platforms in one shot!
MIT License
310 stars 43 forks source link

Xcode 12 Build Targets #5

Closed prin53 closed 3 years ago

prin53 commented 3 years ago

First of all, thank you for the script. 👍

I am using Xcode 12 and trying to build a universal framework. Before there was a single target for the Generic iOS Device, but now I have:

Screenshot 2020-09-27 at 10 12 58

The framework will contain only one selected target (either i386/x86_64 or arm64/arm), so I can run it on either simulator or device. How can I build it with both architectures on Xcode 12?

zhoulijun12315 commented 3 years ago

get the same problem

gurhub commented 3 years ago

Hi, this must be an issue with the new Xcode and need to be fixed, but for now, I don't have time to fix it. Anyway, I'll fix it as soon as possible this after busy days.

Meanwhile, don't hesitate to contribute ;) Solutions are welcome.

Best.

gurhub commented 3 years ago

Hi All,

I just updated the project name and the project itself. Now you can create a universal framework with a command-line tool called surmagic.

Please check the latest-release to install an XCFramework without hassle. Of course, read the README.md first.

You can start to use the command below to create the default directory and Surfile:

surmagic init

Also, don't forget to remove the previous script (universal.sh) from your Scheme's Archive > Post-actions.

Best