Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23756] iOS: Build fails if project name matches file/folder in built app

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2016-08-15T04:51:18.000+0000
Affected Version/sRelease 5.4.0
Fix Version/sRelease 5.5.0
ComponentsiOS, Tooling
Labelsqe-5.4.0
ReporterEric Wieber
AssigneeChris Barber
Created2016-08-10T18:32:45.000+0000
Updated2016-08-16T20:49:51.000+0000

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)

Comments

  1. Chris Barber 2016-08-12

    Master PR: https://github.com/appcelerator/titanium_mobile/pull/8209 6_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/8210 5_5_X PR: https://github.com/appcelerator/titanium_mobile/pull/8211
  2. Chee Kiat Ng 2016-08-15

    PRs merged.
  3. Eric Wieber 2016-08-16

    Verified fixed, using: MacOS 10.12 (16A239m) Studio 4.7.0.201607250649 Ti SDK 5.5.0.v20160815165906 Appc NPM 4.2.7 Appc CLI 5.4.0 Alloy 1.9.1 Xcode 8.0 (8S201h) Builds now error out when building an app with a name from the built app, with the message:
       [ERROR] The app name conflicts with a reserved file.
       [ERROR] You must change the name of the app in the tiapp.xml.
       
    This prevents the user from getting to the error from the ticket. Tested by creating and building projects with names from the 'failing' list, above.

JSON Source