ti.crypto includes
ti.include
which has now been removed in titanium and replaced with
.require
.
[ERROR] TiExceptionHandler: (main) [1540,1540] /app.js:23
[INFO] I/ti.crypto.app: Waiting for a blocking GC ProfileSaver
[ERROR] TiExceptionHandler: Ti.include('ui.js');
[ERROR] TiExceptionHandler: ^
[ERROR] TiExceptionHandler: TypeError: Ti.include is not a function
[ERROR] TiExceptionHandler: at /app.js:23:4
[ERROR] TiExceptionHandler: at Module._runScript (ti:/module.js:587:9)
[ERROR] TiExceptionHandler: at Module.load (ti:/module.js:106:7)
[ERROR] TiExceptionHandler: at Module.loadJavascriptText (ti:/module.js:436:9)
[ERROR] TiExceptionHandler: at Module.loadAsFile (ti:/module.js:488:15)
[ERROR] TiExceptionHandler: at Module.loadAsFileOrDirectory (ti:/module.js:410:20)
[ERROR] TiExceptionHandler: at Module.require (ti:/module.js:239:23)
*+Test Steps:+*
Build module
Copy the the code from the example
Paste the code into a Titanium application
Add module to app
Run Titanium application
*Expected result*
Application should not crash and run without issues.
*Actual result*
Application throws above error
*To be done:*
Update the example code with fixes done in Android here...
https://github.com/appcelerator-modules/ti.crypto/pull/13
After adding fixes done for Android module, iOS gives error which need to be fixed.
[TRACE] [ERROR] Script Error {
[TRACE] [ERROR] column = 8;
[TRACE] [ERROR] line = 25;
[TRACE] [ERROR] message = "Maximum call stack size exceeded.";
[TRACE] [ERROR] sourceURL = "file:///Users/axwayroot/Library/Developer/CoreSimulator/Devices/30071698-1263-4D45-A7A3-1BD6F3CE40C8/data/Containers/Bundle/Application/99E17B7A-7D07-4C1F-8DA7-3F4C3EC1AD78/crypto.app/app.js";
[TRACE] [ERROR] stack = " at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code])";
[TRACE] [ERROR] toJSON = "
";
[TRACE] [ERROR] }
PR - https://github.com/appcelerator-modules/ti.crypto/pull/14 resolved the previous TI.Module not found issue so now able to run the example successfully. Though couple of issues are coming when clicking the internal functionality. working on the issues.
The PR: https://github.com/appcelerator-modules/ti.crypto/pull/15 addressing all the issue crypto module had. There were crash coming while trying to open the single call and multiple call table view cell of crypto module. this issue has also been resolved by above PR.
Verified on below environment: *Mac OS X* = 10.15 *Xcode*: 11.3.1 *Node.js Version* = 12.16.0 *CLI Version* = 5.2.2 *Emulator* : Nexus6_API27 (8.1.0) *iOS Simulator* = iPhone 11 Pro Max (13.3) Its working fine so closing this ticket. Attaching logs for reference.