-
-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xcode running on devices crashes with error unable to create file *.hot-update.json #4846
Comments
I read somewhere changing build system to "Legacy Build System" would resolve issue, unfortunately that is not accurate. Am thinking this might be an issue with Angular 8, i created a new project after downgrading to below:
However I still get same error, going to attempt to downgrade angular to 7, see if issue might be angular, I highly doubt it though Angular version
|
Hey @isawk , |
Added —release and all works as expected. Thank you.
On Tue, 16 Jul 2019 at 10:21, Rosen Vladimirov ***@***.***> wrote:
Hey @isawk <https://github.com/isawk> ,
Thank you for the report. Currently when you do not pass --release flag
to the command, CLI enables Hot Module Replacement (HMR) by default. When
the application with HMR enabled is run on device, it tries to create some
files, but it does not have permissions to do so. We'll update our CLI to
enable HMR only when run, debug, test or preview command is executed.
When you run prepare or build, we'll not enable it and this way you'll be
able to run your application through Xcode.
As a workaround you can pass --release flag to your build command - this
way CLI will not enable HMR and you'll be able to continue using Xcode.
Can you give it a try and inform us if the suggested workaround works on
your side?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4846?email_source=notifications&email_token=AFANXKLWO3IHW7STAVDHBXLP7WAG5A5CNFSM4IDTLSR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2ACZHY#issuecomment-511716511>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFANXKIBWNORDN3JHIMG6O3P7WAG5ANCNFSM4IDTLSRQ>
.
--
Kwasi Gyasi-Agyei
I am part of an *EDGED* crowd
*Mobile* +27 (81) 466 4488
*Email* kwasi@edged.agency
*Skype* kwasi.gyasiagyei
*Web* http://edged.agency
|
in terminal run Then go to xcode and run build or archive. Apparently xcode does not recompile the js bundle. Also, THANK YOU SO MUCH |
@isawk commented on Sun Jul 14 2019
Environment
Provide version numbers for the following components (information can be retrieved by running
tns info
in your project folder or by inspecting thepackage.json
of the project):Describe the bug
Running application on ios device fails with error
See full stack trace below, before error
To Reproduce
Proceed to building the project as normal, below works with no errors.
$ tns build ios --env.aot --env.uglify --env.sourceMap --bundle
Open up project in xcode, after signing with provisioning profile etc, launch on device. All builds well but on run fails with reported error below.
Expected behavior
Sample application should run with no errors seems like a HMR issue, which is enabled even without --hmr flag been used.
Sample project
ns-6rc-debugging
Additional context
(Unrelated to above but bug I picked up when migrating project from 5 to 6)
Also noticed existing old NS 5 projects fail to build with error
These are projects migrated from NS 5 to RC 6 using tns migrate command. Probably related to angular upgrade from 7 to 8.
The text was updated successfully, but these errors were encountered: