Search results for

“file uri scheme”

81,708 results found

Post

Replies

Boosts

Views

Activity

Reply to external device http-based control API
According to manufacturer of external device, C# needs the following line of code:webclient.Credentials = new NetworkCredential(<username>, <pass- word>);using (Stream stream = webclient.OpenRead(new Uri ( http://<ipAd- dress>/Gadget/syncconnect/sdk.aspx?command=<command>)))Can anyone please point to examples or advise where this might be placed in viewcontroller?thanks
Apr ’17
Reply to Implementing A Direct Link to App Settings
Is there a URL scheme that I can use to directly open that panel? No. I have general advice on this topic in this post. Many settings show up both some centralised area within Settings and in the app-specific settings, and you could file an enhancement request for Apple to do that with Sign in with Apple. Alternatively, file an ER for a way to open its entry in the the centralised area. If you do file any bugs about this, post your bug number, just for the record. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Programming Languages SubTopic: Swift Tags:
Apr ’24
Reply to impersonation for os x.
>impersonationI think/hope you meant synchronization...Once you've connected to the other macs via sharing, I'd use applescript to read files/permissions and sync folders accordingly. See the docs on both.Just keep in mind that Apple already provides user-facing schemes for this, so you may be attempting a new wheel.
Topic: App & System Services SubTopic: Drivers Tags:
Jul ’19
Reply to jump to watch app on first tab
so we should not use it?The general rule for Apple URL schemes is that, if it’s not documented, you shouldn’t use it. Lots of folks have discovered the hard way that relying on undocumented URL schemes usually ends in binary compatibility tears down the line.is there any correct and proper way how to jump to watch app?I’m not aware of such an option, although it seems like a reasonable enhancement request based on the existence of UIApplicationOpenSettingsURLString. If you do file an ER, please post your bug number, just for the record.Share and Enjoy — Quinn “The Eskimo!” Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Topic: App & System Services SubTopic: Core OS Tags:
Nov ’17
Reply to Reduced CPU usage w/ Time Profiler?
By default, the profile action uses a release configuration, while the run action uses debug. If you change your scheme so the run action uses a release configuration (from the Product menu, select Scheme, then Edit Scheme), does it match the performance you see while profiling?Note that using the release configuration can make debugging more difficult, so you normally want it on debug while you're working on your app.
Sep ’15
Reply to How can I connect to a proxy server?
OK, these old proxy techniques use the HTTP CONNECT verb. The request line is supposed to be CONNECT myHost:myPort HTTP/1.1 (or 1.0). The thing is that myHost:myPort is not a URL. It is a URI, though. But you have to initiallize a URLRequest with a URL. (I tried with URLComponents and defining just the host and port, and I got //myHost:myPort. The extra slahses at the start make it useless here, unless you know some form of CONNECT-URI that allows slash prefixes.)Is there another type of proxy that lets you put full URLs on the CONNECT line? Or doesn't use CONNECT at all? I want to know what kind of proxy connections the authors at Apple (at least the ones at WWDC 2015) had in mind when designing the data-request-to-stream-task conversion delegate method.If I can't customize URLRequest the way I need, then I have to resort to the CFHTTPMessage API (or straight up manual work).
Sep ’17
Reply to UIWebViewNavigationTypeLinkClicked is not triggered in iOS 11 beta softwares
if (navigationType == UIWebViewNavigationTypeLinkClicked) { if ([[[request URL] scheme] isEqualToString: @file]) { NSArray<NSString*>* components = [request.URL.absoluteString componentsSeparatedByString:@#]; if (components.count == 2) { NSString* anchor = components.lastObject; NSString* code = [NSString stringWithFormat:@el = document.getElementsByName(%@)[0]; if (el) el.scrollIntoView();, anchor]; (void) [webView stringByEvaluatingJavaScriptFromString:code]; return NO; } } return YES; }
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’17
Reply to ASWebAuthenticationSession + https iOS <17.4
If you want a callback URL that starts with https, you must use the .https(...) callback type, which is only available on iOS 17.4 and later. Prior to this, ASWebAuthenticationSession required the use of a custom scheme (i.e. a scheme that's not http/https). For example, your callback URL in that case might look like myapp://auth/callback. Some services may warn against using custom schemes, as they may have security difficulties on some platforms. This is because, unlike https callbacks, any app could claim the myapp:// scheme, potentially resulting in your auth callback going to the wrong app. However, ASWebAuthenticationSession was specifically built to mitigate this concern, ensuring only your app will receive callbacks for that scheme when it's opened via ASWebAuthenticationSession.
Topic: Privacy & Security SubTopic: General Tags:
Apr ’25
Reply to Failed to load DataDetectorsUI.framework ()
I've been seeing Failed to load DataDetectorsUI.framework () for a number of days now, but I've been ignoring it up to now, since it hasn't posed any functional problems for me. I suspect it's because I'm doing API calls to various external services, and tvOS probably does not support URL schemes for sending files to another app.
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’15
Reply to external device http-based control API
According to manufacturer of external device, C# needs the following line of code:webclient.Credentials = new NetworkCredential(<username>, <pass- word>);using (Stream stream = webclient.OpenRead(new Uri ( http://<ipAd- dress>/Gadget/syncconnect/sdk.aspx?command=<command>)))Can anyone please point to examples or advise where this might be placed in viewcontroller?thanks
Replies
Boosts
Views
Activity
Apr ’17
Reply to Error Domain=SKErrorDomain Code=2 "(null)" when making in-app purchase
I solved the issue I had. Turns out I didn't set the StoreKit config in my scheme. Go to Edit Scheme -> Run and check if the config is set. If not, follow this guide: https://developer.apple.com/documentation/xcode/setting-up-storekit-testing-in-xcode/ It should look something like this if the scheme is set up correctly:
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Jun ’24
Reply to Implementing A Direct Link to App Settings
Is there a URL scheme that I can use to directly open that panel? No. I have general advice on this topic in this post. Many settings show up both some centralised area within Settings and in the app-specific settings, and you could file an enhancement request for Apple to do that with Sign in with Apple. Alternatively, file an ER for a way to open its entry in the the centralised area. If you do file any bugs about this, post your bug number, just for the record. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to impersonation for os x.
>impersonationI think/hope you meant synchronization...Once you've connected to the other macs via sharing, I'd use applescript to read files/permissions and sync folders accordingly. See the docs on both.Just keep in mind that Apple already provides user-facing schemes for this, so you may be attempting a new wheel.
Topic: App & System Services SubTopic: Drivers Tags:
Replies
Boosts
Views
Activity
Jul ’19
Reply to jump to watch app on first tab
so we should not use it?The general rule for Apple URL schemes is that, if it’s not documented, you shouldn’t use it. Lots of folks have discovered the hard way that relying on undocumented URL schemes usually ends in binary compatibility tears down the line.is there any correct and proper way how to jump to watch app?I’m not aware of such an option, although it seems like a reasonable enhancement request based on the existence of UIApplicationOpenSettingsURLString. If you do file an ER, please post your bug number, just for the record.Share and Enjoy — Quinn “The Eskimo!” Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Nov ’17
Reply to Reduced CPU usage w/ Time Profiler?
By default, the profile action uses a release configuration, while the run action uses debug. If you change your scheme so the run action uses a release configuration (from the Product menu, select Scheme, then Edit Scheme), does it match the performance you see while profiling?Note that using the release configuration can make debugging more difficult, so you normally want it on debug while you're working on your app.
Replies
Boosts
Views
Activity
Sep ’15
Reply to How can I connect to a proxy server?
OK, these old proxy techniques use the HTTP CONNECT verb. The request line is supposed to be CONNECT myHost:myPort HTTP/1.1 (or 1.0). The thing is that myHost:myPort is not a URL. It is a URI, though. But you have to initiallize a URLRequest with a URL. (I tried with URLComponents and defining just the host and port, and I got //myHost:myPort. The extra slahses at the start make it useless here, unless you know some form of CONNECT-URI that allows slash prefixes.)Is there another type of proxy that lets you put full URLs on the CONNECT line? Or doesn't use CONNECT at all? I want to know what kind of proxy connections the authors at Apple (at least the ones at WWDC 2015) had in mind when designing the data-request-to-stream-task conversion delegate method.If I can't customize URLRequest the way I need, then I have to resort to the CFHTTPMessage API (or straight up manual work).
Replies
Boosts
Views
Activity
Sep ’17
Reply to UIWebViewNavigationTypeLinkClicked is not triggered in iOS 11 beta softwares
if (navigationType == UIWebViewNavigationTypeLinkClicked) { if ([[[request URL] scheme] isEqualToString: @file]) { NSArray<NSString*>* components = [request.URL.absoluteString componentsSeparatedByString:@#]; if (components.count == 2) { NSString* anchor = components.lastObject; NSString* code = [NSString stringWithFormat:@el = document.getElementsByName(%@)[0]; if (el) el.scrollIntoView();, anchor]; (void) [webView stringByEvaluatingJavaScriptFromString:code]; return NO; } } return YES; }
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Sep ’17
Reply to Authorize page shows 'Invalid redirect_uri'
We have the same problem here, the new Service ID does not work: invalid_client The old one works like a charm (we did not delete it though) We also cannot use newly added redirect URIs to old Service IDs, invalid_redirect_uri Looks like something does not get updated correctly on the Apple side
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’21
Reply to ASWebAuthenticationSession + https iOS <17.4
If you want a callback URL that starts with https, you must use the .https(...) callback type, which is only available on iOS 17.4 and later. Prior to this, ASWebAuthenticationSession required the use of a custom scheme (i.e. a scheme that's not http/https). For example, your callback URL in that case might look like myapp://auth/callback. Some services may warn against using custom schemes, as they may have security difficulties on some platforms. This is because, unlike https callbacks, any app could claim the myapp:// scheme, potentially resulting in your auth callback going to the wrong app. However, ASWebAuthenticationSession was specifically built to mitigate this concern, ensuring only your app will receive callbacks for that scheme when it's opened via ASWebAuthenticationSession.
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’25
Reply to MTLTextureUsageShaderWrite & MetalKit
I have worked around this issue by disabling GPU Frame Capture in the application's Scheme. Find that setting under Edit Scheme > Run > Options > GPU Frame Capture. Set it to Disabled.
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’15
Reply to how to compile/build mac catalyst lib using clang -arch
I get the same error, but only when BuddyBuild tries to compile it. As far as I know, BuddyBuild uses the same schemes that I've checked into the project, and my schemes are not trying to build for Catalyst.
Replies
Boosts
Views
Activity
Mar ’20
Reply to Failed to load DataDetectorsUI.framework ()
I've been seeing Failed to load DataDetectorsUI.framework () for a number of days now, but I've been ignoring it up to now, since it hasn't posed any functional problems for me. I suspect it's because I'm doing API calls to various external services, and tvOS probably does not support URL schemes for sending files to another app.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’15
Reply to i need to see my newest app on my ipad2 not on a mac simulator using Xcode.
Are you choosing a scheme or a device. These are very different things. In xCode there is a dual drop down, on the leftis the scheme, on the right, is the device. Click on the right drop down and select your connected iPad.
Replies
Boosts
Views
Activity
Jun ’15
Reply to iPhone with iOS 14 beta 2 doesn't autorotate when connected to XCode debugger
Found the solution. Go to ProductSchemesManage Schemes Select your scheme and click edit Select the options tab for the run section For 'GPU Frame Capture', select 'Metal' or 'disable'
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Mar ’21