[TIMOB-25446] iOS: ListView itemclick event issues with SearchBar
| GitHub Issue | n/a |
| Type | Bug |
| Priority | Critical |
| Status | Closed |
| Resolution | Duplicate |
| Resolution Date | 2017-10-26T17:39:00.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 6.3.0 |
| Components | iOS |
| Labels | ios |
| Reporter | Suraj Datta |
| Assignee | Hans Knöchel |
| Created | 2017-10-26T14:22:53.000+0000 |
| Updated | 2017-10-30T11:59:13.000+0000 |
Description
Hi All,
My app gets crashed during itemclick event of Listview in IOS,* while a list item is clicked & search bar is active.*
On click of item i'm closing the current window.
Same code works perfectly in Android.
Scenario 1:
- On click on item, window gets closed as expected.
- In this case search bar is inactive.
Scenario 2:
- Search for an item in search bar & on click of that particular item the app gets freezed & clicking anywhere makes app crashed.
- Expected result was to close the current window.
- alert & console logs get executed though.
Have attached dummy code & some screenshots for testing.
Thanks.
Attachments
I am not able to reproduce the issue with the following test-case (the provided one seems incomplete and only has the window opened):
Can you adjust that one to actually crash? I want to keep the test-case simple and limited to the actual issue.var win = Ti.UI.createWindow({ backgroundColor: '#fff' }); var btn = Ti.UI.createButton({ title: 'Trigger' }); btn.addEventListener('click', function(e) { openWindow(); }); win.add(btn); win.add(btn); win.open(); function openWindow() { var win2 = Ti.UI.createWindow({ backgroundColor: '#fff' }); var list = Ti.UI.createListView({ searchView: Ti.UI.createSearchBar(), sections: [Ti.UI.createListSection({ items: [{ properties: { title: 'Test Row', searchableText: 'Test Row' } }] })] }); list.addEventListener('itemclick', function(e) { win2.close(); }); win2.add(list); win2.open();I am able to reproduce it on 6.2.x but not on 6.3.0+ and master (7.0.0), so it was very likely fixed already. Please try out the 6.3.0 RC (GA soon) by using
appc ti sdk install -b 6_3_X, thx!Hello Hans, Installing SDK 6.3.0.v20171026154532 manually has solved the above issue & i'm able to get the expected result in simulator. Now i was about to generate a new build for itunes using above SDK but i'm getting following error. {color:red}[ERROR] : Invalid "--pp-uuid" value "c75fd452-e580-4577-b77f-3917915c2586" For help, run: titanium.js help build {color} If i change the SDK back to 6.2.2 GA i'm able to generate the ipa. Certificates & provisioning profiles are valid for my project. Other details: Operating System Name = Mac OS X Version = 10.12.6 Architecture = 64bit # CPUs = 4 Memory = 8589934592 Node.js Node.js Version = 6.9.5 npm Version = 3.10.10 Titanium CLI CLI Version = 5.0.14 Titanium SDK SDK Version = 6.3.0.v20171026154532 SDK Path = /Users/nileshsatpute/Library/Application Support/Titanium/mobilesdk/osx/6.3.0.v20171026154532 Target Platform = iphone Awaiting your reply. Thanks.
The reason for that is that the CLI now handled invalid certificates more strict. The reason for the error is because you have invalid / expired developer certificates in your keychain and (even if there is a valid one as well), the CLI will mark it as invalid. TIMOB-25416 improves that behavior and will also be part of the final GA version of 6.3.0. Thank you!
Hi Hans, I've just removed all invalid/expired certificates from my keychain & restarted my mac. Still i'm getting the same error. I've also refreshed certificates from Appcelerator Studio -> Preferences but the issue still persists. Anything else i need to perform in settings? Thanks.
Also do i need to remove existing provisioning profiles as well?