[TIMOB-23756] iOS: Build fails if project name matches file/folder in built app
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-08-15T04:51:18.000+0000 |
Affected Version/s | Release 5.4.0 |
Fix Version/s | Release 5.5.0 |
Components | iOS, Tooling |
Labels | qe-5.4.0 |
Reporter | Eric Wieber |
Assignee | Chris Barber |
Created | 2016-08-10T18:32:45.000+0000 |
Updated | 2016-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)
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
PRs merged.
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:
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.