-
Notifications
You must be signed in to change notification settings - Fork 728
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v0.5.0 fails on CircleCI #35
Comments
Version 0.5.0 use some third-party frameworks (like Commander to parse the command-line, and in future versions I'll also use other frameworks like Stencil to add template support, etc). That's probably why you have that "Library not loaded" error, because the dynamic linker ( How did you install the app in your CircleCI server?
|
Thank you for your reply. I am using Homebrew. Would you like me to try other methods? |
So you ran Homebrew directly on the CircleCI VM, right? Does your CircleCI have Xcode 7, if so what's its path? I'd be interested to see the output of Also useful would be the output of your |
I created a test project. You can see the results there: https://circleci.com/gh/utribo/test-swiftgen-circleci/, particularly there: https://circleci.com/gh/utribo/test-swiftgen-circleci/8 |
Hmmm so when SwiftGen was built by Homebrew, it built it with That's probably because Homebrew built a bottle (pre-built binary that their CI build on its own and package in a One quick way to solve it yourself is to add the path to Xcode (the one path on CircleCI I mean) to rpath=$(dirname "$(dirname "$(xcrun -find swiftc)")")/lib/swift/macosx
install_name_tool -add_rpath "$rpath" "$(which swiftgen)" I'll try to find a way to some this in the homebrew Formula so that the homebrew installation would automatically fix it after installing the bottle, if it can be done, but in the meantime that could allow you to workaround the issue. |
Thanks for the thorough answer. On Thu, Oct 15, 2015, 21:43 AliSoftware notifications@github.com wrote:
|
This should be fixed once Homebrew/legacy-homebrew#45008 is merged by the Homebrew team. I'm gonna close this issue now that a fix is pending release — but feel free to reopen in case it still doesn't work on your CircleCI even after the fix is merged. |
The build passes now. Thanks! 👍 |
Thx for the feedback 👍 |
I use SwiftGen in CircleCI to make sure developers do not forget to run swiftgen on their own dev machine before committing. (I run
swiftgen
and check if the files have been modified)v0.4.4 worked fine but since v0.5.0 I get an error. I of course updated the command to run. It works fine on my machine.
I don't know what the changes are in v0.5.0 so I don't understand where the issue comes from. Hopefully you do 😉
The text was updated successfully, but these errors were encountered: