Ionic-cli: ionic build ios in windows does not update the files in the platforms/ios folder.

Created on 3 Nov 2016  Â·  8Comments  Â·  Source: ionic-team/ionic-cli

_From @mflmartin on November 2, 2016 21:8_

Short description of the problem:

When Building for IOS with ionic build ios, the modified files of the build are not copied again into platforms/ios, in Windows 10

What behavior are you expecting?

That they are updated.

Steps to reproduce:

  1. ionic start myapp --v2
  2. ionic platform add ios
  3. ionic build ios
  4. Test the platform (with a Mac). Ok. It works.
  5. Modify something in your project
  6. ionic build ios
  7. Boom. No files updated.
insert any relevant code between the above and below backticks

Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)

Which Ionic Version? 2.x

Run ionic info from terminal/cmd prompt: (paste output below)

Your system information:

Cordova CLI: 6.4.0
Gulp version: CLI version 3.9.1
Gulp local:
Ionic Framework Version: 2.0.0-rc.1
Ionic CLI Version: 2.1.4
Ionic App Lib Version: 2.1.2
Ionic App Scripts Version: 0.0.39
OS: WINDOWS 10
Node Version: v6.4.0

_Copied from original issue: driftyco/ionic-app-scripts#303_

old major version

Most helpful comment

Running an "ionic serve" before "ionic prepare ios" does the job.

All 8 comments

I think it is related to the .tmp folder not being deleted after it is iused by ionic.

I can confirm that if you delete the trailing .tmp folder that gets there, then ionic prepare ios does the job.

So it might be a question of ionic doing a force remove (rimraf maybe?) of the .tmp folder after it uses it for whatever purpose, because otherwise it is doing a cache of it's contents.

Same problem here... tried the .tmp solution without success.

I'm having this same issue exactly, but it is happening on IOS too. Nothing has seemed to be working. I've tried every single google solution possible.

I am having same issue on iOS.

Running an "ionic serve" before "ionic prepare ios" does the job.

I use "ionic cordova run ios" and it updates the code.

I have the same problem with platform „browser“ on macOS Sierra. First it was working, but now i get everytime an old build.

I‘ve tried the following:

  • removed www folder
  • removed platform and added it again
  • removed node_modules folder and again executed npm install
  • restarted my mac
  • running a „ionic serve“

Nothing works. Please give me a hint how to solve this. Thanks.

Thanks for the issue! This issue appears to be associated with an old version of the Ionic CLI. Please update to the latest CLI version, which supports all versions of the Ionic Framework. If the issue is relevant and if it persists after updating to the latest CLI version, please create a new issue.

Thank you for using Ionic!

Was this page helpful?
0 / 5 - 0 ratings