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

iOS: Build fails if project name matches file/folder in built app

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 5.4.0
    • Fix Version/s: Release 5.5.0
    • Component/s: iOS, Tooling
    • Labels:
    • Environment:

      MacOS 10.11.5 (15F31a)
      Studio 4.7.0.201607250649
      Ti SDK 5.4.0.v20160809033140
      Appc NPM 4.2.7
      Appc CLI 5.4.0-40
      Alloy 1.9.1
      Xcode 7.3.1 (7D1014)

    • Story Points:
      2
    • Sprint:
      2016 Sprint 16 Tooling

      Description

      If the project name is the same as a file in the built app (build/Products/Debug-<target>/<project_name>.app), then the build will fail.

      Steps to reproduce issue
      1. Create a new project with a name that matches a file in the built app (see below for a list of failing names)
      2. Run the project on an iOS device (simulators fail for some names, but device is more restrictive)

      Actual results
      The build fails with the below error(s)

      Expected results
      The build succeeds or you are notified that the name is invalid on creation/build

      Notes
      The names I have found that fail are:
      Frameworks, Assets.car, Info.plist, modules, PkgInfo, _CodeSignature, LaunchScreen.storyboardc, hyperloop (if hyperloop is enabled/referenced in the project)

      If the project name matches a folder in the build app then you will have the executable of that name, but not the folder.

      Errors
      One of the below is seen on failure:

      [ERROR] ** BUILD FAILED **
      [ERROR] The following build commands failed:
      [ERROR]         GenerateDSYMFile build/Products/Debug-iphoneos/LaunchScreen.storyboardc.app.dSYM build/Products/Debug-iphoneos/LaunchScreen.storyboardc.app/LaunchScreen.storyboardc
      [ERROR] (1 failure)
      

      [ERROR] ** BUILD FAILED **
      [ERROR] The following build commands failed:
      [ERROR]         CodeSign build/Products/Debug-iphoneos/_CodeSignature.app
      [ERROR] (1 failure)
      

        Attachments

          Activity

            People

            • Assignee:
              cbarber Chris Barber
              Reporter:
              ewieber Eric Wieber (Inactive)
              Reviewer:
              Chee Kiat Ng (Inactive)
              Tester:
              Eric Wieber (Inactive)
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration