I have a weird issue that I face for the first time.
I have an app that works fine on developer mode. But after I create the distribution version, I get an exception on a file (which works fine on developer mode), I get the typical red screen error window indicating an exception. Upon creation of the distributed version, I do not get any errors or warnings on studio's console.
I know that when you distribute the app, titanium refactor the files for optimal performance. I tried to check the file generated in the build folder, but I cannot find anything wrong neither in the line indicated by the error window in the device (when I run the distributed version of the app from the device) or anywhere else in the file. I post below both my file and the generated one. Any ideas or help are more than welcome..
my file: http://pastie.org/4708597
the generated build file: http://pastie.org/4708604
this is definitely a titanium bug.
Actually, no. Titanium has no way of knowing which .js file is to be used in app and which is to be used in a webview.
For now, I just rename the js file that is being wrongly interpreted by the bytecode compiler. I remove the js extension in order to remain as it is.
is the best way to work around this.
Think you can help? Login to answer this question!