2016-04-25 12 views
0

iOSデバイスにビルドしようとしていますが、シミュレータをビルドするとうまく動作します。 これは私が得るものです:私は画像アセットに何か問題があると仮定しているデバイスへのネイティブビルドに失敗しました

uncaught error Error: TypeError: unsupported file type at lookup (/Users/NAME/git/vex/vex-app react/VexAppReact/node_modules/image-size/lib/index.js:35:9)
at /Users/NAME/git/vex/vex-app-react/VexAppReact/node_modules/image-size/lib/index.js:93:22
at /Users/NAME/git/vex/vex-app-react/VexAppReact/node_modules/image-size/lib/index.js:50:9
at /Users/NAME/git/vex/vex-app-react/VexAppReact/node_modules/graceful-fs/graceful-fs.js:43:10
at FSReqWrap.oncomplete (fs.js:82:15)
See logs /var/folders/h8/42h3w_qd2r9fvpwy99jsnjq40000gn/T/react-packager.log
at SocketClient._handleMessage (SocketClient.js:144:23)
at BunserBuf. (SocketClient.js:53:42)
at emitOne (events.js:90:13)
at BunserBuf.emit (events.js:182:7)
at BunserBuf.process (/Users/NAME/git/vex/vex-app-react/VexAppReact/node_modules/bser/index.js:289:10)
at /Users/NAME/git/vex/vex-app react/VexAppReact/node_modules/bser/index.js:244:12
at nextTickCallbackWith0Args (node.js:452:9)
at process._tickCallback (node.js:381:13)
Command /bin/sh failed with exit code 1

image-sizeノードモジュールを自分でインストールしていないので、そのモジュールに問題があるとは思われません。

答えて

0

ソリューション:どうやらあなたはネイティブIOSへのPNGファイルを追加することはできませんねえ@Harbinger私はimages.xcassetsを削除し、名前のイメージでフォルダ内のすべての画像を追加した

+0

を構築するが、それでも私は同じエラーを取得メートル:( –

関連する問題