Comments (10)
@isgallagher this workaround worked.
Copying for other unfortunate devs:
curl -Lo /tmp/swiftgen.rb https://raw.githubusercontent.com/iMichka/homebrew-core/17ae00b4bf1640cc544eae5f6eec03775c09420b/Formula/swiftgen.rb && brew install /tmp/swiftgen.rb && rm /tmp/swiftgen.rb
from swiftgen.
Problem should be fixed once the homebrew-core PR gets merged 🤞
Sorry for the inconvenience.
from swiftgen.
brew install swiftgen
is part of our ci pipeline and I dont really want to make the curl solution
the permanent fix. Will this be resolved so we can use brew again ? I tried mint but I had issues using swiftgen afterwards.
from swiftgen.
brew install swiftgen
works now. Thanks
from swiftgen.
Try this. #1030 (comment)
from swiftgen.
@isgallagher this workaround worked.
Copying for other unfortunate devs:curl -Lo /tmp/swiftgen.rb https://raw.githubusercontent.com/iMichka/homebrew-core/17ae00b4bf1640cc544eae5f6eec03775c09420b/Formula/swiftgen.rb && brew install /tmp/swiftgen.rb && rm /tmp/swiftgen.rb
I've tried to replace
brew install swiftgen
with this command. However receiving an error and warning on the console:Error: Failed to load cask: /tmp/swiftgen.rb Cask 'swiftgen' is unreadable: wrong constant name #<Class:0x000000010ff17768> Warning: Treating /tmp/swiftgen.rb as a formula.
How can I resolve this issue?
Already installed? Try ... && brew reinstall /tmp/swiftgen.rb && ...
😉
from swiftgen.
We've replaced it with mint install.
brew install mint
mint install SwiftGen/SwiftGen
from swiftgen.
We've replaced it with mint install.
brew install mint
mint install SwiftGen/SwiftGen
I am not able to get mint's install to actually work.
SwiftGenCLI/resource_bundle_accessor.swift:11: Fatal error: could not load resource bundle: from /Users/removed/.mint/bin/SwiftGen_SwiftGenCLI.bundle or /private/var/folders/_8/cr5ngqns1n38s7l4tg3crv2m0000gn/T/mint/github.com_SwiftGen_SwiftGen/.build/arm64-apple-macosx/release/SwiftGen_SwiftGenCLI.bundle zsh: trace trap ~/.mint/bin/swiftgen
But it works when I use the curl brew install method.
from swiftgen.
@isgallagher this workaround worked.
Copying for other unfortunate devs:
curl -Lo /tmp/swiftgen.rb https://raw.githubusercontent.com/iMichka/homebrew-core/17ae00b4bf1640cc544eae5f6eec03775c09420b/Formula/swiftgen.rb && brew install /tmp/swiftgen.rb && rm /tmp/swiftgen.rb
I've tried to replace brew install swiftgen
with this command. However receiving an error and warning on the console:
Error: Failed to load cask: /tmp/swiftgen.rb
Cask 'swiftgen' is unreadable: wrong constant name #<Class:0x000000010ff17768>
Warning: Treating /tmp/swiftgen.rb as a formula.
How can I resolve this issue?
from swiftgen.
We've replaced it with mint install.
brew install mint
mint install SwiftGen/SwiftGen
Although this worked for me also, my project setup couldn't find the "swiftgen" command, even if I could run it from terminal. If you need specific homebrew installation, this worked for me:
1. disable homebrew's check update 'export HOMEBREW_NO_INSTALL_FROM_API=1', otherwise the installation will overwrite the file edited below
2. Manually change the repository file 'brew edit swiftgen', which will automatically edit the repository file using vim
3. find 'disable! date: "xxxx", because: xxxx', add # before it, comment out this line
4. ':wq' Save and exit edit
5. 'brew install swiftgen' to install
from swiftgen.
Related Issues (20)
- Unprintable ASCII character found in Swift Source Code HOT 1
- SVG images being ignored in assets HOT 1
- The SwiftGen configuration automatically substitutes fileprivate in the initialization of ColorAsset HOT 1
- Adding Extra parameter when running SwiftGen through Xcode HOT 1
- Error: `swiftgen.yml` is not a config file HOT 4
- String template is not able to generate a function with a string parameter and a plural int HOT 2
- Make `SwiftUI` types the default and not `UIKit` types. HOT 1
- Color Generated with SwiftUI HOT 2
- disable Font typealias? HOT 1
- Addition of .string file changes all previous strings usage HOT 1
- Ability to change Locale HOT 6
- Feature Request: Public access to either the fallback string or the ability to specify locale HOT 2
- Add ability to refer file name of JSON HOT 3
- Support for visionOS HOT 2
- Is this repo deprecated? HOT 4
- Add an XcodeBuiltToolPlugin for swiftgen HOT 5
- Apple privacy manifest support HOT 2
- SwiftGen Errors on Swift 6 HOT 10
- Subsequent builds after first build always fail
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiftgen.