Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2932] iOS Error: Script Error = invalid method (createLabel) passed to UIModule (unknown file).

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2012-11-07T22:20:10.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAppcelerator Modules, Titanium SDK & CLI
Labelsdevice, error, ios, script
ReporterEli Mor
AssigneeMauro Parra-Miranda
Created2012-05-21T13:01:33.000+0000
Updated2016-03-08T07:47:55.000+0000

Description

Slider does not render on device and when running the app, the following error is generated in the error log: ~message = "invalid method (createLabel) passed to UIModule";~ This is looks to be the result of the file located in a platform specific folder. when the file is under the resources folder, the object can render. To Duplicate 1. Create new titanium mobile project (Single Window Application) 2. Clean the project 3. Copy the file from resources/ui/common/FirstView.js to resources/iphone/ui/common/FirstView.js 4. Delete (or rename) resources/ui/common/FirstView.js 5. Run on device (iPhone 4S)

Attachments

FileDateSize
Archive.zip2012-05-21T13:01:33.000+00002321280
building for device.log2012-05-21T13:01:33.000+0000128497
building for simulator.log2012-05-21T13:01:33.000+00001098
iOS Simulator Screen shot May 21, 2012 1.53.46 PM.png2012-05-21T13:01:33.000+00007729
running on device.log2012-05-21T13:01:33.000+00001704
Running on Device.png2012-05-21T13:01:33.000+000086904

Comments

  1. Daniel Sefton 2012-10-08

    "Slider does not render on device and when running the app" - Slider? I've tested this and can't reproduce it, the label displays correctly on both the device and simulator when FirstView.js is in either folder. Can you try building against the 2.1.3 GA build?
  2. Daniel Sefton 2012-11-07

    Until a response is received, closing as "Cannot Reproduce".
  3. Eli Mor 2012-11-09

    This was fixed in later versions. Thanks for the follow up.

JSON Source