Search results for

“file uri scheme”

84,483 results found

Post

Replies

Boosts

Views

Activity

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 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 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 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
unable to run a single unit test (or set of tests) against a scheme
i have a project P living in a workspace with a number of other projects.project P has a test target PT, and that target depends upon resources created by project FR.in the workspace, i have an .xcscheme that builds the dependency FR prior to running target PT properly.and thus, when i perform Cmd-U (Test) for the currently selected .xcscheme PS that corresponds to project P, everything works fine, and the project builds and the tests run.however, if i have updated my source, performed a clean, and then attempt to run a given test by either clicking on its diamond test icon in the source, or by going into the test navigator and choosing either the individual test or the class containing the test to run all tests in it, or even the entire test suite and hitting the run test icon, or right-clicking and performing Test testPX or Run testCasePX or Run PT, the scheme is ignored. it instead only attempts to build the target as depended upon by the test-target.being as that this is part of a workspace, crea
0
0
348
Jan ’16
Reply to xCode 6.4 scheme names
Also, as the original poster points out, the scheme now shows the device (iPad Air) and the simulator identifier (i.e.: 085BD3A4-CC9E-4717-AF2F-E08106BB7A88) There is no reference to the iOS of the scheme, so it's just hit-and-miss as to what iOS each scheme tests. That makes it difficult - to say the least - to test an app against all devices/iOSs.
Jul ’15
Reply to Trouble Testing IAP with Sandbox
UPDATE: I've viewed a WWDC22 video (What's new in StoreKit testing) which says to create a second storekit configuration file syncing it with the in-app purchase defined in Apple Store Connect. The new read-only file is indeed syncing; but, it is STILL NOT WORKING.A print statement to the console, says that, in sandbox mode, requestProducts() in the Store manager is unable to find any products (though it works as expected when the scheme is reading either of the local store kit config files).
Topic: App & System Services SubTopic: StoreKit Tags:
Feb ’23
iOS 9 LaunchServices: ERROR: There is no registered handler for URL scheme itms-services
We have some in-house apps and before iOS 9, the apps will open a link like itms-services:// after version compare, the new version apps will be downloaded and install.But after we tested on iOS 9, we found the apps cannot open the link itms-services:// link, got error like LaunchServices: ERROR: There is no registered handler for URL scheme itms-servicesThe code we used to update the app:let downloadUrl = NSURL(string: url)UIApplication.sharedApplication().openURL(downloadUrl!)We have tested put itms-services, itms-services:// and the full URL into LSApplicationQueriesSchemes in plist file. But still not work.
1
0
5k
Sep ’15
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 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 Xcode: Could not attach to pid
Just like @mitas95, I'm also having the same issue on an M1 Mac. The only thing that worked for me was Product>Scheme>Edit Scheme>Run>[ ] Debug Executable, which is unideal.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jul ’21
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 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 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
Reply to Localization Tests in UI Testing
Hey. You can go into the Scheme Editor of the test scheme under Options, and change App Region/Language to one you prefer, and that will be independent of your current device language. Hope this helps.
Replies
Boosts
Views
Activity
Jun ’22
unable to run a single unit test (or set of tests) against a scheme
i have a project P living in a workspace with a number of other projects.project P has a test target PT, and that target depends upon resources created by project FR.in the workspace, i have an .xcscheme that builds the dependency FR prior to running target PT properly.and thus, when i perform Cmd-U (Test) for the currently selected .xcscheme PS that corresponds to project P, everything works fine, and the project builds and the tests run.however, if i have updated my source, performed a clean, and then attempt to run a given test by either clicking on its diamond test icon in the source, or by going into the test navigator and choosing either the individual test or the class containing the test to run all tests in it, or even the entire test suite and hitting the run test icon, or right-clicking and performing Test testPX or Run testCasePX or Run PT, the scheme is ignored. it instead only attempts to build the target as depended upon by the test-target.being as that this is part of a workspace, crea
Replies
0
Boosts
0
Views
348
Activity
Jan ’16
Reply to xCode 6.4 scheme names
Also, as the original poster points out, the scheme now shows the device (iPad Air) and the simulator identifier (i.e.: 085BD3A4-CC9E-4717-AF2F-E08106BB7A88) There is no reference to the iOS of the scheme, so it's just hit-and-miss as to what iOS each scheme tests. That makes it difficult - to say the least - to test an app against all devices/iOSs.
Replies
Boosts
Views
Activity
Jul ’15
Reply to Trouble Testing IAP with Sandbox
UPDATE: I've viewed a WWDC22 video (What's new in StoreKit testing) which says to create a second storekit configuration file syncing it with the in-app purchase defined in Apple Store Connect. The new read-only file is indeed syncing; but, it is STILL NOT WORKING.A print statement to the console, says that, in sandbox mode, requestProducts() in the Store manager is unable to find any products (though it works as expected when the scheme is reading either of the local store kit config files).
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Feb ’23
iOS 9 LaunchServices: ERROR: There is no registered handler for URL scheme itms-services
We have some in-house apps and before iOS 9, the apps will open a link like itms-services:// after version compare, the new version apps will be downloaded and install.But after we tested on iOS 9, we found the apps cannot open the link itms-services:// link, got error like LaunchServices: ERROR: There is no registered handler for URL scheme itms-servicesThe code we used to update the app:let downloadUrl = NSURL(string: url)UIApplication.sharedApplication().openURL(downloadUrl!)We have tested put itms-services, itms-services:// and the full URL into LSApplicationQueriesSchemes in plist file. But still not work.
Replies
1
Boosts
0
Views
5k
Activity
Sep ’15
Reply to StoreKit 2: Newly added subscription not being returned
Solved: In my development debug Scheme, I had a leftover StoreKit Configuration in the Scheme Options. The fix was to set StoreKit Configuration to None. The latent StoreKit config was masking the App Store Connect products.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Jul ’23
Reply to How to create an xccovreport from an xcresult bundle.
@cplaza Awesome that you resolved this! I've been dealing with a similar situation. When you say all schemes, what do you mean? Do you have some custom CocoaTouch Frameworks added to your project that each have a scheme? Do your projects live inside of a workspace?
Replies
Boosts
Views
Activity
Oct ’23