vrwim
vrwim

Reputation: 14320

Objective-C library internally displays Invalid URL scheme

I have a library that I would like to use, but I am getting the error Invalid URL scheme for background downloads: (null). Valid schemes are http or https. Is there a way I can debug which URL is used that causes this error?

I do not have access to the source code of this library.

Is there a symbolic breakpoint that I can set when this error is returned from NSURLSession?

Or a way I can view parameters in the debugger when I am browsing the call stack?

Upvotes: 0

Views: 109

Answers (1)

Rob Napier
Rob Napier

Reputation: 299365

Since you already know about symbolic breakpoints, sure. It'll be one of the NSURLSession methods related to starting download tasks:

downloadTaskWithURL:completionHandler:
downloadTaskWithRequest:completionHandler:

One of those almost certainly will have to be called eventually.

Regarding viewing the parameters in the debugger, you'll want to consult the glorious chart by Clark Cox: Inspecting Obj-C parameters in gdb. It quickly covers how parameters are passed on each platform.

Upvotes: 1

Related Questions