Skip to content

Commit b645545

Browse files
authored
Add the homebrew path on Apple silicon to the Xcode used PATH variable (#494)
1 parent 8e88fad commit b645545

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

StreamChatSwiftUI.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2348,7 +2348,7 @@
23482348
);
23492349
runOnlyForDeploymentPostprocessing = 0;
23502350
shellPath = /bin/sh;
2351-
shellScript = "if which mint >/dev/null && mint which swiftgen; then\n xcrun --sdk macosx mint run swiftgen config run --config Sources/StreamChatSwiftUI/.swiftgen.yml\nelse\n echo \"Warning: Bootstrap not run, please run ./Scripts/bootstrap.sh\"\nfi\n";
2351+
shellScript = "# Adds support for Apple Silicon brew directory\nexport PATH=\"$PATH:/opt/homebrew/bin\"\n\nif which mint >/dev/null && mint which swiftgen; then\n xcrun --sdk macosx mint run swiftgen config run --config Sources/StreamChatSwiftUI/.swiftgen.yml\nelse\n echo \"Warning: Bootstrap not run, please run ./Scripts/bootstrap.sh\"\nfi\n";
23522352
};
23532353
/* End PBXShellScriptBuildPhase section */
23542354

0 commit comments

Comments
 (0)