Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24054] Alloy: Can't name custom common js module folder as "modules"

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionWon't Fix
Resolution Date2016-10-21T02:37:54.000+0000
Affected Version/sRelease 5.5.0, Release 5.5.1
Fix Version/sn/a
ComponentsiOS
Labelsalloy, modules
Reporter Ricardo Ramirez
AssigneeEric Merriman
Created2016-10-19T21:09:10.000+0000
Updated2017-03-21T17:01:13.000+0000

Description

Issue Description

The folder modules inside app/lib/ can not be named modules, that is causing errors at running.

Steps to Replicate

Download the attached project

Run

Error will appear

Change the folder name inside app/lib from modules to modulez

Run

Project Works

This started on SDK 5.5.0 and 5.5.1

Attachments

FileDateSize
Test.zip2016-10-19T21:09:06.000+000010473498

Comments

  1. Chee Kiat Ng 2016-10-20

    [~cbarber] thoughts? My understanding is "modules" means something to our build tools, and it's ill-advised for our customers to namefolders with this. Either a) we deem it's ok to have custom folder names in app/lib b) or we document somewhere please don't use "modules" in the following folders. Not marking this ticket as critical since the workaround is NOT to use "modules"
  2. Chris Barber 2016-10-20

    [~cng] I'm not sure about Alloy, but you cannot name your app "modules" because the compiled executable "modules" would collide with the "modules" directory that stores module assets. The iOS build has a list of blacklisted names that are disallowed app names and resources in the root of the Resources or platform-specific Resources directory. These blacklisted names either collide with a Titanium resource or are known red flags with Apple. From https://github.com/appcelerator/titanium_mobile/blob/master/iphone/cli/commands/_build.js#L72-L85: * contents * resources * plugins * watch * _codesignature * embedded.mobileprovision * info.plist * pkginfo * assets.car * modules * LaunchScreen.storyboardc * hyperloop
  3. Chee Kiat Ng 2016-10-20

    [~fmiao] thoughts?
  4. Hans Knöchel 2016-10-20

    [~cbarber] Do we have those documented in the Wiki? Would be good to add so we can refer to that in the future, thx!
  5. Chris Barber 2016-10-20

    [~hansknoechel] I doubt it.
  6. Hans Knöchel 2016-10-20

    Added the list [here](https://wiki.appcelerator.org/display/guides2/Creating+a+New+Project+File).
  7. Feon Sua Xin Miao 2016-10-20

    [~cng], not an alloy issue. As Chris mentioned, modules is blacklisted in the ios build.
  8. Lee Morris 2017-03-21

    Closing ticket as the issue will not fix.

JSON Source