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

iOS: Using ScrollView without RefreshControl breaks build

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 8.0.0
    • Component/s: iOS
    • Labels:
    • Environment:

      Titanium SDK 8.0.0.v20181219075358

    • Sprint:
      2018 Sprint 26

      Description

      Using Ti.UI.ScrollView without Ti.UI.RefreshControl breaks the build.

      Steps to reproduce the behavior

      • Use the following code in a classic app to create a basic scroll view:

        const win = Ti.UI.createWindow();
        const scrollView = Ti.UI.createScrollView({
          height: '80%',
          width: '80%'
        });
        const view = Ti.UI.createView({
          backgroundColor:'#336699',
          borderRadius: 10,
          top: 10,
          height: 2000,
          width: 1000
        });
        scrollView.add(view);
        // Uncomment this to fix the build
        //const refreshControl = Ti.UI.createRefreshControl();
        //scrollView.refreshControl = refreshControl;
        win.add(scrollView);
        win.open();
        

      • Build and run the app for iOS device or simulator

      Actual behavior
      Building the app fails with the following error:

      [TRACE] /Users/jvennemann/Development/appc/hyperloop-examples/build/iphone/Classes/TiUIScrollView.m:367:3: error: expected expression
      [TRACE]   ENSURE_SINGLE_ARG_OR_NIL(args, TiUIRefreshControlProxy);
      [TRACE]   ^
      [TRACE] In module 'TitaniumKit' imported from /Users/jvennemann/Development/appc/hyperloop-examples/build/iphone/Classes/TiUIScrollView.h:15:
      [TRACE] Frameworks/TitaniumKit.framework/Headers/TiBase.h:158:15: note: expanded from macro 'ENSURE_SINGLE_ARG_OR_NIL'
      [TRACE]       x = (t *)[x objectAtIndex:0];                                                                                                                                          \
      [TRACE]               ^
      [TRACE] /Users/jvennemann/Development/appc/hyperloop-examples/build/iphone/Classes/TiUIScrollView.m:367:34: error: use of undeclared identifier 'TiUIRefreshControlProxy'
      

      Expected behavior
      The build should run without any errors.

      Additional notes
      This was introduced by https://github.com/appcelerator/titanium_mobile/pull/10103

        Attachments

          Activity

            People

            • Assignee:
              jvennemann Jan Vennemann
              Reporter:
              jvennemann Jan Vennemann
              Reviewer:
              Christopher Williams
              Tester:
              Samir Mohammed
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code