Skip to content

Conversation

christophpurrer
Copy link

@christophpurrer christophpurrer commented Oct 27, 2022

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

Right now running:
bundle install && USE_FABRIC=1 bundle exec pod install

in packages/rn-tester fails as certain targets are not enabled for macOS 10.15

This fixes the .podspec files - Fabric related code does not compile - but at least we can build rn-iOS with Fabric now.

ATTENTION, ATTENTION

If you ever build with Fabric enabled and then switch to a non Fabric workspace > there is a huge change the Xcode will produce funky compile errors.

Follow https://reactnative.dev/docs/the-new-architecture/use-app-template#troubleshooting

Changelog

[macOS] [Fixed] - Enable .podspec files for Fabric

Test Plan

Pod installation complete! There are 69 dependencies from the Podfile and 57 total pods installed.

[!] The Podfile contains framework or static library targets (iosDeviceBuild, iosSimulatorBuild, macOSBuild), for which the Podfile does not contain host targets (targets which embed the framework). If this project is for doing framework development, you can ignore this message. Otherwise, add a target to the Podfile that embeds these frameworks to make this message go away (e.g. a test target).

@christophpurrer christophpurrer requested a review from a team as a code owner October 27, 2022 20:40
christophpurrer added a commit to christophpurrer/react-native-macos that referenced this pull request Oct 27, 2022
When enabling the Fabric podspec files
microsoft#1460
we can't even compile rn-iOS.

Here are the necessary fixes
@Saadnajmi
Copy link
Collaborator

Saadnajmi commented Oct 27, 2022

iosDeviceBuild, iosSimulatorBuild, macOSBuild

I should have deleted those in main?

@Saadnajmi
Copy link
Collaborator

Higher level question: I wonder if we should do this work on a separate branch from main called "fabric" or so, so we can iterate on it separately from main, and merge the entire branch in once we're happy with the state.

@christophpurrer
Copy link
Author

iosDeviceBuild, iosSimulatorBuild, macOSBuild

I should have deleted those in main?

I must have been on a 0.68 branch when creating this PR.
Thanks for cleaning up the podspec

@christophpurrer
Copy link
Author

I think this a good strategy.
I was already planning to do this.
Just the 2 PRs I have sent out are very low hanging fruits, should not have any side effects (famous last words) and I am quiet sure that they represent the final change

christophpurrer added a commit to christophpurrer/react-native-macos that referenced this pull request Oct 27, 2022
When enabling the Fabric podspec files
microsoft#1460
we can't even compile rn-iOS.

Here are the necessary fixes
Right now running:
bundle install && USE_FABRIC=1 bundle exec pod install

in packages/rn-tester fails as certain targets are not enabled for macOS 10.15

TEST:
Pod installation complete! There are 69 dependencies from the Podfile and 57 total pods installed.

[!] The Podfile contains framework or static library targets (iosDeviceBuild, iosSimulatorBuild, macOSBuild), for which the Podfile does not contain host targets (targets which embed the framework).
If this project is for doing framework development, you can ignore this message. Otherwise, add a target to the Podfile that embeds these frameworks to make this message go away (e.g. a test target).
christophpurrer added a commit to christophpurrer/react-native-macos that referenced this pull request Oct 31, 2022
When enabling the Fabric podspec files
microsoft#1460
we can't even compile rn-iOS.

Here are the necessary fixes
christophpurrer added a commit to christophpurrer/react-native-macos that referenced this pull request Oct 31, 2022
When enabling the Fabric podspec files
microsoft#1460
we can't even compile rn-iOS.

Here are the necessary fixes
@Saadnajmi Saadnajmi merged commit 3429f39 into microsoft:main Nov 1, 2022
christophpurrer added a commit to christophpurrer/react-native-macos that referenced this pull request Nov 1, 2022
When enabling the Fabric podspec files
microsoft#1460
we can't even compile rn-iOS.

Here is the 1st of 2 necessary fixes
Saadnajmi pushed a commit that referenced this pull request Nov 1, 2022
When enabling the Fabric podspec files
#1460
we can't even compile rn-iOS.

Here is the 1st of 2 necessary fixes
shwanton pushed a commit to shwanton/react-native-macos that referenced this pull request Feb 13, 2023
Right now running:
bundle install && USE_FABRIC=1 bundle exec pod install

in packages/rn-tester fails as certain targets are not enabled for macOS 10.15

TEST:
Pod installation complete! There are 69 dependencies from the Podfile and 57 total pods installed.

[!] The Podfile contains framework or static library targets (iosDeviceBuild, iosSimulatorBuild, macOSBuild), for which the Podfile does not contain host targets (targets which embed the framework).
If this project is for doing framework development, you can ignore this message. Otherwise, add a target to the Podfile that embeds these frameworks to make this message go away (e.g. a test target).
shwanton pushed a commit to shwanton/react-native-macos that referenced this pull request Feb 13, 2023
When enabling the Fabric podspec files
microsoft#1460
we can't even compile rn-iOS.

Here is the 1st of 2 necessary fixes
shwanton pushed a commit to shwanton/react-native-macos that referenced this pull request Mar 10, 2023
Right now running:
bundle install && USE_FABRIC=1 bundle exec pod install

in packages/rn-tester fails as certain targets are not enabled for macOS 10.15

TEST:
Pod installation complete! There are 69 dependencies from the Podfile and 57 total pods installed.

[!] The Podfile contains framework or static library targets (iosDeviceBuild, iosSimulatorBuild, macOSBuild), for which the Podfile does not contain host targets (targets which embed the framework).
If this project is for doing framework development, you can ignore this message. Otherwise, add a target to the Podfile that embeds these frameworks to make this message go away (e.g. a test target).
shwanton pushed a commit to shwanton/react-native-macos that referenced this pull request Mar 10, 2023
When enabling the Fabric podspec files
microsoft#1460
we can't even compile rn-iOS.

Here is the 1st of 2 necessary fixes
shwanton pushed a commit to shwanton/react-native-macos that referenced this pull request Mar 10, 2023
Right now running:
bundle install && USE_FABRIC=1 bundle exec pod install

in packages/rn-tester fails as certain targets are not enabled for macOS 10.15

TEST:
Pod installation complete! There are 69 dependencies from the Podfile and 57 total pods installed.

[!] The Podfile contains framework or static library targets (iosDeviceBuild, iosSimulatorBuild, macOSBuild), for which the Podfile does not contain host targets (targets which embed the framework).
If this project is for doing framework development, you can ignore this message. Otherwise, add a target to the Podfile that embeds these frameworks to make this message go away (e.g. a test target).
shwanton pushed a commit to shwanton/react-native-macos that referenced this pull request Mar 10, 2023
When enabling the Fabric podspec files
microsoft#1460
we can't even compile rn-iOS.

Here is the 1st of 2 necessary fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants