Skip to content

Commit 8cb99cd

Browse files
authored
[generator-macos] Setup Podfile for platform specificity during auto-linking (#318)
See react-native-community/cli#1126
1 parent 12f7265 commit 8cb99cd

File tree

1 file changed

+2
-2
lines changed
  • local-cli/generator-macos/templates/macos

1 file changed

+2
-2
lines changed

local-cli/generator-macos/templates/macos/Podfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
22

33
abstract_target 'Shared' do
4-
use_native_modules!
5-
64
pod 'React', :path => "../node_modules/react-native-macos/"
75
pod 'React-Core', :path => "../node_modules/react-native-macos/React"
86
pod 'React-fishhook', :path => "../node_modules/react-native-macos/Libraries/fishhook"
@@ -30,11 +28,13 @@ abstract_target 'Shared' do
3028

3129
target 'HelloWorld-macOS' do
3230
platform :macos, '10.14'
31+
use_native_modules!
3332
# Pods specifically for macOS target
3433
end
3534

3635
target 'HelloWorld-iOS' do
3736
platform :ios, '9'
37+
use_native_modules!
3838
# Pods specifically for iOS target
3939
end
4040
end

0 commit comments

Comments
 (0)