[AC-3023] iOS: ImageFactory module error - [TiUtils isIOS4OrGreater]: unrecognized selector sent to class
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2011-12-26T14:43:30.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Appcelerator Modules, Titanium SDK & CLI |
Labels | ios |
Reporter | Scott Mason |
Assignee | Mauro Parra-Miranda |
Created | 2011-12-26T13:56:15.000+0000 |
Updated | 2016-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
This report pertains only to iOS operating system.
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
DUP issue.