Skip to content

Commit

Permalink
Fix iOS build on new architecture (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
oblador authored Feb 10, 2024
1 parent 037b3e7 commit b8315a1
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 26 deletions.
12 changes: 10 additions & 2 deletions example/ios/Example.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -572,13 +572,17 @@
);
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
OTHER_CFLAGS = "$(inherited)";
OTHER_CFLAGS = (
"$(inherited)",
"-DRN_FABRIC_ENABLED",
);
OTHER_CPLUSPLUSFLAGS = (
"$(OTHER_CFLAGS)",
"-DFOLLY_NO_CONFIG",
"-DFOLLY_MOBILE=1",
"-DFOLLY_USE_LIBCPP=1",
"-DFOLLY_CFG_NO_COROUTINES=1",
"-DRN_FABRIC_ENABLED",
);
OTHER_LDFLAGS = (
"$(inherited)",
Expand Down Expand Up @@ -643,13 +647,17 @@
"\"$(inherited)\"",
);
MTL_ENABLE_DEBUG_INFO = NO;
OTHER_CFLAGS = "$(inherited)";
OTHER_CFLAGS = (
"$(inherited)",
"-DRN_FABRIC_ENABLED",
);
OTHER_CPLUSPLUSFLAGS = (
"$(OTHER_CFLAGS)",
"-DFOLLY_NO_CONFIG",
"-DFOLLY_MOBILE=1",
"-DFOLLY_USE_LIBCPP=1",
"-DFOLLY_CFG_NO_COROUTINES=1",
"-DRN_FABRIC_ENABLED",
);
OTHER_LDFLAGS = (
"$(inherited)",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
2 changes: 2 additions & 0 deletions example/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ require Pod::Executable.execute_command('node', ['-p',
{paths: [process.argv[1]]},
)', __dir__]).strip

ENV['RCT_NEW_ARCH_ENABLED'] = '1'

platform :ios, min_ios_version_supported
prepare_react_native_project!

Expand Down
87 changes: 70 additions & 17 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,6 @@ PODS:
- CocoaAsyncSocket (7.6.5)
- DoubleConversion (1.1.6)
- FBLazyVector (0.73.4)
- FBReactNativeSpec (0.73.4):
- RCT-Folly (= 2022.05.16.00)
- RCTRequired (= 0.73.4)
- RCTTypeSafety (= 0.73.4)
- React-Core (= 0.73.4)
- React-jsi (= 0.73.4)
- ReactCommon/turbomodule/core (= 0.73.4)
- Flipper (0.201.0):
- Flipper-Folly (~> 2.6)
- Flipper-Boost-iOSX (1.76.0.1.11)
Expand Down Expand Up @@ -116,17 +109,21 @@ PODS:
- React-callinvoker (0.73.4)
- React-Codegen (0.73.4):
- DoubleConversion
- FBReactNativeSpec
- glog
- hermes-engine
- RCT-Folly
- RCTRequired
- RCTTypeSafety
- React-Core
- React-debug
- React-Fabric
- React-FabricImage
- React-graphics
- React-jsi
- React-jsiexecutor
- React-NativeModulesApple
- React-rncore
- React-rendererdebug
- React-utils
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- React-Core (0.73.4):
Expand Down Expand Up @@ -939,6 +936,8 @@ PODS:
- React-jsi (= 0.73.4)
- React-perflogger (= 0.73.4)
- React-jsinspector (0.73.4)
- React-jsitracing (0.73.4):
- React-jsi
- React-logger (0.73.4):
- glog
- React-Mapbuffer (0.73.4):
Expand Down Expand Up @@ -972,13 +971,21 @@ PODS:
- RCTTypeSafety
- React-Core
- React-CoreModules
- React-debug
- React-Fabric
- React-graphics
- React-hermes
- React-nativeconfig
- React-NativeModulesApple
- React-RCTFabric
- React-RCTImage
- React-RCTNetwork
- React-rendererdebug
- React-RuntimeApple
- React-RuntimeCore
- React-RuntimeHermes
- React-runtimescheduler
- React-utils
- ReactCommon
- React-RCTBlob (0.73.4):
- hermes-engine
Expand Down Expand Up @@ -1056,8 +1063,42 @@ PODS:
- RCT-Folly (= 2022.05.16.00)
- React-debug
- React-rncore (0.73.4)
- React-RuntimeApple (0.73.4):
- hermes-engine
- RCT-Folly/Fabric (= 2022.05.16.00)
- React-callinvoker
- React-Core/Default
- React-CoreModules
- React-cxxreact
- React-jserrorhandler
- React-jsi
- React-jsiexecutor
- React-Mapbuffer
- React-NativeModulesApple
- React-RCTFabric
- React-RuntimeCore
- React-runtimeexecutor
- React-RuntimeHermes
- React-utils
- React-RuntimeCore (0.73.4):
- glog
- hermes-engine
- RCT-Folly/Fabric (= 2022.05.16.00)
- React-cxxreact
- React-jserrorhandler
- React-jsi
- React-jsiexecutor
- React-runtimeexecutor
- React-runtimescheduler
- React-runtimeexecutor (0.73.4):
- React-jsi (= 0.73.4)
- React-RuntimeHermes (0.73.4):
- hermes-engine
- RCT-Folly/Fabric (= 2022.05.16.00)
- React-jsi
- React-jsitracing
- React-nativeconfig
- React-utils
- React-runtimescheduler (0.73.4):
- glog
- hermes-engine
Expand Down Expand Up @@ -1118,7 +1159,6 @@ DEPENDENCIES:
- boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`)
- DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
- FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`)
- FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`)
- Flipper (= 0.201.0)
- Flipper-Boost-iOSX (= 1.76.0.1.11)
- Flipper-DoubleConversion (= 3.2.0.1)
Expand Down Expand Up @@ -1165,6 +1205,7 @@ DEPENDENCIES:
- React-jsi (from `../node_modules/react-native/ReactCommon/jsi`)
- React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`)
- React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector-modern`)
- React-jsitracing (from `../node_modules/react-native/ReactCommon/hermes/executor/`)
- React-logger (from `../node_modules/react-native/ReactCommon/logger`)
- React-Mapbuffer (from `../node_modules/react-native/ReactCommon`)
- React-nativeconfig (from `../node_modules/react-native/ReactCommon`)
Expand All @@ -1183,7 +1224,10 @@ DEPENDENCIES:
- React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`)
- React-rendererdebug (from `../node_modules/react-native/ReactCommon/react/renderer/debug`)
- React-rncore (from `../node_modules/react-native/ReactCommon`)
- React-RuntimeApple (from `../node_modules/react-native/ReactCommon/react/runtime/platform/ios`)
- React-RuntimeCore (from `../node_modules/react-native/ReactCommon/react/runtime`)
- React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`)
- React-RuntimeHermes (from `../node_modules/react-native/ReactCommon/react/runtime`)
- React-runtimescheduler (from `../node_modules/react-native/ReactCommon/react/renderer/runtimescheduler`)
- React-utils (from `../node_modules/react-native/ReactCommon/react/utils`)
- ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
Expand Down Expand Up @@ -1212,8 +1256,6 @@ EXTERNAL SOURCES:
:podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec"
FBLazyVector:
:path: "../node_modules/react-native/Libraries/FBLazyVector"
FBReactNativeSpec:
:path: "../node_modules/react-native/React/FBReactNativeSpec"
glog:
:podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec"
hermes-engine:
Expand Down Expand Up @@ -1257,6 +1299,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/ReactCommon/jsiexecutor"
React-jsinspector:
:path: "../node_modules/react-native/ReactCommon/jsinspector-modern"
React-jsitracing:
:path: "../node_modules/react-native/ReactCommon/hermes/executor/"
React-logger:
:path: "../node_modules/react-native/ReactCommon/logger"
React-Mapbuffer:
Expand Down Expand Up @@ -1293,8 +1337,14 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/ReactCommon/react/renderer/debug"
React-rncore:
:path: "../node_modules/react-native/ReactCommon"
React-RuntimeApple:
:path: "../node_modules/react-native/ReactCommon/react/runtime/platform/ios"
React-RuntimeCore:
:path: "../node_modules/react-native/ReactCommon/react/runtime"
React-runtimeexecutor:
:path: "../node_modules/react-native/ReactCommon/runtimeexecutor"
React-RuntimeHermes:
:path: "../node_modules/react-native/ReactCommon/react/runtime"
React-runtimescheduler:
:path: "../node_modules/react-native/ReactCommon/react/renderer/runtimescheduler"
React-utils:
Expand All @@ -1309,7 +1359,6 @@ SPEC CHECKSUMS:
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
DoubleConversion: fea03f2699887d960129cc54bba7e52542b6f953
FBLazyVector: 84f6edbe225f38aebd9deaf1540a4160b1f087d7
FBReactNativeSpec: d0086a479be91c44ce4687a962956a352d2dc697
Flipper: c7a0093234c4bdd456e363f2f19b2e4b27652d44
Flipper-Boost-iOSX: fd1e2b8cbef7e662a122412d7ac5f5bea715403c
Flipper-DoubleConversion: 2dc99b02f658daf147069aad9dbd29d8feb06d30
Expand All @@ -1328,7 +1377,7 @@ SPEC CHECKSUMS:
RCTTypeSafety: 63b97ced7b766865057e7154db0e81ce4ee6cf1e
React: 1c87497e50fa40ba9c54e5ea5e53483a0f8eecc0
React-callinvoker: e3a52a9a93e3eb004d7282c26a4fb27003273fe6
React-Codegen: 50c0f8f073e71b929b057b68bf31be604f1dccc8
React-Codegen: 05f85e0e087f402978cfe57822a8debc07127a13
React-Core: d0ecde72894b792cb8922efaa0990199cbe85169
React-CoreModules: 2ff1684dd517f0c441495d90a704d499f05e9d0a
React-cxxreact: d9be2fac926741052395da0a6d0bab8d71e2f297
Expand All @@ -1342,14 +1391,15 @@ SPEC CHECKSUMS:
React-jsi: 380cd24dd81a705dd042c18989fb10b07182210c
React-jsiexecutor: 8ed7a18b9f119440efdcd424c8257dc7e18067e2
React-jsinspector: 9ac353eccf6ab54d1e0a33862ba91221d1e88460
React-jsitracing: e8a2dafb9878dbcad02b6b2b88e66267fb427b74
React-logger: 0a57b68dd2aec7ff738195f081f0520724b35dab
React-Mapbuffer: 63913773ed7f96b814a2521e13e6d010282096ad
React-nativeconfig: d7af5bae6da70fa15ce44f045621cf99ed24087c
React-NativeModulesApple: 0123905d5699853ac68519607555a9a4f5c7b3ac
React-perflogger: 8a1e1af5733004bdd91258dcefbde21e0d1faccd
React-RCTActionSheet: 64bbff3a3963664c2d0146f870fe8e0264aee4c4
React-RCTAnimation: b698168a7269265a4694727196484342d695f0c1
React-RCTAppDelegate: dcd8e955116eb1d1908dfaf08b4c970812e6a1e6
React-RCTAppDelegate: a84b4bf99b871d87b41d7a768e7860d207fb4e31
React-RCTBlob: 47f8c3b2b4b7fa2c5f19c43f0b7f77f57fb9d953
React-RCTFabric: 6067a32d683d0c2b84d444548bc15a263c64abed
React-RCTImage: ac0e77a44c290b20db783649b2b9cddc93e3eb99
Expand All @@ -1359,14 +1409,17 @@ SPEC CHECKSUMS:
React-RCTText: f0176f5f5952f9a4a2c7354f5ae71f7c420aaf34
React-RCTVibration: 8160223c6eda5b187079fec204f80eca8b8f3177
React-rendererdebug: ed286b4da8648c27d6ed3ae1410d4b21ba890d5a
React-rncore: 43f133b89ac10c4b6ab43702a541dee1c292a3bf
React-rncore: 75cbcc46868e809bb7e738d4565ba85f3dbd5cdc
React-RuntimeApple: f4848a388e4c782d3b8d4ca9c48179163418fe56
React-RuntimeCore: 272998adc56066404df36b1a3a2be9a56c6ee086
React-runtimeexecutor: e6ab6bb083dbdbdd489cff426ed0bce0652e6edf
React-RuntimeHermes: d2c368065ef82d4f8e6daa662352de5a195bdb57
React-runtimescheduler: ed48e5faac6751e66ee1261c4bd01643b436f112
React-utils: 6e5ad394416482ae21831050928ae27348f83487
ReactCommon: 840a955d37b7f3358554d819446bffcf624b2522
SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17
Yoga: 64cd2a583ead952b0315d5135bf39e053ae9be70

PODFILE CHECKSUM: 5506db2064b9bbcf95b89a76274d9998b06e711d
PODFILE CHECKSUM: fae782d7d8a6d37720c7c3bbecfbca4979831818

COCOAPODS: 1.14.3
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import {
ViewProps,
FlexStyle,
TransformsStyle,
ColorValue,
HostComponent,
} from 'react-native';
import { ViewProps, ColorValue, HostComponent } from 'react-native';

// @ts-ignore
import { WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
Expand Down

0 comments on commit b8315a1

Please sign in to comment.