Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Issue with several consecutive ios build in release #370

Closed
dtopuzov opened this issue Dec 20, 2017 · 3 comments
Closed

Issue with several consecutive ios build in release #370

dtopuzov opened this issue Dec 20, 2017 · 3 comments
Labels

Comments

@dtopuzov
Copy link
Contributor

Steps to reproduce:

tns create TestApp --template https://github.com/NativeScript/template-hello-world
<update modules, webpack and runtimes with next>
tns build ios --provision NativeScriptDevProfile --path TestApp --for-device  --release  --bundle
tns build ios --path TestApp --bundle  --release  --provision NativeScriptDevProfile --for-device  --env.uglify

Result:

WARNING in bundle.js from UglifyJs
Condition always true [bundle.js:168,4]

WARNING in vendor.js from UglifyJs
Side effects in initialization of unused variable chunk [vendor.js:67,16]
Side effects in initialization of unused variable anyGlobal [vendor.js:726,4]
Condition left of || always true [vendor.js:5095,13]
Side effects in initialization of unused variable InlineSelector [vendor.js:6427,4]
Dropping unreachable code [vendor.js:8360,4]
Declarations in unreachable code! [vendor.js:8360,4]
Side effects in initialization of unused variable result [vendor.js:9252,12]
Dropping unused variable nonQuoteURLRegEx [vendor.js:9166,4]
Side effects in initialization of unused variable AnimationInfo [vendor.js:9718,4]
Condition always true [vendor.js:12010,4]
Side effects in initialization of unused variable __tnsGlobalMergedModules [vendor.js:12156,4]
Side effects in initialization of unused variable name [vendor.js:22770,20]
Dropping unused function isLiteralExpression [vendor.js:23166,13]
Dropping unused function consumeSemicolon [vendor.js:23816,13]
Dropping unused function toNumber [vendor.js:24357,9]
Dropping unused function areSameValue [vendor.js:24369,9]
Side effects in initialization of unused variable numberIsNaN [vendor.js:24365,4]
Condition always true [vendor.js:28224,4]
Dropping unused variable u [vendor.js:28284,8]
Dropping unreachable code [vendor.js:28605,20]
Dropping unused variable u [vendor.js:28415,8]
Dropping unused variable u [vendor.js:28619,8]
Condition always true [vendor.js:32207,33]
Condition always true [vendor.js:32211,33]
Dropping unreachable code [vendor.js:32348,8]
Declarations in unreachable code! [vendor.js:32348,8]
Dropping unreachable code [vendor.js:33681,4]
Declarations in unreachable code! [vendor.js:33681,4]
Dropping side-effect-free statement [vendor.js:34770,0]

ipa size after first command: 12886119
ipa size after second command: 15292717

@dtopuzov
Copy link
Contributor Author

The same happens with two consecutive runs of this command:

tns build ios --provision NativeScriptDevProfile --path TestApp --for-device  --release  --bundle

@dtopuzov dtopuzov added the bug label Dec 20, 2017
@dtopuzov
Copy link
Contributor Author

Same for android, running same command two times produce larger apks:

node_modules/.bin/tns build android --path TestApp --bundle  --release  <all the signing options> --env.uglify

Apk after first run: 11285024
Apk after second run: 13896215

@dtopuzov dtopuzov removed the os: ios label Dec 20, 2017
@sis0k0
Copy link
Contributor

sis0k0 commented Dec 21, 2017

caused by NativeScript/nativescript-cli#3280

@sis0k0 sis0k0 closed this as completed Dec 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants