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

Add some robustness to the CI and switch to Xcode 12 #709

Merged
merged 93 commits into from
Mar 17, 2021

Conversation

HeyImChris
Copy link

@HeyImChris HeyImChris commented Feb 4, 2021

Please select one of the following

  • I am removing an existing difference between facebook/react-native and microsoft/react-native-macos 👍
  • I am cherry-picking a change from Facebook's react-native into microsoft/react-native-macos 👍
  • I am making a fix / change for the macOS implementation of react-native
  • I am making a change required for Microsoft usage of react-native

Summary

We need to switch to Xcode 12 so let's leverage that fact we're in here to parameterize there versions so Xcode select is compatible with any future Xcode version changes we need to make going forward.

Changelog

[macOS/iOS] [Improvement] - Add robustness to CI

Test Plan

Will verify if the CI passes or not as this doesn't affect the product.

Microsoft Reviewers: Open in CodeFlow

@HeyImChris HeyImChris self-assigned this Feb 4, 2021
@HeyImChris HeyImChris requested a review from alloy as a code owner February 4, 2021 21:24
.ado/apple-pr.yml Outdated Show resolved Hide resolved
.ado/apple-pr.yml Outdated Show resolved Hide resolved
@@ -31,6 +32,8 @@ jobs:
- template: templates/apple-job-javascript.yml
parameters:
apply_office_patches: $(apply_office_patches)
slice_name: 'Xcode_12_2'

Choose a reason for hiding this comment

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

You should skip to 12.4

@ghost ghost removed the Needs: Author Feedback label Mar 9, 2021
@@ -24,7 +24,7 @@ Pod::Spec.new do |s|
s.documentation_url = "https://reactnative.dev/docs/actionsheetios"
s.license = package["license"]
s.author = "Facebook, Inc. and its affiliates"
s.platforms = { :ios => "10.0", :tvos => "10.0", :osx => "10.13" } # TODO(macOS GH#214)

Choose a reason for hiding this comment

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

ios=>"13.0" it will make our sizes small too...

Choose a reason for hiding this comment

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

I agree that we should try to do that ASAP, but I'm not sure we necessarily want to diverge from upstream here. it would be weird if someone consumed this fork of react-native for x-plat support but that resulted in a different minimum supported OS than the upstream repo.

Separate of this change it might be good to try to push upstream to be more aggressive with minimum supported OS given usage trends and practical impact of size as well as work internally to see if we can override this in our consumption of react-native-macos (and in turn provide guidance to other clients who want to upgrade their minimum supported OS before we are able to get a newer version pushed to upstream)

@HeyImChris
Copy link
Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@@ -21,7 +21,7 @@ steps:
signingOption: auto
packageApp: false
teamId: '$(XCodeSigningMicrosoftTeamID)'
args: '-destination "${{ parameters.xcode_destination }}" ONLY_ACTIVE_ARCH=NO -verbose -UseModernBuildSystem=NO -derivedDataPath DerivedData ${{ parameters.xcode_extraArgs }}'

Choose a reason for hiding this comment

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

@HeyImChris was there any particular reason you know of we were forcing legacy build system? I probably should have done things one at a time to control variables but this was a delta between CI and building locally in Xcode by default so seemed helpful to get rid of that to make it easier to reproduce CI issues?

Copy link
Collaborator

Choose a reason for hiding this comment

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

The legacy build system used to be required before we built using cocoapods. The old static xcodeproj's from upstream had intentional circular dependencies that were worked around by having build order in the xcschemes. The new pod based builds don't have this issue anymore.

@HeyImChris HeyImChris merged commit 3056c4e into microsoft:master Mar 17, 2021
Saadnajmi added a commit to Saadnajmi/react-native-macos that referenced this pull request Mar 22, 2021
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.

9 participants