atticoos / ReactNative-Redux-Todo-List

React Native + Redux
45 stars 20 forks source link

Build fails #1

Open budda opened 7 years ago

budda commented 7 years ago

I cannot build the code with the recent React Native version.

$ react-native -v
react-native-cli: 1.2.0
react-native: 0.40.0

$ react-native run-ios

In file included from /Users/mike/Code/ReactNative-Redux-Todo-List/node_modules/react-native/Libraries/Settings/RCTSettingsManager.m:10:
/Users/mike/Code/ReactNative-Redux-Todo-List/node_modules/react-native/Libraries/Settings/RCTSettingsManager.h:12:9: fatal error: 'React/RCTBridgeModule.h' file not found
#import <React/RCTBridgeModule.h>
        ^
1 error generated.

...later on...

In file included from /Users/mike/Code/ReactNative-Redux-Todo-List/node_modules/react-native/Libraries/WebSocket/RCTWebSocketObserver.m:10:
/Users/mike/Code/ReactNative-Redux-Todo-List/node_modules/react-native/Libraries/WebSocket/RCTWebSocketObserver.h:10:9: fatal error: 'React/RCTDefines.h' file not found
#import <React/RCTDefines.h>
        ^
1 error generated.

** BUILD FAILED **

Installing build/Build/Products/Debug-iphonesimulator/ReduxTodoList.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist
atticoos commented 7 years ago

How did you install this project?

You should be able to clone the project and just run npm install. This project currently uses ReactNative@0.15.

In ReactNative@0.40 they introduced the new framework import path in Objective-C

budda commented 7 years ago

Yeah i git cloned and npm install just as you described.

atticoos commented 7 years ago

Intersting, okay. Will take a look. It shouldn't be installing 0.40.

budda commented 7 years ago

Deleting node_modules/ folder and re-installing i captured the output

$ npm install
npm WARN deprecated node-uuid@1.4.7: use uuid module instead
ReduxTodoList@0.0.1 /Users/mike/Code/ReactNative-Redux-Todo-List
├── lodash@3.10.1
├─┬ UNMET PEER DEPENDENCY react@0.14.8
MehrnooshHajkhalil commented 6 years ago

I have same issue