I followed this guide on Twitter Dev Site in my app, Captions for Instagram, to set up the query scheme. It looks like this:

Then in my other app, I've added captions to LSApplicationQueriesSchemes and I am running the following code in that app:
let url = NSURL(string: "captions://")!
if UIApplication.sharedApplication().canOpenURL(url) {
UIApplication.sharedApplication().openURL(url)
}
Using breakpoints, I found that UIApplication.sharedApplication().canOpenURL(url) is returning true but UIApplication.sharedApplication().openURL(url) is not doing anything.