"REACT NATIVE Series Tutorial Ten" Real machine operation error command/bin/sh FAILED with EXIT CODE 1 workaround

Source: Internet
Author: User

This site article is Li Himi original, reproduced must be clearly noted:
Reprinted from "Black Rice gamedev Block" original link: http://www.himigame.com/react-native/2315.html

Himi recently encountered command/bin/sh failed with exit code 1 error in a real machine run, the emulator runs without any problems. This issue has been resolved, where the solution is shared.

First look at the error log, such as:

650) this.width=650; "class=" Alignnone size-medium wp-image-2316 "src=" http://www.himigame.com/wp-content/uploads/ 2016/06/112321-300x149.png "alt=" 112321 "width=" "height=" 149 "style=" margin:0px;padding:1px;border:1px solid RGB (97,146,140); font-family:inherit;font-size:inherit;font-style:inherit;line-height:inherit;height:auto; "/>

It is mainly the underlined part:

1.PhaseScriptExecution bundle\ react\ native\ code\ and\ images ...

2. Command/bin/sh failed with exit code 1

Workaround:

1. Select item, Targets->build phases-> "Bundle React Native code and images"

2. Tick "Run script only when installing", such as:

650) this.width=650; "class=" Alignnone size-medium wp-image-2320 "src=" http://www.himigame.com/wp-content/uploads/ 2016/06/34231-300x104.png "alt=" 34231 "width=" "height=" 104 "style=" margin:0px;padding:1px;border:1px solid RGB ( 97,146,140); font-family:inherit;font-size:inherit;font-style:inherit;line-height:inherit;height:auto; "/>

3.Clean Project, re-run it.

This article is from the "Li Himi" blog, please be sure to keep this source http://xiaominghimi.blog.51cto.com/2614927/1785442

"REACT NATIVE Series Tutorial Ten" Real machine operation error command/bin/sh FAILED with EXIT CODE 1 workaround

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.