[AC-3389] iOS: app crash on device for appc-sourcecode-encryption-policy property
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Cannot Reproduce |
Resolution Date | 2016-04-18T06:15:46.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | adhoc, crash, debug, ios, skip-js-minify |
Reporter | Parijat sahai |
Assignee | Mostafizur Rahman |
Created | 2016-03-18T03:50:19.000+0000 |
Updated | 2016-04-18T06:15:46.000+0000 |
Description
My Titanium app that was last compiled for iOS in Feb was running fine in adhoc distribution mode. However, for some reason, the same app rebuilt now is crashing right after splash screen shows in adhoc distrib mode or "run" mode on the iOS device (iPhone 6s Plus). The same app when run in debug mode on the same device runs just fine without crashing. There is no crash in the Simulator either (for 6s Plus).
Please advise why the app crashes in run or distrib mode but runs just fine in debug mode. Need this resolved asap as I have spent over 2 days trying to figure that out with no success. I have seen various JIRA tickets and discussions on old Appcelerator support pages about the difference between run and debug mode being the "javascript minification" that can cause such issue. But even when I try to run or build adhoc distrib using the "--skip-js-minify" option on CLI or modify the Run Configuration in Studio to uncheck the "Enable Javascript Minification", the issue remains.
Please help!
Hello, Please provide a sample test code to test. It will be helpful to provide a valid solution if we are also able to regenerate the issue in our environment. If you are using any module in your app try using the latest version of the module. Please provide a sample regeneratable code. and also steps to follow. Thanks.
It took me a while to figure out the culprit. Here are the steps to reproduce the issue: 1) In Titanium Studio, create a new Mobile App project using Alloy Default template 2) Run the newly created project as-is to a USB attached iPhone 6s Plus (or probably ANY ios device). 3) Click on the app icon on the device and the app will launch just fine with Hello World on the screen. 4) Now go to the TiApp.xml file and edit it by adding the following parameter:
Hello, Thanks for sharing with us. I have tested that issue you reported. I am not able to reproduce this. But I have got the following error if I add this “*
*Test steps to reproduce:*
Open Appcelerator Studio.
Create default alloy project.
Run into the device ( iPad ).
Click on the icon of app and it is running successfully.
Copy the line *embed * this line and paste this in tiapp.xml file.
Run again into device ( iPad ) and got following error
You might want to clean out the build folder and try again.
HI, Tested the issue again with a clean build in latest SDK (5.2.2.GA). Followed all steps provided by *Parijat* and unable to reproduce the issue. Thanks