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

iOS: Autolayout does not work with latest master / Build fails

    Details

    • Story Points:
      2
    • Sprint:
      2016 Sprint 07 SDK

      Description

      Nothing more to say. Copy <use-app-thinning>true</use-app-thinning> in the <ios> section of your tiapp.xml and run the project. Make sure you use a 5.4.0 build (scons'd or from the build server).

      The build will fail with the following error:

      [ERROR] ** BUILD FAILED **
      [ERROR] The following build commands failed:
      [ERROR]         CompileC build/Intermediates/test.build/Debug-iphonesimulator/test.build/Objects-normal/i386/TiUIScrollableView.o Classes/TiUIScrollableView.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
      [ERROR] (1 failure)
      

      It can be traced to here:

      [TRACE] /Users/hans/Desktop/test/build/iphone/Classes/TiUIScrollableView.m:634:33: error: use of undeclared identifier 'scrollview'; did you mean '_scrollView'?
      [TRACE]         if (showPageControl && (scrollview!=nil) && ([[scrollview subviews] count]>0)) {
      [TRACE]                                 ^~~~~~~~~~
      [TRACE]                                 _scrollView
      [TRACE] In file included from /Users/hans/Desktop/test/build/iphone/Classes/TiUIScrollableView.m:11:
      [TRACE] /Users/hans/Desktop/test/build/iphone/Classes/TiUIScrollableView.h:17:19: note: '_scrollView' declared here
      [TRACE]     UIScrollView* _scrollView;
      [TRACE]                   ^
      [TRACE] /Users/hans/Desktop/test/build/iphone/Classes/TiUIScrollableView.m:634:56: error: use of undeclared identifier 'scrollview'; did you mean '_scrollView'?
      [TRACE]         if (showPageControl && (scrollview!=nil) && ([[scrollview subviews] count]>0)) {
      [TRACE]                                                        ^~~~~~~~~~
      [TRACE]                                                        _scrollView
      [TRACE] In file included from /Users/hans/Desktop/test/build/iphone/Classes/TiUIScrollableView.m:11:
      [TRACE] /Users/hans/Desktop/test/build/iphone/Classes/TiUIScrollableView.h:17:19: note: '_scrollView' declared here
      [TRACE]     UIScrollView* _scrollView;
      [TRACE]                   ^
      [TRACE] /Users/hans/Desktop/test/build/iphone/Classes/TiUIScrollableView.m:646:33: error: use of undeclared identifier 'scrollview'; did you mean '_scrollView'?
      [TRACE]         if (showPageControl && (scrollview!=nil) && ([[scrollview subviews] count]>0)) {
      [TRACE]                                 ^~~~~~~~~~
      [TRACE]                                 _scrollView
      [TRACE] In file included from /Users/hans/Desktop/test/build/iphone/Classes/TiUIScrollableView.m:11:
      [TRACE] /Users/hans/Desktop/test/build/iphone/Classes/TiUIScrollableView.h:17:19: note: '_scrollView' declared here
      [TRACE]     UIScrollView* _scrollView;
      [TRACE]                   ^
      [TRACE] /Users/hans/Desktop/test/build/iphone/Classes/TiUIScrollableView.m:646:56: error: use of undeclared identifier 'scrollview'; did you mean '_scrollView'?
      [TRACE]         if (showPageControl && (scrollview!=nil) && ([[scrollview subviews] count]>0)) {
      [TRACE]                                                        ^~~~~~~~~~
      [TRACE]                                                        _scrollView
      [TRACE] In file included from /Users/hans/Desktop/test/build/iphone/Classes/TiUIScrollableView.m:11:
      [TRACE] /Users/hans/Desktop/test/build/iphone/Classes/TiUIScrollableView.h:17:19: note: '_scrollView' declared here
      [TRACE]     UIScrollView* _scrollView;
      [TRACE]                   ^
      [TRACE] 4 errors generated.
      

      Which is suspicious, because the related code is only generated if the `#ifdef TI_USE_AUTOLAYOUT` is added and it is added by our build CLI.

      As it's related to the ScrollableView, it might already be obsolete, because Chee Kiat Ng is working on major bugfixes & improvements in that class. But we should leave it here to be tracked.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cng Chee Kiat Ng (Inactive)
                Reporter:
                hknoechel Hans Knöchel
                Reviewer:
                Hans Knöchel
                Tester:
                Harry Bryant
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration