- Use the following package versions:
+ "metro-react-native-babel-preset": "^0.59.0",
+ "react-native": "0.63.0",
+ "react-native-macos": "^0.63.23",- Update your
metro.config.jsto recognize MacOS support files:
{
+ resolver: {
+ platforms: ["ios", "android", "native", "macos"],
+ }
}- Deactivate
Flipper/Follyand remove references toflipper_post_install. - Update your
Podfileto automatically sign MacOS dependencies:
post_install do |installer|
+ # Fix bundle targets' 'Signing Certificate' to 'Sign to Run Locally'
+ installer.pods_project.targets.each do |target|
+ if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
+ target.build_configurations.each do |config|
+ config.build_settings['CODE_SIGN_IDENTITY[sdk=macosx*]'] = '-'
+ end
+ end
+ end
end- Remove your
Podfile.lockand re-runnpx pod-install. - In your Project, select
MacOSas the deployment target and verify that you wish to addMacOS Support Files.
And we're done! 🚀