From 0f6e9e6b4ce68154eeb3638c10c684597261cd3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eloy=20Dur=C3=A1n?= Date: Thu, 23 Apr 2020 13:53:30 +0200 Subject: [PATCH] [generator-macos] Setup Podfile for platform specificity during auto-linking See https://github.com/react-native-community/cli/pull/1126 --- local-cli/generator-macos/templates/macos/Podfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/local-cli/generator-macos/templates/macos/Podfile b/local-cli/generator-macos/templates/macos/Podfile index ec4b45599e22b1..add040e43657f4 100644 --- a/local-cli/generator-macos/templates/macos/Podfile +++ b/local-cli/generator-macos/templates/macos/Podfile @@ -1,8 +1,6 @@ require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' abstract_target 'Shared' do - use_native_modules! - pod 'React', :path => "../node_modules/react-native-macos/" pod 'React-Core', :path => "../node_modules/react-native-macos/React" pod 'React-fishhook', :path => "../node_modules/react-native-macos/Libraries/fishhook" @@ -30,11 +28,13 @@ abstract_target 'Shared' do target 'HelloWorld-macOS' do platform :macos, '10.14' + use_native_modules! # Pods specifically for macOS target end target 'HelloWorld-iOS' do platform :ios, '9' + use_native_modules! # Pods specifically for iOS target end end