Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9025] iOS: Error message when distribute

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2012-05-07T20:50:21.000+0000
Affected Version/sRelease 2.0.1
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterJong Eun Lee
AssigneeNeeraj Gupta
Created2012-04-12T23:48:45.000+0000
Updated2017-03-22T21:49:02.000+0000

Description

When I use "Distribute - Apple app store" button, I got a *"UI element scripting is not enabled. Check "Enable access for assistive devices""* alert message. After that If I run on iPhone Simulator, I got a red message below. *That message is "'undefined' is not a function (evaluating 'Ti.UI.iPhone.createNavigationGroup()') (unknown file)"* Check attachment snapshot files. Thanks.

Attachments

FileDateSize
iOS Simulator.jpg2012-04-12T23:48:45.000+0000117745
system reference.jpg2012-04-12T23:48:45.000+000016100

Comments

  1. Betty Tran 2012-04-30

    Hi JongEun, Would it be possible to provide a small code sample that reproduces the issue? Thanks, Betty
  2. Jong Eun Lee 2012-05-07

    Resource/app.js
       var app = require('/ui/bootstrap');
       app.launch();
       
    \\ \\ Resource/iphone/ui/bootstrap.js
       exports.launch = function() {
       	var win = Ti.UI.createWindow({backgroundColor:'blue'});
       	win.open();
       };
       
    \\ \\ Follow these step,

    make default titanium mobile project

    delete all javascript file in Resource folder

    make app.js & bootstrap.js file (above code) (MAKE SURE bootstrap.js file location!! under "iphone/ui/")

    click "run iPhone Simulator" ( you can see blue screen :) )

    "Distribute - Apple ...."

    click "run iPhone Simulator" ( you can see error(red) screen :( )

    I should guess the problem is checking what Ti modules used. When distribute, Ti don't do this checking under /iphone/ folder?! If you move bootstrap.js file to /Resource/ui/ folder, It work properly. I hope this comment help you. Thanks, JongEun.
  3. Neeraj Gupta 2012-05-07

    The feature called 'Enable access for assistive devices' is found in the Universal Access preference pane. It needs to be enabled in order for any GUI AppleScripts to run. You can enable it from Terminal as well using the following command. To turn it on, type this in Terminal: sudo touch /private/var/db/.AccessibilityAPIEnabled To then disable it, type this: sudo rm /private/var/db/.AccessibilityAPIEnabled
  4. Jong Eun Lee 2012-05-07

    After follow above commend, System reference alert disapear. (system reference.jpg attachment) But Application Error message appear. (iOS Simulator.jpg attachment) please read my last commend. If you follow step, you can see application error message.
  5. Demostenes Garcia 2012-06-04

    JongEun Lee: did you manage to resolve this?
  6. Jong Eun Lee 2012-06-06

    Demostenes Garcia : No, I didn't. You can see this bug in 2.0.2GA. If you follow step on my previous comment, you can see application error message. :)
  7. Lee Morris 2017-03-22

    Closing ticket as invalid with reference to previous comments.

JSON Source