Search results for

“file uri scheme”

81,703 results found

Post

Replies

Boosts

Views

Activity

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
284
Jul ’25
Reply to How do I configure the binary so that I do only support A12 and A13 chips that support the AVCaptureMultiCamSession API?
While that scheme works for 'arkit', I don't yet see a more restrictive key for arkit 3.0https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html#//apple_ref/doc/uid/TP40009252-SW3You may want to file an enhancement request for such a key via the bug reporter.Good luck
Sep ’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:
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
In Xcode's build phases section is it possible to enable/disable compile flags bases on scheme
If an Xcode project has some compiler flags set in Build Phases / Compile Sources, then is it possible to have those enabled if scheme A is selected and disabled if scheme B is selected. Same question for things in Build Settings, such as Other Compiler Flags. I suppose it could be achieved by having two targets, one with things enabled and one without, but for a very large complex project, duplicating targets is not necessarily an easy thing to do.
1
0
80
May ’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 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
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
569
Sep ’16
Reply to Monterey - Uninstalling Revisited
I've just tried this on Monterey Beta 5. The problem persists however the systemextensionsctl command no longer crashes, but instead still prints out our system extension in a state of [activated enabled], but now two additional lines showing the Team ID, the URI of the system extension, the version, and then - [realizing]
Topic: App & System Services SubTopic: Drivers Tags:
Aug ’21
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 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 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
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
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
284
Activity
Jul ’25
Reply to How do I configure the binary so that I do only support A12 and A13 chips that support the AVCaptureMultiCamSession API?
While that scheme works for 'arkit', I don't yet see a more restrictive key for arkit 3.0https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html#//apple_ref/doc/uid/TP40009252-SW3You may want to file an enhancement request for such a key via the bug reporter.Good luck
Replies
Boosts
Views
Activity
Sep ’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 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
In Xcode's build phases section is it possible to enable/disable compile flags bases on scheme
If an Xcode project has some compiler flags set in Build Phases / Compile Sources, then is it possible to have those enabled if scheme A is selected and disabled if scheme B is selected. Same question for things in Build Settings, such as Other Compiler Flags. I suppose it could be achieved by having two targets, one with things enabled and one without, but for a very large complex project, duplicating targets is not necessarily an easy thing to do.
Replies
1
Boosts
0
Views
80
Activity
May ’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 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
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
569
Activity
Sep ’16
Reply to Monterey - Uninstalling Revisited
I've just tried this on Monterey Beta 5. The problem persists however the systemextensionsctl command no longer crashes, but instead still prints out our system extension in a state of [activated enabled], but now two additional lines showing the Team ID, the URI of the system extension, the version, and then - [realizing]
Topic: App & System Services SubTopic: Drivers Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to invalid_client in 'Sign in with Apple' /auth/authorize
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 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 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