3

im new to ionic and angular js. I was building my app succesfully using the ionic cli, now I am having an issue while building for ios which was working fine since yesterday. I have updated ionic, create new project but still cannot run this command "ionic build ios", however "ionic serve" works successfully. Please note that I am using a mac and these command were working fine before. Grateful if someone can help me. Thanks.

3
  • Hi there! Whats your node/npm version? Commented Mar 2, 2016 at 22:27
  • Hello, i have node v5.7.0 installed Commented Mar 3, 2016 at 5:20
  • Got exactly the same problem. Commented Mar 5, 2016 at 3:14

3 Answers 3

1

For people who are having this issue, it looks like it's a bug in Node 5.7.0, to be fixed in 5.7.1:

https://github.com/driftyco/ionic-cli/issues/815
https://issues.apache.org/jira/browse/CB-10675
https://github.com/nodejs/node/issues/5393

Downgrading your Node version or updating when 5.7.1 comes out should resolve the issue.

Sign up to request clarification or add additional context in comments.

1 Comment

changing node versions does not fix this.
1

Ok, just ran into the same issue, while building on iOS (Android worked fine). It seems that it has got to do with config.xml .

I had to put <access origin="mailto: ... launch-external="true"/> under <platform name="android"> and the issue was solved.

Hope that helps.

Comments

0

To solve this problem just move all <access origin="file:..." or <allow-navigation href="file:.." /> under <platform name="android"> in your config.xml

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.