Search results for

“file uri scheme”

81,708 results found

Post

Replies

Boosts

Views

Activity

Reply to SKRenderer freezes with xcode11 ios13
Hello all,As a workaround, I recommend that you try running your app with Metal API validation disabled (Click your build target -> Edit Scheme -> Options -> Metal API Validation -> Disabled).Additionally, please file a bug report for this issue using our feedback assistant tool at: https://developer.apple.com/bug-reporting/
Topic: Graphics & Games SubTopic: SpriteKit Tags:
Sep ’19
Reply to What is the method to read Accessory Serial Number Characteristic value and this method will be deprecated soon?
>All the hardware people are still required to set itDon't conflate specific MFi licensing requirements and vendor firmware update schemes with general developer needs.As always, devs are encouraged to file bugs to help make themselves heard - be sure to add your report #(s) here for reference, thanks and good luck.
Topic: App & System Services SubTopic: General Tags:
Oct ’18
Reply to Timestamps in AVPlayer
As an additional background, I use a m3u8 file, which contains the following metadata. #EXT-X-VERSION:5 #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID=audio,NAME=Original Audio,LANGUAGE=qag,AUTOSELECT=YES,URI=audio-13-64000/prog_index.m3u8?start=2023-03-01T10%3A29%3A04%2B0000&end=2023-03-01T11%3A09%3A18%2B0000&sourcetimestamps=1&returnType=hls,DEFAULT=YES #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID=audio,NAME=Original Audio 1,LANGUAGE=qaf,AUTOSELECT=YES,URI=audio-12-64000/prog_index.m3u8?start=2023-03-01T10%3A29%3A04%2B0000&end=2023-03-01T11%3A09%3A18%2B0000&sourcetimestamps=1&returnType=hls #EXT-X-STREAM-INF:BANDWIDTH=388328,RESOLUTION=426x240,CODECS=avc1.4dc01f,mp4a.40.2,AUDIO=audio 300/prog_index.m3u8?start=2023-03-01T10%3A29%3A04%2B0000&end=2023-03-01T11%3A09%3A18%2B0000&sourcetimestamps=1&returnType=hls #EXT-X-I-FRAME-STREAM-INF:BANDWIDTH=388328,RESOLUTION=426x240,CODECS=avc1.4dc01f,URI=300/prog_index.m3u8?start=2023-03-01T10%3A29%3A04%2B0000&end=2023-03
Topic: Media Technologies SubTopic: Video Tags:
Sep ’23
Reply to Why can't I see build warnings for target dependencies within the workspace?
Add your dependency build target to your current scheme. Product > Scheme > Edit Scheme > Build > +The same problem is explained at this link.https://github.com/CocoaPods/CocoaPods/issues/5299I'm not sure that it is really a Xcode bug. Maybe its just a change in functionality, but this allows me to see all compiler warnings.Tested in Xcode 8.1 (8B62)Hope this helps.Sincerely,Jacques
Dec ’16
iOS 26 web page with script is terminated on custom scheme WKURLSchemeHandler
Something has changed in iOS 26 and now if custom scheme is used and web page contains scripts WebKit is terminated. 0x1130bc170 - [PID=47858] WebProcessProxy::didClose: (web process 0 crash) 0x1130bc170 - [PID=47858] WebProcessProxy::processDidTerminateOrFailedToLaunch: reason=Crash final class CustomSchemeViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() let sampleConfiguration = WKWebViewConfiguration() sampleConfiguration.setURLSchemeHandler( SampleURLSchemeHandler(), forURLScheme: sample ) let webView = WKWebView(frame: view.bounds, configuration: sampleConfiguration) webView.autoresizingMask = [.flexibleWidth, .flexibleHeight] view.addSubview(webView) webView.navigationDelegate = self webView.load(URLRequest(url: URL(string: sample://pages/sample.html)!)) } } extension CustomSchemeViewController: WKNavigationDelegate { func webViewWebContentProcessDidTerminate(_ webView: WKWebView) { print(webViewWebContentProcessDidTerminate) } } final class SampleURLSchemeHa
2
0
285
Jul ’25
Reply to Preview of SwitftUI View used in multiple targets
I found the same issue when testing with SwiftUI tutorial - creating a watchos/macos app. I can't get away with the error The run destination iPhone 12 Pro Max is not valid for Running the scheme 'WatchLandmarks'. anyway even when only WatchKitExtension is selected as the target. It only happens to the watchos scheme, but not the macos scheme. This seems to be a defect of XCode Previews.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Dec ’20
Reply to Very dumb Xcode question about provisioning profiles
One could argue Finder is actually a more logical place for this. In Xcode you don’t work directly with .mobileprovision files, so they aren’t present as project files that you could click on and see in an inspector pane. They just exist as free files in a known location. And it turns out Xcode does have a feature to show details for the profile for a target, though it seems to be limited to the profile used by the current scheme’s Run build configuration. It’s a little ⓘ button in the target’s Signing & Capabilities tab.
Apr ’22
Custom url scheme for a java application on OSX
Hi,I have a java application that works on osx. The way it works is :1.An xcode project is created with cocoa framework.2.The jar is built and copied to the resources folder via the build phase.3.In the main method of the xcode project I use int (*jliLaunchFunctionPointer)() = dlsym(handle, JLI_Launch);to launch the application.jliLaunchFunctionPointer(argvArrSize, argv2, / main argc, argc */ 0, NULL, / java args */ 0, NULL, / app classpath */ FULL_VERSION, / full version defined */ DOT_VERSION, / dot version defined */ Name, / program name */ launch name,/ launcher name */ FALSE, / JAVA_ARGS */ FALSE, / classpath wildcard*/ FALSE, / windows-only javaw */ 0); / ergonomics class policy */ I have added the required values in the info.plist for the application such that my application gets launched when the url is fired.However i cannot pass arguments in the url to the java application.To do this I used the following code in CustomUrl.m file:- (void)getUrl:(NSAppleEventDescriptor *)eventwithReplyEvent:(
0
0
570
Sep ’16
Reply to Xcode 9 produces invalid Code Signature
Yes I did, but somehow forgot to post it here. In my case, both targets (MAS & Dev ID version) depend on other targets, like helper apps and app extensions, which are being copied into the main app bundle. I've configured the schemes of the main apps to automatically build the schemes of their dependencies, but for some reason this configuration got messed up (Xcode sometimes crashed when I edited the schemes). Xcode ended up building the wrong dependencies which themselves were signed with a code signature not matching the one of the main app. After fixing the schemes I was able to create a valid bundle.
Jan ’18
Reply to Doesn't work proxy auto config on iOS 15
https://developer.apple.com/documentation/ios-ipados-release-notes/ios-ipados-15-release-notes Support for cleartext HTTP URL schemes for Proxy Automatic Configuration (PAC) is now deprecated. Use only HTTPS URL schemes for PAC. This affects all PAC configurations, including, but not limited to, configurations set via Settings, System Preferences, profiles, and URLSession APIs such as connectionProxyDictionary and CFNetworkExecuteProxyAutoConfigurationURL(::::). If you configure a cleartext HTTP PAC URL, the system may upgrade it to HTTPS during PAC file loads. Web Proxy Auto-Discovery (WPAD) Protocol via DNS isn’t affected. Dynamic Host Configuration Protocol (DHCP) Option 252 WPAD may attempt to upgrade cleartext HTTP URLs to HTTPS during PAC file loads. (61981845)
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’21
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 SKRenderer freezes with xcode11 ios13
Hello all,As a workaround, I recommend that you try running your app with Metal API validation disabled (Click your build target -> Edit Scheme -> Options -> Metal API Validation -> Disabled).Additionally, please file a bug report for this issue using our feedback assistant tool at: https://developer.apple.com/bug-reporting/
Topic: Graphics & Games SubTopic: SpriteKit Tags:
Replies
Boosts
Views
Activity
Sep ’19
Reply to What is the method to read Accessory Serial Number Characteristic value and this method will be deprecated soon?
>All the hardware people are still required to set itDon't conflate specific MFi licensing requirements and vendor firmware update schemes with general developer needs.As always, devs are encouraged to file bugs to help make themselves heard - be sure to add your report #(s) here for reference, thanks and good luck.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’18
Reply to Timestamps in AVPlayer
As an additional background, I use a m3u8 file, which contains the following metadata. #EXT-X-VERSION:5 #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID=audio,NAME=Original Audio,LANGUAGE=qag,AUTOSELECT=YES,URI=audio-13-64000/prog_index.m3u8?start=2023-03-01T10%3A29%3A04%2B0000&end=2023-03-01T11%3A09%3A18%2B0000&sourcetimestamps=1&returnType=hls,DEFAULT=YES #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID=audio,NAME=Original Audio 1,LANGUAGE=qaf,AUTOSELECT=YES,URI=audio-12-64000/prog_index.m3u8?start=2023-03-01T10%3A29%3A04%2B0000&end=2023-03-01T11%3A09%3A18%2B0000&sourcetimestamps=1&returnType=hls #EXT-X-STREAM-INF:BANDWIDTH=388328,RESOLUTION=426x240,CODECS=avc1.4dc01f,mp4a.40.2,AUDIO=audio 300/prog_index.m3u8?start=2023-03-01T10%3A29%3A04%2B0000&end=2023-03-01T11%3A09%3A18%2B0000&sourcetimestamps=1&returnType=hls #EXT-X-I-FRAME-STREAM-INF:BANDWIDTH=388328,RESOLUTION=426x240,CODECS=avc1.4dc01f,URI=300/prog_index.m3u8?start=2023-03-01T10%3A29%3A04%2B0000&end=2023-03
Topic: Media Technologies SubTopic: Video Tags:
Replies
Boosts
Views
Activity
Sep ’23
Reply to How to build and run a Xcode project from the CLI
Hm okay I was able make Xcode pass arguments to my program at: Product -> Scheme -> Edit Scheme (shortcut: cmd + ;) -> Arguments -> Arguments Passed On Launch. But how can I do this from the CLI then?
Replies
Boosts
Views
Activity
Jun ’24
Reply to Why can't I see build warnings for target dependencies within the workspace?
Add your dependency build target to your current scheme. Product > Scheme > Edit Scheme > Build > +The same problem is explained at this link.https://github.com/CocoaPods/CocoaPods/issues/5299I'm not sure that it is really a Xcode bug. Maybe its just a change in functionality, but this allows me to see all compiler warnings.Tested in Xcode 8.1 (8B62)Hope this helps.Sincerely,Jacques
Replies
Boosts
Views
Activity
Dec ’16
iOS 26 web page with script is terminated on custom scheme WKURLSchemeHandler
Something has changed in iOS 26 and now if custom scheme is used and web page contains scripts WebKit is terminated. 0x1130bc170 - [PID=47858] WebProcessProxy::didClose: (web process 0 crash) 0x1130bc170 - [PID=47858] WebProcessProxy::processDidTerminateOrFailedToLaunch: reason=Crash final class CustomSchemeViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() let sampleConfiguration = WKWebViewConfiguration() sampleConfiguration.setURLSchemeHandler( SampleURLSchemeHandler(), forURLScheme: sample ) let webView = WKWebView(frame: view.bounds, configuration: sampleConfiguration) webView.autoresizingMask = [.flexibleWidth, .flexibleHeight] view.addSubview(webView) webView.navigationDelegate = self webView.load(URLRequest(url: URL(string: sample://pages/sample.html)!)) } } extension CustomSchemeViewController: WKNavigationDelegate { func webViewWebContentProcessDidTerminate(_ webView: WKWebView) { print(webViewWebContentProcessDidTerminate) } } final class SampleURLSchemeHa
Replies
2
Boosts
0
Views
285
Activity
Jul ’25
Reply to Preview of SwitftUI View used in multiple targets
I found the same issue when testing with SwiftUI tutorial - creating a watchos/macos app. I can't get away with the error The run destination iPhone 12 Pro Max is not valid for Running the scheme 'WatchLandmarks'. anyway even when only WatchKitExtension is selected as the target. It only happens to the watchos scheme, but not the macos scheme. This seems to be a defect of XCode Previews.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’20
Reply to Very dumb Xcode question about provisioning profiles
One could argue Finder is actually a more logical place for this. In Xcode you don’t work directly with .mobileprovision files, so they aren’t present as project files that you could click on and see in an inspector pane. They just exist as free files in a known location. And it turns out Xcode does have a feature to show details for the profile for a target, though it seems to be limited to the profile used by the current scheme’s Run build configuration. It’s a little ⓘ button in the target’s Signing & Capabilities tab.
Replies
Boosts
Views
Activity
Apr ’22
Custom url scheme for a java application on OSX
Hi,I have a java application that works on osx. The way it works is :1.An xcode project is created with cocoa framework.2.The jar is built and copied to the resources folder via the build phase.3.In the main method of the xcode project I use int (*jliLaunchFunctionPointer)() = dlsym(handle, JLI_Launch);to launch the application.jliLaunchFunctionPointer(argvArrSize, argv2, / main argc, argc */ 0, NULL, / java args */ 0, NULL, / app classpath */ FULL_VERSION, / full version defined */ DOT_VERSION, / dot version defined */ Name, / program name */ launch name,/ launcher name */ FALSE, / JAVA_ARGS */ FALSE, / classpath wildcard*/ FALSE, / windows-only javaw */ 0); / ergonomics class policy */ I have added the required values in the info.plist for the application such that my application gets launched when the url is fired.However i cannot pass arguments in the url to the java application.To do this I used the following code in CustomUrl.m file:- (void)getUrl:(NSAppleEventDescriptor *)eventwithReplyEvent:(
Replies
0
Boosts
0
Views
570
Activity
Sep ’16
Reply to MapKit crash on Catalyst after resizing the window
In Xcode, in the Product Menu, go to Scheme, then Edit Scheme.... In the left panel select Run (Debug) and in Diagnostic tab uncheck API Validation under Metal settings.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jan ’22
Reply to Xcode 9 produces invalid Code Signature
Yes I did, but somehow forgot to post it here. In my case, both targets (MAS & Dev ID version) depend on other targets, like helper apps and app extensions, which are being copied into the main app bundle. I've configured the schemes of the main apps to automatically build the schemes of their dependencies, but for some reason this configuration got messed up (Xcode sometimes crashed when I edited the schemes). Xcode ended up building the wrong dependencies which themselves were signed with a code signature not matching the one of the main app. After fixing the schemes I was able to create a valid bundle.
Replies
Boosts
Views
Activity
Jan ’18
Reply to Doesn't work proxy auto config on iOS 15
https://developer.apple.com/documentation/ios-ipados-release-notes/ios-ipados-15-release-notes Support for cleartext HTTP URL schemes for Proxy Automatic Configuration (PAC) is now deprecated. Use only HTTPS URL schemes for PAC. This affects all PAC configurations, including, but not limited to, configurations set via Settings, System Preferences, profiles, and URLSession APIs such as connectionProxyDictionary and CFNetworkExecuteProxyAutoConfigurationURL(::::). If you configure a cleartext HTTP PAC URL, the system may upgrade it to HTTPS during PAC file loads. Web Proxy Auto-Discovery (WPAD) Protocol via DNS isn’t affected. Dynamic Host Configuration Protocol (DHCP) Option 252 WPAD may attempt to upgrade cleartext HTTP URLs to HTTPS during PAC file loads. (61981845)
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’21
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 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