Skip to content

fix(carthage): shell login#1179

Merged
yonaskolb merged 3 commits intoyonaskolb:masterfrom
StreamLayer:master
Mar 21, 2022
Merged

fix(carthage): shell login#1179
yonaskolb merged 3 commits intoyonaskolb:masterfrom
StreamLayer:master

Conversation

@bimawa
Copy link
Copy Markdown
Contributor

@bimawa bimawa commented Feb 21, 2022

Force login shell. Looks we need it for Apple Silicon CPU.

#1167

@yonaskolb
Copy link
Copy Markdown
Owner

Do you have more details on why this is required? Also before accepting this PR needs a changelog entry

@bimawa
Copy link
Copy Markdown
Contributor Author

bimawa commented Feb 22, 2022

I don't know. But last xCode version not throw environments to Shell scripts. Google say so for that feature we should init /bin/sh with -l Login parameter. And after that, Xcode will throw OS environments to builds sh scripts.
Without this parameters $PATH not visible while sh scripts run. And we got errors, "carthage command not found" etc.
But this issue not reproduced on old Intel macOS. Maybe it's related with Apple CPU`s.

Also, maybe we should make this property possible to modify? But /bin/sh with -l also works good on intel mac's in my team.

@bimawa
Copy link
Copy Markdown
Contributor Author

bimawa commented Feb 25, 2022

@yonaskolb Did you know why fails testes?
CI / Xcode 12.5.1 (pull_request) Failing after 2m — Xcode 12.5.1
This xcode 12.5.1 didn't support login shell?

@yonaskolb
Copy link
Copy Markdown
Owner

The fixture snapshot tests are failing because the diffs haven't been committed. Run the tests locally and push the diffs

Copy link
Copy Markdown
Owner

@yonaskolb yonaskolb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Could you also add a changelog entry under 'Next version'

@bimawa
Copy link
Copy Markdown
Contributor Author

bimawa commented Mar 21, 2022

@yonaskolb like that?

- Ensure fileTypes are mapped to JSON value [#1112](https://github.com/yonaskolb/XcodeGen/pull/1112) @namolnad
- Fix platform filter for package dependecies [#1123](https://github.com/yonaskolb/XcodeGen/pull/1123) @raptorxcz
- Fix Xcode 13 build [#1130](https://github.com/yonaskolb/XcodeGen/issues/1127) @raptorxcz @mthole
- Fix Monterey MacOS shell version, shell login flag for environments [#1167](https://github.com/yonaskolb/XcodeGen/issues/1167) @bimawa
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong version, but I'll move it

@yonaskolb yonaskolb merged commit 8530da5 into yonaskolb:master Mar 21, 2022
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

Successfully merging this pull request may close these issues.

2 participants