-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
find Xcode preferentially without spotlight (v2) #4652
Conversation
Can't set status; build succeeded. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
REALM_XCODE_VERSION="$version" sh build.sh ios-swift | ||
REALM_XCODE_VERSION=$version | ||
REALM_SWIFT_VERSION= | ||
set_xcode_and_swift_versions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
build.sh
now calls set_xcode_and_swift_versions
unconditionally, so it's superfluous to call it in all these package-
commands. Also, REALM_SWIFT_VERSION=
could be moved outside these for loops.
-for version in 8.0 8.1 8.2; do
-REALM_XCODE_VERSION=$version
-REALM_SWIFT_VERSION=
-set_xcode_and_swift_versions
+REALM_SWIFT_VERSION=
+for REALM_XCODE_VERSION in 8.0 8.1 8.2; do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both are actually needed, since set_xcode_and_swift_versions
is the only one export
ing it (so it can go to a child process), and it is also always setting REALM_SWIFT_VERSION
so without that being inside the loop you would get it set to the value for the first one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should still be able to do this, cutting down on some boilerplate:
-for version in 8.0 8.1 8.2; do
- REALM_XCODE_VERSION=$version
- REALM_SWIFT_VERSION=
- set_xcode_and_swift_versions
+REALM_SWIFT_VERSION=
+for REALM_XCODE_VERSION in 8.0 8.1 8.2; do
+ set_xcode_and_swift_versions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, doing that would fail with a complaint that later versions of Xcode do not support the selected (one for Xcode 8.0) version of Swift.
This has been causing the @larkost could you please fix? Specifically it hangs at "waiting for simulator to boot...", never completing or moving on for hours. |
No description provided.