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

CLI: iOS compiler breaks and compiles incorrectly when building to device - 6.3.0

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 6.3.0
    • Fix Version/s: Release 7.0.1
    • Component/s: iOS
    • Environment:

      iOS Devices
      Titanium SDK 6.3.0 (but also all other versions after install)
      Mac OSX

      Description

      Hi, I am having some issues with the compiler for iOS on Titanium 6.3.0 - when it compiles to the simulator it works fine but Device compiler breaks things.

      I have gotten the error down to standalone code on blank appcelerator classic app it build to ios device:

      Add this code to the app.js and build

      var virtualScroller = {
              getView: function(i) {
                  
                  var web_view = Ti.UI.createWebView({
                          
                      });        
                  
                  web_view.addEventListener('click', function(){            
                      
                  });
                  
                  return web_view;
              },
              start: 1,
              infinite: false,
              itemCount: 12,
          };
      

      check the build version of app_js

      var virtualScroller={getView:function(){var a=Ti.UI.createWebView({});return a.addEventListener('click',function(){}),a},start:1,infinite:!1,itemCount:12};
      

      notice that the ```return`` is before the eventlisteners and other values, this causes the code to return out and not function as it should

        Attachments

          Activity

            People

            • Assignee:
              fmiao Feon Sua Xin Miao
              Reporter:
              dieskim David van de Meer
              Tester:
              Samir Mohammed
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code