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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode12 beta4 compiler fixes #534

Merged
merged 3 commits into from
Aug 8, 2020
Merged

Conversation

HeyImChris
Copy link

@HeyImChris HeyImChris commented Aug 8, 2020

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

This is needed to compile on Xcode12 beta 4. Previously we were successfully compiling on beta 2, but as things change between the betas this broke.

The compiler error is that it can't find the definition to a c++ function used for internal performance tracking/logging. We can explicitly include that framework (quartz) for macOS.

Created an OSS issue in this repo to track changes needed for the transition to Xcode 12 via issue #533 .

Changelog

[macOS] [Fixed] - Fix Xcode 12 beta 4 compiler error that we're missing a definition

Test Plan

If it compiles on macOS then it's fixed and shouldn't break anything. Built for iOS/macOS locally on Xcode 12 beta 4. CI will test again on Xcode 11 and soon on Xcode 12 beta 4.

Microsoft Reviewers: Open in CodeFlow

@HeyImChris HeyImChris requested a review from tom-un as a code owner August 8, 2020 05:55
@HeyImChris HeyImChris self-assigned this Aug 8, 2020
@tom-un tom-un merged commit b2db9f0 into microsoft:master Aug 8, 2020
@@ -16,6 +16,11 @@
#import "RCTModuleData.h"
#import "RCTProfile.h"

#if TARGET_OS_OSX // TODO(macOS, https://github.com/microsoft/react-native-macos/issues/533)
// To compile in Xcode 12 beta 4 on macOS, we need to explicitly pull in the framework to get the definition for CACurrentMediaTime()
#import <Quartz/Quartz.h>

Choose a reason for hiding this comment

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

Probably just want QuartzCore?

React/Base/RCTDisplayLink.m Show resolved Hide resolved
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.

None yet

3 participants