-
Notifications
You must be signed in to change notification settings - Fork 824
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
Brew install does not currently work #51
Comments
May be related to having Xcode 9 GM installed. |
I had the same problem with xcode9, it works with xcode8
|
Yes, it won't build with Xcode 9 if that's your default. I'll update to Swift 4 hopefully in the next couple of days |
Swift 4 upgrade implemented by #52 |
Just a note @daniel-beard, if you want to install a working Swift 4 version before the next release you can install from master:
|
I've released 1.0.0 with Swift 4 support, but this still seems to be an issue. Does anyone have any ideas on how to fix this, as I can't find any information about the error? |
@yonaskolb I ran through similar issues when I tried to install xcode using Homebrew. I solved by adding the flag brew install xcodegen --no-sandbox Not sure about why the flag is needed though @yonaskolb |
Thanks @pepibumur! That does indeed seem to fix the issue, strange... |
Cool @yonaskolb |
I noticed this in the Swift 4 release notes:
I hadn't seen this mentioned before. Doesn't seem like there was a proposal for this. Still not sure how this affects homebrew installation |
@yonaskolb, I think they prevent that people run code in the |
@yonaskolb : I ran:
and that fixed the "sandbox-exec: sandbox_apply_container: Operation not permitted" error. But I am still seeing the homebrew error, which causes XcodeGen to not install. Here is the output:
|
@ehyche, I just noticed that too actually. It was working before but now that error occurs. Nothing has changed that I can see between 1.0.1 and 1.1.0. Maybe a homebrew update broken something?
|
Looks like it is related (I think) to the custom tap that is used: Homebrew/brew#2733 |
So, seemingly it's a brew-side bug and we have to wait until next version of brew...? |
Yeah, I'm sure it it's an Xcode 9, homebrew or formula problem. It might be fixed with a homebrew or macOS update? |
Hi, I'm one of the Homebrew maintainers. You need to run You should not run |
Ah, that totally makes sense... |
For an example, see Homebrew/homebrew-core#18456. |
Makes sense. Thanks, @ilovezfs for clarifying it. I've updated it to not use the sanbox flag with Homebrew. |
Fantastic, thank you @ilovezfs! |
I found this @yonaskolb on this link:
I think it might be related |
Yeah I believe that's what caused it |
Seems now on 1.1.0 this is fixed by those workaround commits. Successfully installed |
I'm getting the same error with 1.9.0 version
It doesn't happen with v1.8.0
It seems also that the tag version 1.9.0 point actually to v1.8.0 |
@jalopezcar please provide output of |
I guess that's the reason for yonaskolb#51 (comment), I haven't modified original pull request after new discoveries found in discussion yonaskolb#283 (primarily - that it is not Xcode 9.3 issue, but issue caused by Xcode and CLT installed in the same time). This patch modifies ENV only if CLT is installed. I've checked it against Xcode + CLT and it worked fine, it'll be great if someone can confirm that this one works on Xcode only system. You can do that by running `brew edit xcodegen` and after patching `brew reinstall xcodegen`
@jalopezcar can you see if the formula on master fixes your issue? |
I still get the same error
|
@jalopezcar ok, that's a different issue. You use Xcode 9.2 while |
@yonaskolb maybe it's time to use bottles instead of building? I can see that |
@vhbit There’s no reason that we don’t have an official formula yet. Back when xcodegen started it wasn’t allowed for maintainers to submit the formula to homebrew. I don’t believe that’s the case anymore, but I just haven’t gotten around to it. Obviously I use Mint 😉 |
I don't think they'll like workarounds I've put there 😄 but I'll try soon. |
Hello guys! I'm facing the same problem :( Tried with This is my
|
@agurodriguez your error looks like you’re not compiling with Xcode 9.3, as it’s complaining about Swift 4.1’s compactMap not being found |
You're totally right. Updated Xcode to 9.3 and the problem went away. Thank you! |
Using the instructions from the README I currently get this:
The text was updated successfully, but these errors were encountered: