Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-14988

iOS: Error when opening a modal window : "NSCFString charValue: unrecognized selector"

    Details

      Description

      Update

      The issue is related to the fact the opened window is modal.
      Attached a small sample code showing the issue.

      Problem description

      'Journal' Alloy sample app (https://github.com/appcelerator/alloy/tree/master/test/apps/models/journal) is throwing an exception on iOS when using TiSDK 3.1.3 (tested using latest 3.1.3.v20130828104626).

      On Android it works as expected.

      The issue seems to be reproducible only using 3.1.3SDK - Alloy version is the latest GA.
      Using TiSDK 3.1.2.GA and Alloy 1.2.1.GA it works as expected on iOS.

      Steps to reproduce

      1. Grab the Alloy model sample 'Journal' (attached the whole project).
      2. Run on device or emulator (tested on a Iphone 5 with iOS 6.1.4 and on iPhone simulator version 6.0/Xcode4.6 and 7.0/Xcode5)
      3. Run the app and click on the 'add entry' button

      Result: Application Error red-screen is shown (see screenshot).

      Error log:

      [ERROR] :  Script Error {
      [ERROR] :      backtrace = "#0 () at file://localhost/Users/fcasali/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/F238416E-57EC-47D8-AD43-C6E3CBDFC826/Harness.app/alloy.js:214\n#1 addEntry() at file://localhost/Users/fcasali/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/F238416E-57EC-47D8-AD43-C6E3CBDFC826/Harness.app/alloy/controllers/index.js:37";
      [ERROR] :      line = 50;
      [ERROR] :      message = "-[__NSCFString charValue]: unrecognized selector sent to instance 0x149583e0";
      [ERROR] :      sourceId = 309899040;
      [ERROR] :      sourceURL = "file://localhost/Users/fcasali/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/F238416E-57EC-47D8-AD43-C6E3CBDFC826/Harness.app/alloy/controllers/add.js";
      [ERROR] :  }
      

      Full log attached.

        Attachments

          Activity

            People

            • Assignee:
              vduggal Vishal Duggal (Inactive)
              Reporter:
              fcasali Federico Casali
              Reviewer:
              Sabil Rahim
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-17298
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration