przeor / React-Native-example-FLUX-starter-kit-for-ios

This project aims to provide you everything you need to start your new iOS app in React Native. Well Orginized FLUX Architecture
76 stars 12 forks source link

Unable to run or compile in iOS #5

Open lrettig opened 8 years ago

lrettig commented 8 years ago

Hi

Thanks for putting together this awesome example!

After downloading, running npm install, and then npm start, I got the following error:

$ npm start

> FluxExample@0.0.1 start /Users/rettig/wip/React-Native-example-FLUX-starter-kit-for-ios
> node_modules/react-native/packager/packager.sh

Could not find dependencies.
Ensure dependencies are installed - run 'npm install' from project root.

Upgrading to react-native@0.13.2, removing node_modules, and running npm install again solved this problem, but now when I run npm start I see:

$ npm start

> FluxExample@0.0.1 start /Users/rettig/wip/React-Native-example-FLUX-starter-kit-for-ios
> node_modules/react-native/packager/packager.sh

 ┌────────────────────────────────────────────────────────────────────────────┐
 │  Running packager on port 8081.                                            │
 │                                                                            │
 │  Keep this packager running while developing on any JS projects. Feel      │
 │  free to close this tab and run your own packager instance if you          │
 │  prefer.                                                                   │
 │                                                                            │
 │  https://github.com/facebook/react-native                                  │
 │                                                                            │
 └────────────────────────────────────────────────────────────────────────────┘
Looking for JS files in
   /Users/rettig/wip/React-Native-example-FLUX-starter-kit-for-ios

[10:55:17] <START> Building Dependency Graph
[10:55:17] <START> Crawling File System
[10:55:17] <START> Loading bundles layout
[10:55:17] <END>   Loading bundles layout (0ms)

React packager ready.

[10:55:18] <END>   Crawling File System (890ms)
[10:55:18] <START> Building in-memory fs for JavaScript
[10:55:18] <END>   Building in-memory fs for JavaScript (285ms)
[10:55:18] <START> Building in-memory fs for Assets
[10:55:19] <END>   Building in-memory fs for Assets (227ms)
[10:55:19] <START> Building Haste Map
[10:55:19] <START> Building (deprecated) Asset Map
[10:55:19] <END>   Building (deprecated) Asset Map (109ms)
[10:55:21] <END>   Building Haste Map (1951ms)
[10:55:21] <END>   Building Dependency Graph (3355ms)
Rebuilding haste map to recover from error
Rebuilding haste map to recover from error
Rebuilding haste map to recover from error
...

Finally, when trying to compile in iOS, I get the following error:

React-Native-example-FLUX-starter-kit-for-ios/iOS/AppDelegate.m:39:48: No visible @interface for 'RCTRootView' declares the selector 'initWithBundleURL:moduleName:launchOptions:'