Skip to content

Commit

Permalink
Patch podfile for xcode15 support
Browse files Browse the repository at this point in the history
  • Loading branch information
thornbill committed Nov 8, 2024
1 parent da286fb commit af81d96
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
8 changes: 8 additions & 0 deletions ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ target 'Jellyfin' do
end
end
end

# This is necessary for Xcode 15 compatibility
# https://github.com/facebook/react-native/issues/37748#issuecomment-1580589448
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', '_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION']
end
end
end

post_integrate do |installer|
Expand Down
2 changes: 1 addition & 1 deletion ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,6 @@ SPEC CHECKSUMS:
RNScreens: 4a1af06327774490d97342c00aee0c2bafb497b7
Yoga: 7a4d48cfb35dfa542151e615fa73c1a0d88caf21

PODFILE CHECKSUM: 886347fc7958cd8169a4e06f4a5e125dadf419a3
PODFILE CHECKSUM: 6ff4c838a1c209b25f53e9709460e3847fe29a5e

COCOAPODS: 1.15.2
31 changes: 31 additions & 0 deletions patches/xcode15.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
diff --git a/ios/Podfile b/ios/Podfile
index 6b1937a..9e119e6 100644
--- a/ios/Podfile
+++ b/ios/Podfile
@@ -47,6 +47,14 @@ target 'Jellyfin' do
end
end
end
+
+ # This is necessary for Xcode 15 compatibility
+ # https://github.com/facebook/react-native/issues/37748#issuecomment-1580589448
+ installer.pods_project.targets.each do |target|
+ target.build_configurations.each do |config|
+ config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', '_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION']
+ end
+ end
end

post_integrate do |installer|
diff --git a/ios/Podfile.lock b/ios/Podfile.lock
index bea2dad..c4b90aa 100644
--- a/ios/Podfile.lock
+++ b/ios/Podfile.lock
@@ -632,6 +632,6 @@ SPEC CHECKSUMS:
RNScreens: 4a1af06327774490d97342c00aee0c2bafb497b7
Yoga: 7a4d48cfb35dfa542151e615fa73c1a0d88caf21

-PODFILE CHECKSUM: 886347fc7958cd8169a4e06f4a5e125dadf419a3
+PODFILE CHECKSUM: 6ff4c838a1c209b25f53e9709460e3847fe29a5e

COCOAPODS: 1.15.2

0 comments on commit af81d96

Please sign in to comment.