-
Type: Task
-
Resolution: Fixed
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
Goals: adding RealmReact 1.0.2 project into XCode with pod install of react-native@0.42.0.rc-3 will not result in compilation failure.
Expected results: success app build using RealmReact project with react-native@0.42.0.rc-3 inside XCode project.
Actual results: compilation failure on RealmReact.mm: 'React/RCTBridgeDelegate.h' file not found in RCTBridge.h. This is most likely due to the iOS header breaking change introduced in react-native@0.40.0 where React Native headers are expected to be enclosed in angle brackets, e.g. <React/RCTBridge.h>. Previously working on react-native@0.38.0 using same app code.
Steps to reproduce:
directory structure: $root/app, $root/rn (app XCode project is sibling of react native directory rn)
- npm install react@15.4.2 react-native@0.42.0.rc-3
- npm install realm@1.0.2
- include Yoga and React in Podfile:
target 'app' do
use_frameworks!
pod 'Fabric'
pod 'Crashlytics'
- React libraries
pod 'Yoga', :path => '../rn/node_modules/react-native/ReactCommon/yoga', :inhibit_warnings => true
pod 'React', :path => '../rn/node_modules/react-native', :subspecs => [
'Core',
'RCTActionSheet',
'RCTAnimation',
'RCTImage',
'RCTLinkingIOS',
'RCTText',
'RCTNetwork',
'RCTWebSocket',
], :inhibit_warnings => true
- pod install to install Yoga and React Native
- add RealmReact project into XCode from ../rn/node_modules/realm/react-native/ios/RealmReact.xcodeproj
- compile iOS app
Version: Realm 1.0.2 / Xcode 8.1 / OS X El Capitan 10.11.6