Search results for

“translate scheme”

6,658 results found

Post

Replies

Boosts

Views

Activity

Reply to Replacement for LSSetDefaultHandlerForURLScheme?
Hey, thanks, I really appreciate you responding. Our use case is this: we use a 3rd-party web app (Autodesk Flow Production Tracking) that uses a custom URL scheme to launch a desktop app (RV). This works fine. However, it is not uncommon for more than one version of the desktop app to be installed on any given machine for various reasons (feature requirements for different different projects, testing, troubleshooting). In addition, the desktop app supports site-customized scripted add-ons that require context-dependent environment variables to work properly. So historically, we have used LSSetDefaultHandlerForURLScheme to point the custom URL scheme to an in-house app that did the environment setup work and then launched the required version of the desktop app. Now, we are finding it hard to keep the custom URL scheme reliably pointed to our environment setup app. Since it registers the same custom URL scheme as the Autodesk desktop app, what actually gets launched is now
Topic: App & System Services SubTopic: General Tags:
Mar ’25
Window server problem
Hi, I needed some help in understanding the crash logs which is as below. Any help is very much appreciated. Translated Report (Full Report Below) Process: WindowServer [440] Path: /System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/Resources/WindowServer Identifier: WindowServer Version: 600.00 (???) Code Type: ARM-64 (Native) Parent Process: launchd [1] User ID: 88 Date/Time: 2025-03-13 12:58:55.0091 +0800 OS Version: macOS 15.3.1 (24D70) Report Version: 12 Anonymous UUID: C795BDC3-66F0-6CF9-7533-B788D0B2DD80 Sleep/Wake UUID: 6F927AA6-3C7B-4EE9-AB68-B77F0D1D622A Time Awake Since Boot: 4400 seconds Time Since Wake: 996 seconds System Integrity Protection: enabled C
0
0
275
Mar ’25
Reply to Unable to see source editor extension commands in Xcode 16
Geting Xcode to recognise your source editor extension can be tricky. There are two cases to consider: Debugging Production I recommend you start with the debugging case. When you create a new source editor extension target, Xcode create a scheme for it. That scheme isn’t very useful out of the box. Do this: Use your primary copy of Xcode for this work. Ideally it’d be the one in the Applications folder. Select the extension scheme in Product > Scheme. Choose Product > Scheme > Edit Scheme. In the Run action, switch to the Info tab. On the Executable popup, choose Other and select your primary copy of Xcode. Make sure Debug Executable is not checked. Close the sheet and then choose Product > Run. Xcode should launch a second copy of itself. In the Dock, you’ll see the icon with an orangey tint. Bring that to the front. In this copy, open a test project and navigate to a source file. Your extension should be visible at the bottom of the Editor m
Mar ’25
Reply to Replacement for LSSetDefaultHandlerForURLScheme?
Sorry for the long delay. I suspect I was out of the office when you originally posted this. There is no recommended replacement for LSSetDefaultHandlerForURLScheme. In some cases this functionality has been subsumed by the system. In some cases this functionality is no longer available to your app [1]. In some cases there’s no replacement because we favour Universal Links over URL schemes. If you have a use case that’s not covered by the above, you should feel free to file an enhancement request with detailed information about what you need to do. You can then continue using LSSetDefaultHandlerForURLScheme in the interim. Please post your bug number, just for the record. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com [1] Specifically, for apps on the Mac App Store, where such requests are blocked by the App Sandbox.
Topic: App & System Services SubTopic: General Tags:
Mar ’25
Reply to LSRegisterURL resultCode -10819
OK, then I think you have bigger problems. At one point we updated the sandbox to block attempts to change default URL scheme handlers. So, even if you get past this, I suspect that LSSetDefaultHandlerForURLScheme will fail [1]. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com [1] I vaguely remember this failing with permErr, or -54, but… Oh wow, some searching turned this up in a DTS case from 2018 (s. 701054199).
Topic: App & System Services SubTopic: General Tags:
Mar ’25
Reply to Overview of steps to create new app from existing one
I tend to agree with darkpaw here. I’m more likely to create a new project for the app and then copy over any source code that I want to reuse in that app. As projects evolve they tend to accumulate cruft, and a new project lets you leave all that behind. Having said that, duplicating a project isn’t completely unreasonable. If you have automatic code signing enabled then the only thing you should need to change is the bundled ID, in Signing & Capabilities. But that’s only going to work for simple projects. Any complicated project is going to have additional bits that you need to think about carefully. For example: If your project has app extensions, you need to change their bundle IDs to match. If it’s a document-based app, you need to tweak all the document types. Likewise for URL scheme handlers, icons, App Intents, and many many many other things The nice thing about creating a new project is that you ‘fault’ these things incrementally, as you notice they’re missing. If you duplicate your pro
Mar ’25
Default Calling App on vehicle (Bluetooth)
I have a question about the default calling function that is supported by third-party apps on iOS from 18.2. In most cases, it works normally with the default calling app setting, but the problem occurs when connected to the vehicle via Bluetooth. Install the app that sets the default calling app on the device. Keep the phone locked. Connect the Bluetooth to the vehicle. Try to make a call using the phone button on the vehicle's steering wheel. When trying to make a call from the vehicle, the call fails (It seems that the app cannot be opened when the phone is locked even if the default calling app setting is on.) When you unlock the phone and turn on the app, the call is made. As far as I understand, if the app scheme is called with tel:// when set as the default calling app, it only proceeds with the intent connection to the app set as the default calling app, and the permissions that Apple's default call app has cannot be used. Accordingly, my questions are as follows: Is there a way to make a cal
1
0
251
Mar ’25
Error Missing required module 'RxCocoaRuntime' in xcframeworks
Hi. I have a xcframework that has a dependency on 'RxSwift' and 'RxCocoa'. I deployed it using SPM by embedding it in a Swift Package. However when I import swift package into another project, I keep getting the following error: Missing required module 'RxCocoaRuntime How can I fix this? Below are the steps to reproduce the error. Steps Create Xcode proejct, make a dependency on 'RxSwift' and 'RxCocoa' (no matter doing it through tuist or cocoapods) Create XCFramework from that proejct. (I used commands below) xcodebuild archive -workspace SimpleFramework.xcworkspace -scheme SimpleFramework -destination generic/platform=iOS -archivePath ./SimpleFramework-iphoneos.xcarchive -sdk iphoneos SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES xcodebuild archive -workspace SimpleFramework.xcworkspace -scheme SimpleFramework -archivePath ./SimpleFramework-iphonesimulator.xcarchive -sdk iphonesimulator SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES xcodebuild -create-xcframework -fr
0
0
291
Mar ’25
How to pass URL to iOS app from share sheet, and automatically open app?
Hello everyone, I’ve been trying to pass a URL from Safari (or any other app) into my own app via iOS extensions (similar to how if you go to a website, open the share sheet, and hit the ChatGPT app icon, it opens ChatGPT and pastes the website URL into the chat textbox), and I’m hitting a wall. I’ve attempted both a Share Extension (using SLComposeServiceViewController) and a UI-less Action Extension (using extensionContext?.open(...)), but in both scenarios, my main app never opens. Here’s a summary of my setup: Main App Target plist CFBundleURLTypes CFBundleTypeRole Editor CFBundleURLName com.elislothower.URLDisplayApp CFBundleURLSchemes myapp LSApplicationQueriesSchemes This means my custom URL scheme is myapp://. My app delegate (or SwiftUI’s .onOpenURL) correctly handles myapp://share?url=... if I open it directly from Safari. Share Extension Attempt Subclassed SLComposeServiceViewController. Plist had com.apple.share-services as the NSExtensionPointIdentifier. I called extensionCo
3
0
598
Mar ’25
Reply to Using ARKit Replay hangs forever on "Attaching to App"...
For anybody encountering this in the future, it turned out that the .mov being in a different folder than the project (Downloads vs Documents) was causing Xcode to silently fail. I had never rejected permissions for Xcode to access a folder. Temporary solution: Putting the .mov into a public folder such as /Users/Shared/... and re-adding it to the scheme seems to have fixed the issue. This doesn't explain why it worked once but not in subsequent runs.
Mar ’25
Reply to Redirecting to an app's universal link from and app extension popup
Custom URL schemes seem to work a bit better than universal links. In all the cases where the universal link attempts to open the web page and adds a page banner saying Open in APP, the custom URL scheme instead presents a blank grey page with a popup saying Open in APP?. Although both involve the same number of taps for the user, the latter is much more better in practice as it's obvious what the user has to do.
Topic: Safari & Web SubTopic: General Tags:
Mar ’25
Reply to Replacement for LSSetDefaultHandlerForURLScheme?
Hey, thanks, I really appreciate you responding. Our use case is this: we use a 3rd-party web app (Autodesk Flow Production Tracking) that uses a custom URL scheme to launch a desktop app (RV). This works fine. However, it is not uncommon for more than one version of the desktop app to be installed on any given machine for various reasons (feature requirements for different different projects, testing, troubleshooting). In addition, the desktop app supports site-customized scripted add-ons that require context-dependent environment variables to work properly. So historically, we have used LSSetDefaultHandlerForURLScheme to point the custom URL scheme to an in-house app that did the environment setup work and then launched the required version of the desktop app. Now, we are finding it hard to keep the custom URL scheme reliably pointed to our environment setup app. Since it registers the same custom URL scheme as the Autodesk desktop app, what actually gets launched is now
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’25
Window server problem
Hi, I needed some help in understanding the crash logs which is as below. Any help is very much appreciated. Translated Report (Full Report Below) Process: WindowServer [440] Path: /System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/Resources/WindowServer Identifier: WindowServer Version: 600.00 (???) Code Type: ARM-64 (Native) Parent Process: launchd [1] User ID: 88 Date/Time: 2025-03-13 12:58:55.0091 +0800 OS Version: macOS 15.3.1 (24D70) Report Version: 12 Anonymous UUID: C795BDC3-66F0-6CF9-7533-B788D0B2DD80 Sleep/Wake UUID: 6F927AA6-3C7B-4EE9-AB68-B77F0D1D622A Time Awake Since Boot: 4400 seconds Time Since Wake: 996 seconds System Integrity Protection: enabled C
Replies
0
Boosts
0
Views
275
Activity
Mar ’25
Reply to Unable to see source editor extension commands in Xcode 16
Geting Xcode to recognise your source editor extension can be tricky. There are two cases to consider: Debugging Production I recommend you start with the debugging case. When you create a new source editor extension target, Xcode create a scheme for it. That scheme isn’t very useful out of the box. Do this: Use your primary copy of Xcode for this work. Ideally it’d be the one in the Applications folder. Select the extension scheme in Product > Scheme. Choose Product > Scheme > Edit Scheme. In the Run action, switch to the Info tab. On the Executable popup, choose Other and select your primary copy of Xcode. Make sure Debug Executable is not checked. Close the sheet and then choose Product > Run. Xcode should launch a second copy of itself. In the Dock, you’ll see the icon with an orangey tint. Bring that to the front. In this copy, open a test project and navigate to a source file. Your extension should be visible at the bottom of the Editor m
Replies
Boosts
Views
Activity
Mar ’25
Reply to Replacement for LSSetDefaultHandlerForURLScheme?
Sorry for the long delay. I suspect I was out of the office when you originally posted this. There is no recommended replacement for LSSetDefaultHandlerForURLScheme. In some cases this functionality has been subsumed by the system. In some cases this functionality is no longer available to your app [1]. In some cases there’s no replacement because we favour Universal Links over URL schemes. If you have a use case that’s not covered by the above, you should feel free to file an enhancement request with detailed information about what you need to do. You can then continue using LSSetDefaultHandlerForURLScheme in the interim. Please post your bug number, just for the record. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com [1] Specifically, for apps on the Mac App Store, where such requests are blocked by the App Sandbox.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’25
Reply to LSRegisterURL resultCode -10819
OK, then I think you have bigger problems. At one point we updated the sandbox to block attempts to change default URL scheme handlers. So, even if you get past this, I suspect that LSSetDefaultHandlerForURLScheme will fail [1]. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com [1] I vaguely remember this failing with permErr, or -54, but… Oh wow, some searching turned this up in a DTS case from 2018 (s. 701054199).
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’25
Reply to Overview of steps to create new app from existing one
I tend to agree with darkpaw here. I’m more likely to create a new project for the app and then copy over any source code that I want to reuse in that app. As projects evolve they tend to accumulate cruft, and a new project lets you leave all that behind. Having said that, duplicating a project isn’t completely unreasonable. If you have automatic code signing enabled then the only thing you should need to change is the bundled ID, in Signing & Capabilities. But that’s only going to work for simple projects. Any complicated project is going to have additional bits that you need to think about carefully. For example: If your project has app extensions, you need to change their bundle IDs to match. If it’s a document-based app, you need to tweak all the document types. Likewise for URL scheme handlers, icons, App Intents, and many many many other things The nice thing about creating a new project is that you ‘fault’ these things incrementally, as you notice they’re missing. If you duplicate your pro
Replies
Boosts
Views
Activity
Mar ’25
Default Calling App on vehicle (Bluetooth)
I have a question about the default calling function that is supported by third-party apps on iOS from 18.2. In most cases, it works normally with the default calling app setting, but the problem occurs when connected to the vehicle via Bluetooth. Install the app that sets the default calling app on the device. Keep the phone locked. Connect the Bluetooth to the vehicle. Try to make a call using the phone button on the vehicle's steering wheel. When trying to make a call from the vehicle, the call fails (It seems that the app cannot be opened when the phone is locked even if the default calling app setting is on.) When you unlock the phone and turn on the app, the call is made. As far as I understand, if the app scheme is called with tel:// when set as the default calling app, it only proceeds with the intent connection to the app set as the default calling app, and the permissions that Apple's default call app has cannot be used. Accordingly, my questions are as follows: Is there a way to make a cal
Replies
1
Boosts
0
Views
251
Activity
Mar ’25
Error Missing required module 'RxCocoaRuntime' in xcframeworks
Hi. I have a xcframework that has a dependency on 'RxSwift' and 'RxCocoa'. I deployed it using SPM by embedding it in a Swift Package. However when I import swift package into another project, I keep getting the following error: Missing required module 'RxCocoaRuntime How can I fix this? Below are the steps to reproduce the error. Steps Create Xcode proejct, make a dependency on 'RxSwift' and 'RxCocoa' (no matter doing it through tuist or cocoapods) Create XCFramework from that proejct. (I used commands below) xcodebuild archive -workspace SimpleFramework.xcworkspace -scheme SimpleFramework -destination generic/platform=iOS -archivePath ./SimpleFramework-iphoneos.xcarchive -sdk iphoneos SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES xcodebuild archive -workspace SimpleFramework.xcworkspace -scheme SimpleFramework -archivePath ./SimpleFramework-iphonesimulator.xcarchive -sdk iphonesimulator SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES xcodebuild -create-xcframework -fr
Replies
0
Boosts
0
Views
291
Activity
Mar ’25
How to pass URL to iOS app from share sheet, and automatically open app?
Hello everyone, I’ve been trying to pass a URL from Safari (or any other app) into my own app via iOS extensions (similar to how if you go to a website, open the share sheet, and hit the ChatGPT app icon, it opens ChatGPT and pastes the website URL into the chat textbox), and I’m hitting a wall. I’ve attempted both a Share Extension (using SLComposeServiceViewController) and a UI-less Action Extension (using extensionContext?.open(...)), but in both scenarios, my main app never opens. Here’s a summary of my setup: Main App Target plist CFBundleURLTypes CFBundleTypeRole Editor CFBundleURLName com.elislothower.URLDisplayApp CFBundleURLSchemes myapp LSApplicationQueriesSchemes This means my custom URL scheme is myapp://. My app delegate (or SwiftUI’s .onOpenURL) correctly handles myapp://share?url=... if I open it directly from Safari. Share Extension Attempt Subclassed SLComposeServiceViewController. Plist had com.apple.share-services as the NSExtensionPointIdentifier. I called extensionCo
Replies
3
Boosts
0
Views
598
Activity
Mar ’25
Reply to Using ARKit Replay hangs forever on "Attaching to App"...
For anybody encountering this in the future, it turned out that the .mov being in a different folder than the project (Downloads vs Documents) was causing Xcode to silently fail. I had never rejected permissions for Xcode to access a folder. Temporary solution: Putting the .mov into a public folder such as /Users/Shared/... and re-adding it to the scheme seems to have fixed the issue. This doesn't explain why it worked once but not in subsequent runs.
Replies
Boosts
Views
Activity
Mar ’25
Reply to Redirecting to an app's universal link from and app extension popup
Custom URL schemes seem to work a bit better than universal links. In all the cases where the universal link attempts to open the web page and adds a page banner saying Open in APP, the custom URL scheme instead presents a blank grey page with a popup saying Open in APP?. Although both involve the same number of taps for the user, the latter is much more better in practice as it's obvious what the user has to do.
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’25
Reply to Redirecting to an app's universal link from and app extension popup
I found this old thread: https://developer.apple.com/forums/thread/684693 which suggests that window.open() might work. It hasn't worked for me yet, but they were discussing custom URL schemes rather than universal links. Might that be significant?
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’25
Reply to Opening native app from a web extension
window.open(universal-link) not working for me in 2025. Might a custom URL scheme behave differently than a universal link?
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’25
Reply to crossorigin="anonymous" Prevents Rendering and Canvas Access for Custom Scheme and HTTP Images on iOS 18
If this is the case, then using a custom scheme with WKURLSchemeHandler to access local resources on an https page will be disallowed. In that case, what is the purpose of WKURLSchemeHandler? It cannot intercept schemes like https, http, or file, nor can it intercept custom schemes. Are there any alternative solutions?
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’25
Reply to Erreur 34 311
malware massage Scheme fix (macOS) is not testable. Last login: Wed Mar 12 04:37:21 on ttys000 login: /usr/bin/zsh: No such file or directory
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’25