[TIMOB-24054] Alloy: Can't name custom common js module folder as "modules"
GitHub Issue | n/a |
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2016-10-21T02:37:54.000+0000 |
Affected Version/s | Release 5.5.0, Release 5.5.1 |
Fix Version/s | n/a |
Components | iOS |
Labels | alloy, modules |
Reporter | Ricardo Ramirez |
Assignee | Eric Merriman |
Created | 2016-10-19T21:09:10.000+0000 |
Updated | 2017-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
File | Date | Size |
Test.zip | 2016-10-19T21:09:06.000+0000 | 10473498 |
[~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"
[~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
[~fmiao] thoughts?
[~cbarber] Do we have those documented in the Wiki? Would be good to add so we can refer to that in the future, thx!
[~hansknoechel] I doubt it.
Added the list [here](https://wiki.appcelerator.org/display/guides2/Creating+a+New+Project+File).
[~cng], not an alloy issue. As Chris mentioned,
modules
is blacklisted in the ios build.Closing ticket as the issue will not fix.