Comments (8)
That's probably because it has detected your Twitter name and want to troll you π
But seriously, when installed via brew
and especially if Homebrew did pour the "bottle" (= the precompiled version of swiftgen
directly downloaded via a .tar.gz
) instead of compiling it on your machine locally during installation, then swiftgen
will have a @rpath
set to some path inside /Applications/Xcode.app/β¦
so that's where it's gonna look for the Swift dylibs to load. Even if that version installed at that path is in fact Xcode 6.
I added a protection in SwiftGen's formula to only use the bottle if the path /Applications/Xcode.app
exist on your machine but didn't check that the version at that path was Xcode 7.0.1. I'll bet that's not the case for you and that's the cause of the SegFault because SwiftGen will then load Xcode 6's Swift libs instead of Xcode 7's ones, no matter what xcode-select -p
you have.
from swiftgen.
Could you rename your Xcode 7.0.1 to /Applications/Xcode.app
and try again?
from swiftgen.
Oh! The twitter handle irony π
I do have a symlink
pointing to 7.1
; don't know if that's the issue or if it should be pointing to 7.0.1
instead.
I'll try changing it anyways.
Xcode.app -> /Applications/Xcode-7.1.app
from swiftgen.
Changing the symlink
to 7.0.1
and Β«re-pouringΒ» the bottle fixed it π»
Don't know if 7.1
doesn't work for this or what Β―_(γ)_/Β―
I'm closing it. Thanks π
from swiftgen.
I don't like it. One more restriction when installing via homebrew.
I'll make a 0.5.1 that copies Swift libs over so it's independent of your Xcode install path and will hopefully solve this once and for all.
from swiftgen.
@esttorhe SwiftGen 0.5.1 just got merged into Homebrew; could you test it (with your symlink reset to 7.1 like when you had the issue) and tell if it fixed it?
Thx!
from swiftgen.
@AliSoftware just tested with the symlink back at 7.1
.
Uninstalled swiftgen
and reinstalled via homebrew
and is working now π
from swiftgen.
π
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
- [Homebrew] Error: swiftgen has been disabled because it does not build! HOT 10
- Apple privacy manifest support HOT 2
- SwiftGen Errors on Swift 6 HOT 5
- 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.