Swiftgen: Release binary for ARM (Apple Silicon)

Created on 3 Dec 2020  ยท  16Comments  ยท  Source: SwiftGen/SwiftGen

It'd be nice if an arm64 or a universal binary is provided for the latest release.

Most helpful comment

@mudithsilva That's all fine and dandy, but I do not want to use Mint ๐Ÿ‘๐Ÿป

All 16 comments

Depends on your installation method:

  • Cocoapods: not universal yet, will have to look into it.
  • SPM/Mint: should already be supported, as it's compiled on your device
  • Homebrew: impossible to do until Homebrew itself has complete arm64 support.

Homebrew has been updated to 3.0.0 with support for Apple Silicon.

For me that's not working.

brew update
brew install swiftgen

Error: swiftgen: no bottle available!
You can try to install from source with:
  brew install --build-from-source swiftgen
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew's GitHub, Twitter or any other
official channels.

The Homebrew error is also mentioned in #811 and #820. Maybe these issues should be merged?

I confirm it works with Mint:

โžœ  ~ mint install SwiftGen/SwiftGen
๐ŸŒฑ Finding latest version of SwiftGen
๐ŸŒฑ Cloning SwiftGen 6.4.0
๐ŸŒฑ Resolving package
๐ŸŒฑ Building package
๐ŸŒฑ Copying resources for SwiftGen: templates, Resources/Stencil-Info.plist, Resources/StencilSwiftKit-Info.plist, Resources/SwiftGen-Info.plist, Resources/SwiftGenKit-Info.plist ...
๐ŸŒฑ Installed SwiftGen 6.4.0
๐ŸŒฑ Linked swiftgen 6.4.0 to /Users/<redacted>/.mint/bin

I confirm it works with Mint:

I've got error

~ % mint install SwiftGen/SwiftGen
๐ŸŒฑ Finding latest version of SwiftGen
๐ŸŒฑ Cloning SwiftGen 6.4.0
๐ŸŒฑ Resolving package
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
๐ŸŒฑ Encountered error during "swift package resolve". Use --verbose to see full output
๐ŸŒฑ  Failed to resolve SwiftGen 6.4.0 with SPM

@vani2 Do you have Xcode installed?

Yes, I had, but there was no selected CLT in settings. And it has built my project w/o any error though. After selecting, SwiftGen was installed OK. Thanks.

@vani2 Where I can find this CLT settings?

@vani2 Where I can find this CLT settings?

Screenshot 2021-04-07 at 13 02 57

@vani2 thanks a lot!

I'm running into the same issue:

โฏ brew install swiftgen
Error: swiftgen: no bottle available!
You can try to install from source with:
  brew install --build-from-source swiftgen
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew's GitHub, Twitter or any other
official channels.

For your information, I did brew update (3.1.7) and brew upgrade before trying to install.

I checked in Mint installation and it's working fine on Apple Silicon.
Try:-

To install Mint:- brew install mint
To Install SwiftGen:- sudo mint install SwiftGen/SwiftGen
To manually run the SwiftLint and SwiftGen (navigate to project folder) :- mint run swiftgen

@mudithsilva That's all fine and dandy, but I do not want to use Mint ๐Ÿ‘๐Ÿป

Any update on this topic?

Any update on this? It would be great to have this binary released :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bengilroy picture bengilroy  ยท  3Comments

gereons picture gereons  ยท  5Comments

BastiaanAndriessen picture BastiaanAndriessen  ยท  4Comments

AliSoftware picture AliSoftware  ยท  6Comments

embassem picture embassem  ยท  3Comments