Search results for

“file uri scheme”

81,708 results found

Post

Replies

Boosts

Views

Activity

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
AssetCacheLocatorService does not support HTTPS URL schemes for PAC
With the release of iPadOS 17 we began noticing that the AssetCacheLocator service on iOS/iPadOS was reliably returning a no caching server response even when we had active caching servers on the network. default 2023-09-27 18:40:17.970429 +1000 AssetCacheLocatorService #11553fbd [AssetCacheLocatorService.queue] found no caching servers This behaviour was also apparent during the beta releases of iPadOS 17 but vanished around beta 8 before returning during the production release. For a bit of back story our network environment makes use of proxy servers which devices are configured to use via PAC discovery methods. Either via specifying a pac url in config payload or via auto-discovery means via DHCP option 252 or dns. We have been compliant with https PAC file delivery since it was first brought in for the iPadOS 15 release. After continued testing the behaviour was being cause by a failure in the trust daemon to validate certificates used in SSL handshakes for the AssetCacheLocatorService. This wou
0
0
1.1k
Oct ’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
4.9k
Sep ’15
Reply to "Active scheme does not build this file" Problem
I think you only get this error when you're trying to preview, say, an iOS Home Screen widget but your active scheme is for something else, like a watchOS target. If you're previewing something in an iOS target, make sure to select the scheme that builds the iOS target. If you're trying to preview a watchOS target, select the watchOS scheme, etc.
Jan ’24
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
Reply to Emoji as Custom URL Scheme
I'm wondering if we can use Emoji as the header for custom URL schemes in iOS apps.For instance : U+1F4A9://I’d expect any URL scheme that conforms to the standard (see Section 3.1 of RFC 3986) to work. However, there’s no code in the OS that will interpret U+xxxx notation as Unicode in URL schemes, so you’re just going to end up with a weird looking scheme. Share and Enjoy — Quinn “The Eskimo!” Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Sep ’17
Reply to schema.org "Offer", but not "Product" in Spotlight?
Product is not on the list of schemes that's supported because we don't index anything directly from the Product itself other than AggregateRating and Offer. Of course, what we pull out of this markup is potentially changing over time, but at the moment we don't pull info from Product itself. If there's information you think we should be including from Product, please file bug reports with the details.
Topic: App & System Services SubTopic: General Tags:
Jul ’15
Reply to Getting error in previews when are inside of a static framework
Yes this is a known issue. Currently previews are not supported inside of static libraries. As a workaround you could create a dynamic library or framework target in addition to the static library and put the file in both targets. Then, make sure your scheme is building the framework/dynamic library target even if it's not being included into any of your shipping apps, etc.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’22
"Use custom working directory" is greyed out in Edit Scheme > Run
I'm trying to use XCode to debug a simple toy C++ program built using a Makefile (set up project using 'External Build System').Normally I'm able to debug and run, and use breakpoints within the editor. The way I did this was by going to Edit Scheme > Run > Use custom working directory, then checking the check box and specifying the directory of the executable. Except currently I'm not able to click in the text field or on the folder pop-up dialog at all to change this directory from blank.Such that, when I hit the build and run button with the check box checked I get a popup that asks Would you like to Run anyway? : The working directory (null) for scheme scheduler doesn't exist. Except I can't change the blank text field at all to fix this...I would add a screenshot of the options to clarify but I'm concerned about triggering moderation given this post I read about the forums [https://forums.developer.apple.com/thread/97547]
1
0
2.3k
Oct ’19
Reply to Trying to load a cr2 file
iOS is case sensitive..CR2 is not the same as .cr2, .Cr2, .cR2, etc.Be sure to match the file name case with the image name used in your code. Might want to get into the habit of only/always using lower case, as an example, just to avoid such issues in the future. Whichever scheme you adopt, be consistent.
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’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
AssetCacheLocatorService does not support HTTPS URL schemes for PAC
With the release of iPadOS 17 we began noticing that the AssetCacheLocator service on iOS/iPadOS was reliably returning a no caching server response even when we had active caching servers on the network. default 2023-09-27 18:40:17.970429 +1000 AssetCacheLocatorService #11553fbd [AssetCacheLocatorService.queue] found no caching servers This behaviour was also apparent during the beta releases of iPadOS 17 but vanished around beta 8 before returning during the production release. For a bit of back story our network environment makes use of proxy servers which devices are configured to use via PAC discovery methods. Either via specifying a pac url in config payload or via auto-discovery means via DHCP option 252 or dns. We have been compliant with https PAC file delivery since it was first brought in for the iPadOS 15 release. After continued testing the behaviour was being cause by a failure in the trust daemon to validate certificates used in SSL handshakes for the AssetCacheLocatorService. This wou
Replies
0
Boosts
0
Views
1.1k
Activity
Oct ’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
4.9k
Activity
Sep ’15
Reply to "Active scheme does not build this file" Problem
I think you only get this error when you're trying to preview, say, an iOS Home Screen widget but your active scheme is for something else, like a watchOS target. If you're previewing something in an iOS target, make sure to select the scheme that builds the iOS target. If you're trying to preview a watchOS target, select the watchOS scheme, etc.
Replies
Boosts
Views
Activity
Jan ’24
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 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
Reply to Emoji as Custom URL Scheme
I'm wondering if we can use Emoji as the header for custom URL schemes in iOS apps.For instance : U+1F4A9://I’d expect any URL scheme that conforms to the standard (see Section 3.1 of RFC 3986) to work. However, there’s no code in the OS that will interpret U+xxxx notation as Unicode in URL schemes, so you’re just going to end up with a weird looking scheme. Share and Enjoy — Quinn “The Eskimo!” Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Replies
Boosts
Views
Activity
Sep ’17
Reply to schema.org "Offer", but not "Product" in Spotlight?
Product is not on the list of schemes that's supported because we don't index anything directly from the Product itself other than AggregateRating and Offer. Of course, what we pull out of this markup is potentially changing over time, but at the moment we don't pull info from Product itself. If there's information you think we should be including from Product, please file bug reports with the details.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’15
Reply to Getting error in previews when are inside of a static framework
Yes this is a known issue. Currently previews are not supported inside of static libraries. As a workaround you could create a dynamic library or framework target in addition to the static library and put the file in both targets. Then, make sure your scheme is building the framework/dynamic library target even if it's not being included into any of your shipping apps, etc.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’22
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
"Use custom working directory" is greyed out in Edit Scheme > Run
I'm trying to use XCode to debug a simple toy C++ program built using a Makefile (set up project using 'External Build System').Normally I'm able to debug and run, and use breakpoints within the editor. The way I did this was by going to Edit Scheme > Run > Use custom working directory, then checking the check box and specifying the directory of the executable. Except currently I'm not able to click in the text field or on the folder pop-up dialog at all to change this directory from blank.Such that, when I hit the build and run button with the check box checked I get a popup that asks Would you like to Run anyway? : The working directory (null) for scheme scheduler doesn't exist. Except I can't change the blank text field at all to fix this...I would add a screenshot of the options to clarify but I'm concerned about triggering moderation given this post I read about the forums [https://forums.developer.apple.com/thread/97547]
Replies
1
Boosts
0
Views
2.3k
Activity
Oct ’19
Reply to Bad CPU type in executable
This was solved by changing Build/Override Architectures from Match Run Destination to Use Target Settings in the settings window displayed after executing the Product/Scheme/Edit Scheme... menu.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
May ’24
Reply to Xcode 16.4 can't choose a lower version iOS simulator to debug
Would you mind sharing the outputs of the following commands? xcodebuild -project YourProject.xcodeproj -scheme YourScheme -showdestinations xcodebuild -project YourProject.xcodeproj -scheme YourScheme -showBuildSettings — Ed Ford,  DTS Engineer
Replies
Boosts
Views
Activity
Aug ’25
Reply to Trying to load a cr2 file
iOS is case sensitive..CR2 is not the same as .cr2, .Cr2, .cR2, etc.Be sure to match the file name case with the image name used in your code. Might want to get into the habit of only/always using lower case, as an example, just to avoid such issues in the future. Whichever scheme you adopt, be consistent.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’17