Uploaded image for project: 'Appcelerator CLI'
  1. Appcelerator CLI
  2. CLI-940

iOS: Unable to package project. 'Undefined is not a function'

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 5.2.0, Release 5.1.1
    • Fix Version/s: Release 5.2.0
    • Component/s: Core
    • Environment:

      MacOS 10.11.3 (15D21)
      Studio 4.5.0.201602111338
      Ti SDK 5.2.0.v20160210114026
      Appc NPM 4.2.3-2
      Appc CLI 5.2.0-255
      Alloy 1.7.33
      Xcode 7.2 (7C68)

    • Severity:
      Blocker
    • Story Points:
      5
    • Sprint:
      2016 Sprint 03 Tooling

      Description

      When trying to package a project for iOS, store or adhoc, I receive the following error:

      2016-02-11T23:38:06.145Z | ERROR  | An uncaught exception was thrown!
      undefined is not a function
      2016-02-11T23:38:06.147Z | ERROR  | undefined is not a function
      2016-02-11T23:38:06.149Z | TRACE  | TypeError: undefined is not a function
          at executeCommand (/Users/Eric/.appcelerator/install/5.2.0-255/package/lib/core.js:402:79)
          at Object.checkLoginAndLoadPlugins (/Users/Eric/.appcelerator/install/5.2.0-255/package/lib/core.js:381:9)
          at Command.<anonymous> (/Users/Eric/.appcelerator/install/5.2.0-255/package/bin/commands/run.js:44:14)
          at Command.<anonymous> (/Users/Eric/.appcelerator/install/5.2.0-255/package/lib/commander.js:98:13)
          at Command.listener (/Users/Eric/.appcelerator/install/5.2.0-255/package/node_modules/commander/index.js:301:8)
          at Command.emit (events.js:110:17)
          at Command.parseArgs (/Users/Eric/.appcelerator/install/5.2.0-255/package/node_modules/commander/index.js:615:12)
          at Command.parse (/Users/Eric/.appcelerator/install/5.2.0-255/package/node_modules/commander/index.js:458:21)
          at Command.program.parse (/Users/Eric/.appcelerator/install/5.2.0-255/package/lib/commander.js:66:15)
          at Object.<anonymous> (/Users/Eric/.appcelerator/install/5.2.0-255/package/bin/appc:162:27)
      

      Steps to reproduce issue
      1. Create a new project (Classic or Alloy)
      2. Try to package the project for App Store or Adhoc

      Expected Results
      The project is packaged successfully without error.

      Actual Results
      The above error is encountered and packaging fails.

      Notes
      Packaging from the CLI is working as expected.
      No Studio logs are generated.

        Attachments

          Activity

            People

            • Assignee:
              fmiao Feon Sua Xin Miao
              Reporter:
              ewieber Eric Wieber
            • Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code