Skip to content
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

Executable does not run on CircleCI #174

Closed
jschmid opened this issue Oct 28, 2015 · 2 comments
Closed

Executable does not run on CircleCI #174

jschmid opened this issue Oct 28, 2015 · 2 comments

Comments

@jschmid
Copy link
Contributor

jschmid commented Oct 28, 2015

This is most likely related to an issue in SwiftGen: SwiftGen/SwiftGen#35

The machines on CircleCI have Xcode installed at a path different than the regular one.

When running, the executable does not find some libs an fails. You can see an output here. I don't know exactly what did @AliSoftware to fix it, but I guess the same fix will apply here.

@AliSoftware
Copy link
Contributor

What I did to fix it is that I simply copied the Swift runtime dylibs alongside my binary, using xcrun install-stdlib-tool, then removed Xcode.app from my executable @rpath and add the relative path to the Swift runtime dylibs I copied as @rpath instead.

See https://github.com/AliSoftware/SwiftGen/blob/master/Rakefile#L97-L101 + https://github.com/AliSoftware/SwiftGen/blob/master/Rakefile#L85

@jpsim
Copy link
Collaborator

jpsim commented Nov 2, 2015

Looks like the CircleCI VMs don't have write permissions in /usr/local/bin, so use brew install --prefix {writeable location}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants