Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crashing on iOS 8.3 device #1362

Closed
sethrosetter opened this issue Jul 13, 2016 · 1 comment
Closed

App crashing on iOS 8.3 device #1362

sethrosetter opened this issue Jul 13, 2016 · 1 comment
Assignees
Milestone

Comments

@sethrosetter
Copy link
Contributor


  • Version: 1.3.0-48
  • Client OS: iOS 8.3

App crashes due to an iOS 9+ API rangeOfPath.

2016-07-13 16:15:06.867 ToDoLite[329:80554] Query: Query lists: Returning iterator
2016-07-13 16:15:06.868 ToDoLite[329:80427] Query: CBLLiveQuery[lists]: ...async query finished (0 rows, status 200)
2016-07-13 16:15:06.872 ToDoLite[329:80427] Query: CBLLiveQuery[lists]: ...Rows changed! (now 0)
2016-07-13 16:15:06.872 ToDoLite[329:80554] Sync: CBLRestPusher[http://us-east.testfest.couchbasemobile.com:4984/todolite]: Reachability state = <us-east.testfest.couchbasemobile.com>:reachable (02), suspended=0
2016-07-13 16:15:06.875 ToDoLite[329:80554] Sync: CBLRestPusher[http://us-east.testfest.couchbasemobile.com:4984/todolite]: Going online
2016-07-13 16:15:06.876 ToDoLite[329:80554] Sync: CBLRestPusher[http://us-east.testfest.couchbasemobile.com:4984/todolite] Progress: set active = 1
2016-07-13 16:15:06.877 ToDoLite[329:80554] Sync: CBLRestPusher[http://us-east.testfest.couchbasemobile.com:4984/todolite]: postProgressChanged (0/0, active=1 (batch=0, net=1), lastSeq=(null), online=1, error=(null))
2016-07-13 16:15:06.879 ToDoLite[329:80554] -[__NSConcreteURLComponents rangeOfPath]: unrecognized selector sent to instance 0x1469cc10
2016-07-13 16:15:06.881 ToDoLite[329:80554] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSConcreteURLComponents rangeOfPath]: unrecognized selector sent to instance 0x1469cc10'
*** First throw call stack:
(0x230dbfef 0x3138dc8b 0x230e1409 0x230df327 0x230e05d8 0xbd373 0x9db93 0x863db 0x61a77 0x61093 0x61189 0x60b57 0x87601 0x266d9bbb 0x230a1faf 0x230a1451 0x2309fa25 0x22fec201 0x22fec013 0x23d5513d 0x5e0bd 0x23e1a3bb 0x31a61e23 0x31a61d97 0x31a5fb20)
libc++abi.dylib: terminating with uncaught exception of type NSException
snej added a commit that referenced this issue Jul 14, 2016

Unverified

This user has not yet uploaded their public signing key.
Conditionalized some usages of NSURLComponents methods that were only
added later.
Tested both the old and new code paths.
Clean bill of health from Deploymate.

Fixes #1362
@snej
Copy link
Contributor

snej commented Jul 14, 2016

There were some calls to methods on NSURLComponents that were only added in iOS 8 / macOS 10.10, and one in particular that crashed this app, that's only available in iOS 9 / macOS 10.11.

I've added workarounds to use alternate code if those methods are not available at runtime.

@snej snej added this to the 1.3 milestone Jul 14, 2016
@snej snej self-assigned this Jul 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants