Skip to content

Commit 06a1439

Browse files
shirakabatido64
andcommitted
Apply Tommy Nguyen's suggestions to fix pod installation
Co-authored-by: Tommy Nguyen <4123478+tido64@users.noreply.github.com>
1 parent 9e37a99 commit 06a1439

File tree

3 files changed

+7
-24
lines changed

3 files changed

+7
-24
lines changed

example/macos/Podfile

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,5 @@ require "#{ws_dir}/node_modules/react-native-test-app/macos/test_app.rb"
66

77
workspace 'SafeAreaContextExample.xcworkspace'
88

9-
my_post_install_function = ->(installer) {
10-
puts "Running custom post_install with installer: #{installer}"
11-
installer.pods_project.targets.each do |target|
12-
case target.name
13-
when "react-native-safe-area-context"
14-
target.build_configurations.each do |config|
15-
# For some reason it gets set as 10.6 if we don't do this.
16-
config.build_settings[MACOSX_DEPLOYMENT_TARGET] = '10.15'
17-
end
18-
when /\AReact/, /\ARCT/
19-
target.build_configurations.each do |config|
20-
config.build_settings['CLANG_ENABLE_OBJC_WEAK'] = 'YES'
21-
config.build_settings['CLANG_ENABLE_OBJC_ARC'] = 'YES'
22-
config.build_settings['CLANG_CXX_LANGUAGE_STANDARD'] = 'C++20'
23-
end
24-
else
25-
end
26-
end
27-
}
28-
29-
use_test_app!({ post_install: my_post_install_function })
9+
platform :osx, '11.0'
10+
use_test_app!

example/macos/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,7 +1235,7 @@ SPEC CHECKSUMS:
12351235
React-jsinspector: c56437aed293d3f501ab19628c9d1949ea7cae57
12361236
React-logger: 83472641a638396b537018d43bda57ea154fb3ca
12371237
React-Mapbuffer: 7f0f0fbb004e36ed45101784a0fb93b135a142b8
1238-
react-native-safe-area-context: fd9edb14134c83289287ae5f543902c6c715df54
1238+
react-native-safe-area-context: cceee1d1fcd50de684b9a1a423616e3d99b5d270
12391239
React-nativeconfig: b3fd624ccc7d08c80c3be75d5fe2b24d2c194e34
12401240
React-NativeModulesApple: ad5cdc72b802d1d456a4bccc8785026f1713eca6
12411241
React-perflogger: ee9b5b57f395eba6be2091b0c2d5bef928f0b613
@@ -1264,6 +1264,6 @@ SPEC CHECKSUMS:
12641264
SocketRocket: f6c6249082c011e6de2de60ed641ef8bbe0cfac9
12651265
Yoga: 0981416dc6fbb2dec0c45125877c6f1251e4fc09
12661266

1267-
PODFILE CHECKSUM: 03e3a5c42cd4bee8e11309360dd432fd5b160e62
1267+
PODFILE CHECKSUM: 6c37876804c682ef13fd8119a99c78c44b363e51
12681268

12691269
COCOAPODS: 1.14.3

react-native-safe-area-context.podspec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ Pod::Spec.new do |s|
1212

1313
s.authors = package['author']
1414
s.homepage = package['homepage']
15-
s.platforms = { :ios => "12.4", :tvos => "12.4", :visionos => "1.0", :macos => "10.15" }
15+
s.ios.deployment_target = "12.4"
16+
s.osx.deployment_target = "11.0"
17+
s.visionos.deployment_target = "1.0"
1618

1719
s.source = { :git => "https://github.com/th3rdwave/react-native-safe-area-context.git", :tag => "v#{s.version}" }
1820
s.source_files = "ios/**/*.{h,m,mm}"

0 commit comments

Comments
 (0)