Skip to content

Commit

Permalink
[patch] Patch expo-modules-core to unblock iOS build on macOS Sonoma
Browse files Browse the repository at this point in the history
Summary: Context: https://linear.app/comm/issue/ENG-4984/xcode-version-15-update

Test Plan: No longer encountering the Foundation import issue after `yarn cleaninstall`

Reviewers: ashoat, ginsu, tomek, rohan, bartek

Reviewed By: ashoat

Differential Revision: https://phab.comm.dev/D9227
  • Loading branch information
atulsmadhugiri committed Oct 2, 2023
1 parent d720180 commit d8d12a5
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions patches/expo-modules-core+1.1.1.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
diff --git a/node_modules/expo-modules-core/ios/EXDefines.h b/node_modules/expo-modules-core/ios/EXDefines.h
index 33b4d72..91b639f 100644
--- a/node_modules/expo-modules-core/ios/EXDefines.h
+++ b/node_modules/expo-modules-core/ios/EXDefines.h
@@ -10,6 +10,8 @@
#define EX_EXTERN_C_END
#endif

+#import <Foundation/Foundation.h>
+
EX_EXTERN_C_BEGIN

#define EX_EXPORTED_METHODS_PREFIX __ex_export__
@@ -79,7 +81,6 @@ if (var == nil) { return; }
#define EXNullIfNil(value) (value ?: [NSNull null])

#import <UIKit/UIKit.h>
-#import <Foundation/Foundation.h>

typedef struct EXMethodInfo {
const char *const jsName;

0 comments on commit d8d12a5

Please sign in to comment.