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

Hyperloop: UIColor type properties is not working with Xcode 8 beta

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 5.5.0
    • Fix Version/s: Release 5.5.0, hyperloop 1.2.7
    • Component/s: Hyperloop, iOS, Tooling
    • Labels:
    • Environment:

      Mac OSX El Capitan 10.11.6
      
Appc NPM: 4.2.7
      Appc CLI: 5.5.0-5
      
Ti SDK: 5.5.0.v20160822000355
      Hyperloop: 1.2.6
      Cocoapods: 1.0.1
      Xcode 8 beta 6 / 7.3.1
      Node: v4.4.4

    • Story Points:
      7
    • Sprint:
      2016 Sprint 18 Tooling

      Description

      In Xcode 8 beta 6 on the build of the application the instance of redColor is generated but not the class.

      Steps to reproduce:

      1. Download the Xcode beta
      2. Select to use the beta version of Xcode xcode-select -s <xcode beta location>
      3. Create a new application with hyperloop
      4. Use the app.js below in the application
      5. appc run -p ios
      6. Select to use the GA version of Xcode xcode-select -s <xcode GA location>
      7. appc run -p ios

      App.js

      var UIView = require('UIKit/UIView'),
      	UIColor = require('UIKit/UIColor'),
      	UIImage = require('UIKit/UIImage'),
      	CGRectMake = require('CoreGraphics').CGRectMake;
       
      var win = Ti.UI.createWindow({
      	backgroundColor: 'white',
      	layout: 'vertical'
      });
      var view = UIView.alloc().initWithFrame(CGRectMake(10, 10, 50, 50));
      view.backgroundColor = UIColor.redColor();
      win.add(view);
      win.open();
      

      Actual when using Xcode 8 beta 6

      [ERROR] Script Error {
      [ERROR]     column = 40;
      [ERROR]     line = 11;
      [ERROR]     message = "UIColor.redColor is not a function. (In 'UIColor.redColor()', 'UIColor.redColor' is undefined)";
      [ERROR]     sourceURL = "file:///Users/Josh/Library/Developer/CoreSimulator/Devices/D5EEC5AB-078C-46AA-AC55-05BBBD410CB7/data/Containers/Bundle/Application/6680ADD3-DB71-4F72-8610-D837D5476666/Hyperloop%20forward%20testing.app/app.js";
      [ERROR] } 
      

      Expected

      The application runs as it does in Xcode 7.3.1

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jvennemann Jan Vennemann
                Reporter:
                jlongton Josh Longton
                Reviewer:
                Hans Knöchel
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration