{ "id": "154504", "key": "TIMOB-20270", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11258", "description": "Holding Pen for Triaged Issues", "name": "Backlog", "archived": false, "released": false } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-12-13T09:57:23.000+0000", "created": "2016-01-25T18:46:11.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2018-08-06T17:49:15.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h6.Issue Description\r\nWhen creating an Appcelerator module the first XIB file was loaded. However, no tap/gesture were detected and we are unable to move/navigate to the next XIB file. \r\n\r\nh6.Steps to reproduce \r\n1) iOS native project which has 2 XIB files. On clicking \"Button\" you will move to the next XIB page with text \"Label\" \r\n2) Grab Appcelerator module \r\n3) Test Project with first page from Appcelerator view having text \"load XIB\". On click it will load the first page of native XIB. On clicking \"Button\" it crashes. See please logs below.\r\n\r\nh6.Stack Trace\r\n{code}\r\n-- Start simulator log -------------------------------------------------------\r\n[INFO] Application started\r\n[INFO] XibSampleProject/1.0 (5.1.1.e46100b)\r\n[INFO] [object ComAccentureXibmodModule] loaded\r\n[ERROR] The application has crashed with an uncaught exception 'NSInvalidArgumentException'.\r\n[ERROR] Reason:\r\n[ERROR] -[UIViewController buttonTapped:]: unrecognized selector sent to instance 0x7fb962c55320\r\n[ERROR] Stack trace:\r\n[ERROR] \r\n[ERROR] 0 CoreFoundation 0x000000010fa4fe4d __exceptionPreprocess + 141\r\n[ERROR] 1 libobjc.A.dylib 0x000000010f421deb objc_exception_throw + 48\r\n[ERROR] 2 CoreFoundation 0x000000010fa5848d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205\r\n[ERROR] 3 CoreFoundation 0x000000010f9a590a ___forwarding___ + 970\r\n[ERROR] 4 CoreFoundation 0x000000010f9a54b8 _CF_forwarding_prep_0 + 120\r\n[ERROR] 5 UIKit 0x000000010bf47194 -[UIApplication sendAction:to:from:forEvent:] + 92\r\n[ERROR] 6 UIKit 0x000000010c0b66fc -[UIControl sendAction:to:forEvent:] + 67\r\n[ERROR] 7 UIKit 0x000000010c0b69c8 -[UIControl _sendActionsForEvents:withEvent:] + 311\r\n[ERROR] 8 UIKit 0x000000010c0b5af8 -[UIControl touchesEnded:withEvent:] + 601\r\n[ERROR] 9 UIKit 0x000000010bfb649b -[UIWindow _sendTouchesForEvent:] + 835\r\n[ERROR] 10 UIKit 0x000000010bfb71d0 -[UIWindow sendEvent:] + 865\r\n[ERROR] 11 UIKit 0x000000010bf65b66 -[UIApplication sendEvent:] + 263\r\n[ERROR] 12 UIKit 0x000000010bf3fd97 _UIApplicationHandleEventQueue + 6844\r\n[ERROR] 13 CoreFoundation 0x000000010f97ba31 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17\r\n[ERROR] 14 CoreFoundation 0x000000010f97195c __CFRunLoopDoSources0 + 556\r\n[ERROR] 15 CoreFoundation 0x000000010f970e13 __CFRunLoopRun + 867\r\n[ERROR] 16 CoreFoundation 0x000000010f970828 CFRunLoopRunSpecific + 488\r\n[ERROR] 17 GraphicsServices 0x0000000110d97ad2 GSEventRunModal + 161\r\n[ERROR] 18 UIKit 0x000000010bf45610 UIApplicationMain + 171\r\n[ERROR] 19 XibSampleProject 0x000000010a0413e6 main + 310\r\n[ERROR] 20 libdyld.dylib 0x000000011069d92d start + 1\r\n[ERROR] \r\n[ERROR] 2016-01-25 12:24:51.130 XibSampleProject[42557:4180970] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIViewController buttonTapped:]: unrecognized selector sent to instance 0x7fb962c55320'\r\n[ERROR] *** First throw call stack:\r\n[ERROR] ( \r\n[ERROR] 0 CoreFoundation 0x000000010fa4fe65 __exceptionPreprocess + 165\r\n[ERROR] 1 libobjc.A.dylib 0x000000010f421deb objc_exception_throw + 48\r\n[ERROR] 2 CoreFoundation 0x000000010fa5848d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205\r\n[ERROR] 3 CoreFoundation 0x000000010f9a590a ___forwarding___ + 970\r\n[ERROR] 4 CoreFoundation 0x000000010f9a54b8 _CF_forwarding_prep_0 + 120\r\n[ERROR] 5 UIKit 0x000000010bf47194 -[UIApplication sendAction:to:from:forEvent:] + 92\r\n[ERROR] 6 UIKit 0x000000010c0b66fc -[UIControl sendAction:to:forEvent:] + 67\r\n[ERROR] 7 UIKit 0x000000010c0b69c8 -[UIControl _sendActionsForEvents:withEvent:] + 311\r\n[ERROR] 8 UIKit 0x000000010c0b5af8 -[UIControl touchesEnded:withEvent:] + 601\r\n[ERROR] 9 UIKit 0x000000010bfb649b -[UIWindow _sendTouchesForEvent:] + 835\r\n[ERROR] 10 UIKit 0x000000010bfb71d0 -[UIWindow sendEvent:] + 865\r\n[ERROR] 11 UIKit 0x000000010bf65b66 -[UIApplication sendEvent:] + 263\r\n[ERROR] 12 UIKit 0x000000010bf3fd97 _UIApplicationHandleEventQueue + 6844\r\n[ERROR] 13 CoreFoundation 0x000000010f97ba31 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17\r\n[ERROR] 14 CoreFoundation 0x000000010f97195c __CFRunLoopDoSources0 + 556\r\n[ERROR] 15 CoreFoundation 0x000000010f970e13 __CFRunLoopRun + 867\r\n[ERROR] 16 CoreFoundation 0x000000010f970828 CFRunLoopRunSpecific + 488\r\n[ERROR] 17 GraphicsServices 0x0000000110d97ad2 GSEventRunModal + 161\r\n[ERROR] 18 UIKit 0x000000010bf45610 UIApplicationMain + 171\r\n[ERROR] 19 XibSampleProject 0x000000010a0413e6 main + 310\r\n[ERROR] 20 libdyld.dylib 0x000000011069d92d start + 1\r\n[ERROR] ) \r\n[ERROR] libc++abi.dylib: terminating with uncaught exception of type NSException\r\n{code}", "attachment": [ { "id": "58070", "filename": "com.accenture.xibmod-iphone-1.0.zip", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-01-25T23:35:57.000+0000", "size": 144081, "mimeType": "application/zip" }, { "id": "58068", "filename": "Test_code.zip", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-01-25T18:44:55.000+0000", "size": 9496398, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: Uncaught exception NSInvalidArgumentException loading XIB file", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "iOS 9.2\r\nTiSDK 5.1.1.GA & 5.1.2.GA", "closedSprints": [ { "id": 126, "state": "closed", "name": "2018 Sprint 05 SDK", "startDate": "2018-02-25T19:38:08.926Z", "endDate": "2018-03-11T18:38:00.000Z", "completeDate": "2018-03-11T22:06:01.520Z", "originBoardId": 100 } ], "comment": { "comments": [ { "id": "375335", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://wiki.appcelerator.org/display/guides2/Module+Development+Tutorial+-+iOS\r\nSee section about xib.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-01-27T01:48:15.000+0000", "updated": "2016-01-27T01:48:15.000+0000" }, { "id": "377494", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hi, just curious, are you trying to create https://github.com/appcelerator-modules/ti.gigya", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-02-22T08:15:09.000+0000", "updated": "2016-02-22T08:15:09.000+0000" }, { "id": "378132", "author": { "name": "sumitkothari", "key": "sumitkothari", "displayName": "sumit kothari", "active": true, "timeZone": "Asia/Kolkata" }, "body": "@Chee, nope we are not trying to create ti.gigya module. We just used that project as a reference, as mentioned in your earlier comment.\r\nWhat we are trying to achieve is handling the click events of buttons/views which are created in xib and have their event listener in their respective .h/.m file (within the module).", "updateAuthor": { "name": "sumitkothari", "key": "sumitkothari", "displayName": "sumit kothari", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2016-02-29T09:24:18.000+0000", "updated": "2016-02-29T09:25:41.000+0000" }, { "id": "379090", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "According to the crash log, you're trying to call {{- (IBAction)buttonTapped:(UIButton *)sender}} of a _UIViewController_, which it does not exists.\r\nWhich means that you created a normal _UIViewController_ instead of the _RootViewController_. What I can see, from looking at the code and content of the XIB, is that you're creating a _UIViewController_ passing XIB file that does not contain a ViewController. It simply contains a _UIView_ (with subviews and so on)", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-03-08T00:12:37.000+0000", "updated": "2016-03-08T00:13:13.000+0000" }, { "id": "403255", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "XIB files can be loaded using Hyperloop these days. Example:\r\n{code:javascript}\r\nvar NSBundle = require('Foundation/NSBundle');\r\nvar view = NSBundle.mainBundle.loadNibNamedOwnerOptions('view'); // will look for \"view.xib\"\r\ncontainer.add(view.objectAtIndex(0));\r\n{code}\r\n\r\nThx!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-12-13T09:57:23.000+0000", "updated": "2016-12-13T09:57:23.000+0000" }, { "id": "440082", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:49:15.000+0000", "updated": "2018-08-06T17:49:15.000+0000" } ], "maxResults": 14, "total": 14, "startAt": 0 } } }