Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3023] iOS: ImageFactory module error - [TiUtils isIOS4OrGreater]: unrecognized selector sent to class

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2011-12-26T14:43:30.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAppcelerator Modules, Titanium SDK & CLI
Labelsios
ReporterScott Mason
AssigneeMauro Parra-Miranda
Created2011-12-26T13:56:15.000+0000
Updated2016-03-08T07:48:03.000+0000

Description

The following API calls into the module fail expecting to find the TiUtils isIOS4OrGreater procedure: imageAsThumbnail imageAsResized The simulator log is shown below. [INFO] One moment, building ... [INFO] Detected third-party module: ti.imagefactory/1.0 [INFO] Detected third-party module: ti.imagefactory/1.0 [INFO] Titanium SDK version: 1.8.0.1 (12/22/11 13:09 fbdc96f) [INFO] iPhone Device family: iphone [INFO] iPhone SDK version: 5.0 [INFO] iPhone simulated device: iphone [INFO] Launching application in Simulator [INFO] Launched application in Simulator (1.09 seconds) [INFO] Found 5.0 patch installed [INFO] Application started [INFO] Image Factory/1.0 (1.8.0.1.fbdc96f) [INFO] [object TiImagefactoryModule] loaded [INFO] module is => [object TiImagefactoryModule] [INFO] imageWithAlpha [INFO] Done [INFO] imageWithTransparentBorder [INFO] Done [INFO] imageWithRoundedCorner [INFO] Done [INFO] imageAsThumbnail [INFO] Failed - {"message":"+[TiUtils isIOS4OrGreater]: unrecognized selector sent to class 0x3fe254","line":182,"sourceId":175233952,"sourceURL":"file://localhost/Users/sam/Library/Application%20Support/iPhone%20Simulator/5.0/Applications/F592638A-4AAB-4D8B-8F45-84D23AF2C5E7/Image%20Factory.app/app.js"} [INFO] imageAsResized (LOW) [INFO] Failed - {"message":"+[TiUtils isIOS4OrGreater]: unrecognized selector sent to class 0x3fe254","line":187,"sourceId":175233952,"sourceURL":"file://localhost/Users/sam/Library/Application%20Support/iPhone%20Simulator/5.0/Applications/F592638A-4AAB-4D8B-8F45-84D23AF2C5E7/Image%20Factory.app/app.js"} [INFO] imageAsResized (HIGH) [INFO] Failed - {"message":"+[TiUtils isIOS4OrGreater]: unrecognized selector sent to class 0x3fe254","line":192,"sourceId":175233952,"sourceURL":"file://localhost/Users/sam/Library/Application%20Support/iPhone%20Simulator/5.0/Applications/F592638A-4AAB-4D8B-8F45-84D23AF2C5E7/Image%20Factory.app/app.js"} [INFO] imageAsCropped [INFO] Done [INFO] imageAsTransform (cropped,rounded) [INFO] Done The attached Test project may be used to reproduce the error and validate the fix. Click the top button (labeled "Add Alpha") to cycle through the transformations. The error will occur on the fourth click when the button is labeled "Thumbnail" and will fail for the next two clicks as the imageAsResized function is used in both LOW and HIGH compression modes.

Attachments

FileDateSize
TestProject.zip2011-12-26T14:16:58.000+00002571250

Comments

  1. Scott Mason 2011-12-26

    This report pertains only to iOS operating system.
  2. Paul Dowsett 2011-12-26

    Scott Thank you for raising this, but it is a duplicate of an existing ticket. Also, even though you cloned that other ticket, you did not follow the format. For both of these reasons, I cannot accept it. However, your attached project may well be useful. I have added it to the other ticket. Thank you for providing it. If this issue is important to you, watch ticket TC-502. Cheers
  3. Mauro Parra-Miranda 2013-11-24

    DUP issue.

JSON Source