mono0926 / LicensePlist

A license list generator of all your dependencies for iOS applications
https://www.slideshare.net/mono0926/licenseplist-a-license-list-generator-of-all-your-dependencies-for-ios-applications
MIT License
2.43k stars 146 forks source link

Fix build tool plugin for Intel Macs #214

Closed vladvlasov256 closed 1 year ago

vladvlasov256 commented 1 year ago

Description

On Intel Macs Xcode show "Bad CPU type in executable" error when running the SPM plugin. See issue #213.

Analysis

The binary artifact in the latest release isn't a fat binary:

lipo -detailed_info ./bin/license-plist 
input file ./bin/license-plist is not a fat file
Non-fat file: ./bin/license-plist is architecture: arm64

The root cause of the issue is spm_artifactbundle_macos command in Makefile. It inherits build command. But build command produces binaries only for the current architecture.

Solution

Use build_portable as a parent of spm_artifactbundle_macos command.

mono0926 commented 1 year ago

@vladvlasov256

Thanks, released: https://github.com/mono0926/LicensePlist/releases/tag/3.24.8