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

find Xcode preferentially without spotlight (v2) #4652

Merged
merged 6 commits into from
Feb 9, 2017

Conversation

larkost
Copy link
Contributor

@larkost larkost commented Feb 9, 2017

No description provided.

@larkost larkost self-assigned this Feb 9, 2017
@realm-ci
Copy link
Contributor

realm-ci commented Feb 9, 2017

Can't set status; build succeeded.

@larkost larkost requested a review from jpsim February 9, 2017 22:40
@larkost
Copy link
Contributor Author

larkost commented Feb 9, 2017

Note that this solves #4503 and #4534.

Copy link
Contributor

@jpsim jpsim left a 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
Copy link
Contributor

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

Copy link
Contributor Author

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 exporting 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.

Copy link
Contributor

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

Copy link
Contributor Author

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.

@larkost larkost merged commit 942fd88 into master Feb 9, 2017
@larkost larkost removed the S:Review label Feb 9, 2017
@larkost larkost deleted the larkost/4534-find-xcode-without-spotlight-v2 branch February 9, 2017 23:10
@jpsim
Copy link
Contributor

jpsim commented Feb 14, 2017

This has been causing the cocoa_docs PR to fail in the cocoa-pipeline Jenkins job since it was merged. https://ci.realm.io/job/cocoa_docs/

@larkost could you please fix?

Specifically it hangs at "waiting for simulator to boot...", never completing or moving on for hours.

https://ci.realm.io/job/cocoa_docs/

image

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants