react-native使用中にシミュレータを起動しようとしたのですが
下記のエラーにハマってしまって
シミュレーターを起動できなくて
困っています。。。
ご存知の方、いらっしゃいましたらお伺いできますと幸いです。
シンタックスエラーに関しては
何度かチェックしたので問題ないかと思います。
シミュレータ画面
Failed to load bundle(http://localhost:8081/index.bundle? platform=ios&dev=true&minify=false) with error:(/Users/sugawarasyuta/Desktop/albums/index.js: Cannot read property 'bindings' of null(null))
index.js
// import a library to help create a component import React from 'react'; import { AppRegistry,View } from 'react-native'; import Header from './src/components/header'; import AlbumList from './src/components/AlbumList'; //Create a component const App = () => ( <View> <Header headerText= {'albums'} /> <AlbumList /> </View> ); AppRegistry.registerComponent('albums', () => App );
AlbumList.js
import React,{Component}from 'react'; import {View, Text} from 'react-native'; import axios from 'axios'; class AlbumList extends Component { componentWillMount(){ axios.get('https://rallycoding.herokuapp.com/api/music_albums') .then(response => console.log(response)); } render(){ return( <View> <Text>AlbumList!!!</Text> </View> ); } } export default AlbumList;
ターミナル画面
/usr/bin/codesign --force --sign - --entitlements /Users/sugawarasyuta/Desktop/albums/ios/build/Build/Intermediates.noindex/albums.build/Debug-iphonesimulator/albums.build/albums.app.xcent --timestamp=none /Users/sugawarasyuta/Desktop/albums/ios/build/Build/Products/Debug-iphonesimulator/albums.app /Users/sugawarasyuta/Desktop/albums/ios/build/Build/Products/Debug-iphonesimulator/albums.app: resource fork, Finder information, or similar detritus not allowed Command /usr/bin/codesign failed with exit code 1 ** BUILD FAILED ** The following build commands failed: CodeSign build/Build/Products/Debug-iphonesimulator/albums.app (1 failure) Installing build/Build/Products/Debug-iphonesimulator/albums.app Launching org.reactjs.native.example.albums org.reactjs.native.example.albums: 8385
あなたの回答
tips
プレビュー