Skip to content

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

#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?

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.

3 participants