Search results for

“translate scheme”

6,658 results found

Post

Replies

Boosts

Views

Activity

Apple Maps URL scheme daddr=lat,long no longer working – regression?
Hello, I'm experiencing an issue with the Apple Maps URL scheme when using raw latitude and longitude coordinates in the daddr parameter. Until recently, using a URL like this worked reliably: https://maps.apple.com/?daddr=37.7749,-122.4194 This would open Apple Maps and show directions from the current location to the specified coordinates. However, on recent iOS versions, this URL no longer behaves as expected.
1
0
241
May ’25
Sandbox Url Not Receiving App Store Server Notifications
I have an Expo React Native application and I am using react-native-iap library. I have setup the URL for sandbox and production url to receive notifications when a something happens regarding subscriptions. I am not able to receive those notifications when I simulate the purchase on the Simulator using Xcode. I then have used the node library app-store-server-library to mock a test notification and I am receiving the test notification when I call requestTestNotification method. below is the react-native code I am using: import {useEffect, useState} from react; import { initConnection, Sku, Subscription, useIAP, SubscriptionIOS, requestSubscription, PurchaseError, clearTransactionIOS } from react-native-iap; import styles from @/screens/IAP/IAPStyles; import CustomText from @/components/CustomText; import Heading from @/components/Heading; import subscriptionsProducts from @/utilities/products; function IAPScreen() { const [isPurchasing, setIsPurchasing] = useState(false); const [loading, setLoading] = useSta
1
0
182
May ’25
Open new document in SwiftUI on iOS
I have a SwiftUI document based app. The iOS version has a Scene Delegate: class SceneDelegate: NSObject, UIWindowSceneDelegate { func scene(_ scene: UIScene, openURLContexts URLContexts: Set) { for context in URLContexts { let url = context.url // url.scheme = my custom scheme let text = ... extracted from url ... // I want to open a new untitled document with text // but 'newDocument' has been explicitly marked unavailable for iOS } } }
Topic: UI Frameworks SubTopic: SwiftUI
1
0
67
May ’25
Reply to macOS Hang After Implementing UserMapHBAData()
However, there's still an issue: the second call to SetDispatchQueue() fails, even if I add a sleep before it. This isn't really an I/O call (it's basically adds and entry to a lookup table inside you DEXT), so the delay wouldn't matter. !!! ERROR : ret = 0xe00002c2 !!! The error 0xe00002c2 is kIOReturnBadArgument. Have you marked any of the methods in your iig file with QUEUENAME-> InterruptQueue? As far as I can tell, the only error SetDispatchQueue can ever return is kIOReturnBadArgument and the only reason it return that is that the corresponding QUEUENAME() declaration is missing. Eventually, I was able to fix it by experimenting with different parameter values: Glad to here that you've got this working. How should I go about doing that, exactly? I'll admit, I haven't tried to implement this in detail, however, fundamentally, the I/O system is blind. That is, the only reason it knows a write worked is because your driver said it did. I think you have enough control of the configuration side that you c
Topic: App & System Services SubTopic: Drivers Tags:
May ’25
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 Supporting development of ACME - Freshness code question
I updated the Mac to 24F74 yesterday. So, there is a new attestation certificate today. Again, the contents of the freshness code OID do not match any hash of the nonces sent by the server. Does macOS store the nonce in a retrievable way or can we put something into debug mode and have it record what it's sending and receiving from the ACME server? It's like something is being lost in translation.
May ’25
Unable to debug Memory Graph in Xcode: "an unknown error occurred launching the helper task"
I am not able to use the Debug Memory Graph tool as well as Leaks instrument inside Xcode to debug my project. I'm running my project on physical iOS device on running 18.3 version and I tested the project on two different MacBooks running Xcode 16.3 and 16.1. On both the same problem persists. I have also reinstalled the project on the device and tried restarting all devices and cleared DerivedData. Nothing helped. Clicking Show details shows such output: Domain: DTLeaksService Code: -1 User Info: { DVTErrorCreationDateKey = 2025-05-07 06:30:53 +0000; DVTRadarComponentKey = 637311; } -- Event Metadata: com.apple.dt.memory_graph_capture : { debugSession_coalescedState = 2; debugSession_isSynthetic = 0; debugSession_state = 2; device_identifier = 00008110-0009448221A3801E; device_isCoreDevice = 1; device_model = iPhone14,4; device_osBuild = 18.4 (22E240); device_platform = com.apple.platform.iphoneos; device_thinningType = iPhone14,4; dvt_coredevice_version = 397.24; dvt_coresimulator_version = 987.2; dvt_mobi
2
0
223
May ’25
Reply to Translation API & Download Language Sheet
@DTS Engineer Thank you for the response. The attached code recreates the issue. We discovered the root appears to be a variable state-change while the Download Sheet is presented causes the sheet to auto-dismiss with errors. However, this error is only present on the first execution. Subsequent attempts do not auto-dismiss the sheet. Please let us know if this description and sample code are clear enough. Thanks! Example Code: // // TranslateSheet.swift // // import SwiftUI import Translation struct TranslateSheet: View { @State private var configuration: TranslationSession.Configuration? private let languageAvailability = LanguageAvailability() @State var text: String = Sample Text to be Translated @State var permitTranslation: Bool = true var body: some View { VStack (alignment: .center) { Text(text) .fontWeight(.black) .padding() Button(TAP to Translate English to Spanish & Show Download Sheet) { performTranslation(from: en_US, to: es_ES) DispatchQueue.main.asyncAfter(deadli
Topic: App & System Services SubTopic: General Tags:
May ’25
How to obtain frame rate for iOS proMotion devices
Due to the release of ProMotion devices, the system may switch frame rates in certain scenarios, resulting in the loss of reference value for data collected through CADisplayLink callbacks at a fixed 60Hz frame rate. We cannot distinguish whether the slow callback of CADisplayLink is due to a stutter or a system switch in frame rate. I know Hitch Time Ratio, but I can't use this scheme for some reasons. How can I distinguish between stuck and frame rate gear shift in CADisplaylink callback? In iOS 15, CADisplayLink.preferredFrameRateRange.preferred always returns 0, while minimum and maximum do change. Can I use these minimum and maximum range values as criteria to distinguish between frame rate switching and stuttering?
1
0
163
May ’25
Reply to Copy Whats new Text from a previous release
I used a third-party tool called Fastlane - it allows you to upload release notes with a single command. You can keep your What's New texts in plain .txt files and push all translations at once with just one command. lane :update_release_notes do deliver( metadata_path: ./fastlane/metadata, # points to your local metadata skip_binary_upload: true, # don’t upload any .ipa/pkg skip_screenshots: true, # don’t upload screenshots skip_app_version_update: true, # (optional) leave version untouched force: true # skip the HTML report step ) end
May ’25
Reply to Translation API & Download Language Sheet
Resolution Incase anyone stumbles on this, here's our solution to can't use if-statements in .translationTask(configuration) Originally I built a ViewModifier to switch between conditions (download only, or perform translation); but that didn't work for our use case. View Modifiers redraw the view causing TextEditors to lose their focus, which would not work for us. I landed on making a second TranslationSession.Configuration one for checking if language is downloaded, one for performing the translation. We check which to execute when the user taps the translate button: Two Configurations device owner is translating to @State var configurationForDownloadCheck: TranslationSession.Configuration? @State var configuration: TranslationSession.Configuration? Check which to run .onTapGesture { Task { // check if languages are downloaded and set control var let languagesFullyDownloaded = await translationLanguageIsDownloaded(from: nativeLanguageCode!, to: guestLanguageCode!) perfor
Topic: App & System Services SubTopic: General Tags:
May ’25
Reply to Translation API & Download Language Sheet
Progress Update: An if-statement inside .translationTask(configuration){} seems to be causing the issue:. The goal is using only 1 UI element, check if the language is downloaded. Only present the Download Sheet if needed; otherwise, perform the translation. Presently looking for work-arounds. Doesn't work (sheet auto-dismisses): .translationTask(configuration) { session in Task { @MainActor in do { if performFullTranslate { // prepare try await session.prepareTranslation() // send inputText to Translation API let response = try await session.translate(textObject.inputText) // swap the inputText for the translation textObject.inputText = response.targetText } else { // just prepare the DL sheet try await session.prepareTranslation() } } catch { print(Translate failed: (error)) } } } Works (presents sheet, but can't perform translation): .translationTask(configuration) { session in Task { @MainActor in do { // just prepare the DL sheet try await session.prepareTrans
Topic: App & System Services SubTopic: General Tags:
May ’25
Translation API & Download Language Sheet
Using Apple SwiftUI Translate library: when calling: try await session.prepareTranslation() the first time, the API's Language Download sheet does not show (or shows briefly and dismisses immediately) Even when the sheet doesn't show, the keyboard is lowered, as though the sheet would be appearing, but then the keyboard raises as though the sheet was dismissed. The following Errors are printed in the console dozens of times; but on all subsequent executions, the API Language Download sheet shows as expected. The trigger code is in a function which is executed when a Translate button is tapped. Any ideas would be welcome! Console Error on first execution only LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 process may not map database UserInfo={NSDebugDescription=process may not map database, _LSLine=72, _LSFunction=_LSServer_GetServerStoreForConnectionWithCompletionHandler} Attempt to map database failed: permission was denied. This attempt wil
4
0
188
May ’25
Testing Achievements - Apple Documentation out of Date
New to achievements. I added them in App Store Connect and want to test them. Apple Documentation says this: Before you begin testing your GameKit configuration, you need to enable Debug Mode. In Xcode, choose Product > Scheme > Edit Scheme. From the Run configuration, select Options and toggle Enable Debug Mode. To begin testing your achievement configuration, open the game Progress Manager. In Xcode, choose Debug > GameKit > Manage Game Progress. Sounds easy enough, but there is no GameKit under Debug in Xcode 16.2.
2
0
156
May ’25
Reply to public API which allows to get information about APFS
Thank you for answer! what are you trying to do? The customer wants real-time monitoring of SSD/HDD space usage alongside the partition scheme.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
May ’25
Apple Maps URL scheme daddr=lat,long no longer working – regression?
Hello, I'm experiencing an issue with the Apple Maps URL scheme when using raw latitude and longitude coordinates in the daddr parameter. Until recently, using a URL like this worked reliably: https://maps.apple.com/?daddr=37.7749,-122.4194 This would open Apple Maps and show directions from the current location to the specified coordinates. However, on recent iOS versions, this URL no longer behaves as expected.
Replies
1
Boosts
0
Views
241
Activity
May ’25
Sandbox Url Not Receiving App Store Server Notifications
I have an Expo React Native application and I am using react-native-iap library. I have setup the URL for sandbox and production url to receive notifications when a something happens regarding subscriptions. I am not able to receive those notifications when I simulate the purchase on the Simulator using Xcode. I then have used the node library app-store-server-library to mock a test notification and I am receiving the test notification when I call requestTestNotification method. below is the react-native code I am using: import {useEffect, useState} from react; import { initConnection, Sku, Subscription, useIAP, SubscriptionIOS, requestSubscription, PurchaseError, clearTransactionIOS } from react-native-iap; import styles from @/screens/IAP/IAPStyles; import CustomText from @/components/CustomText; import Heading from @/components/Heading; import subscriptionsProducts from @/utilities/products; function IAPScreen() { const [isPurchasing, setIsPurchasing] = useState(false); const [loading, setLoading] = useSta
Replies
1
Boosts
0
Views
182
Activity
May ’25
Open new document in SwiftUI on iOS
I have a SwiftUI document based app. The iOS version has a Scene Delegate: class SceneDelegate: NSObject, UIWindowSceneDelegate { func scene(_ scene: UIScene, openURLContexts URLContexts: Set) { for context in URLContexts { let url = context.url // url.scheme = my custom scheme let text = ... extracted from url ... // I want to open a new untitled document with text // but 'newDocument' has been explicitly marked unavailable for iOS } } }
Topic: UI Frameworks SubTopic: SwiftUI
Replies
1
Boosts
0
Views
67
Activity
May ’25
Reply to macOS Hang After Implementing UserMapHBAData()
However, there's still an issue: the second call to SetDispatchQueue() fails, even if I add a sleep before it. This isn't really an I/O call (it's basically adds and entry to a lookup table inside you DEXT), so the delay wouldn't matter. !!! ERROR : ret = 0xe00002c2 !!! The error 0xe00002c2 is kIOReturnBadArgument. Have you marked any of the methods in your iig file with QUEUENAME-> InterruptQueue? As far as I can tell, the only error SetDispatchQueue can ever return is kIOReturnBadArgument and the only reason it return that is that the corresponding QUEUENAME() declaration is missing. Eventually, I was able to fix it by experimenting with different parameter values: Glad to here that you've got this working. How should I go about doing that, exactly? I'll admit, I haven't tried to implement this in detail, however, fundamentally, the I/O system is blind. That is, the only reason it knows a write worked is because your driver said it did. I think you have enough control of the configuration side that you c
Topic: App & System Services SubTopic: Drivers Tags:
Replies
Boosts
Views
Activity
May ’25
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 Supporting development of ACME - Freshness code question
I updated the Mac to 24F74 yesterday. So, there is a new attestation certificate today. Again, the contents of the freshness code OID do not match any hash of the nonces sent by the server. Does macOS store the nonce in a retrievable way or can we put something into debug mode and have it record what it's sending and receiving from the ACME server? It's like something is being lost in translation.
Replies
Boosts
Views
Activity
May ’25
Unable to debug Memory Graph in Xcode: "an unknown error occurred launching the helper task"
I am not able to use the Debug Memory Graph tool as well as Leaks instrument inside Xcode to debug my project. I'm running my project on physical iOS device on running 18.3 version and I tested the project on two different MacBooks running Xcode 16.3 and 16.1. On both the same problem persists. I have also reinstalled the project on the device and tried restarting all devices and cleared DerivedData. Nothing helped. Clicking Show details shows such output: Domain: DTLeaksService Code: -1 User Info: { DVTErrorCreationDateKey = 2025-05-07 06:30:53 +0000; DVTRadarComponentKey = 637311; } -- Event Metadata: com.apple.dt.memory_graph_capture : { debugSession_coalescedState = 2; debugSession_isSynthetic = 0; debugSession_state = 2; device_identifier = 00008110-0009448221A3801E; device_isCoreDevice = 1; device_model = iPhone14,4; device_osBuild = 18.4 (22E240); device_platform = com.apple.platform.iphoneos; device_thinningType = iPhone14,4; dvt_coredevice_version = 397.24; dvt_coresimulator_version = 987.2; dvt_mobi
Replies
2
Boosts
0
Views
223
Activity
May ’25
Reply to Translation API & Download Language Sheet
@DTS Engineer Thank you for the response. The attached code recreates the issue. We discovered the root appears to be a variable state-change while the Download Sheet is presented causes the sheet to auto-dismiss with errors. However, this error is only present on the first execution. Subsequent attempts do not auto-dismiss the sheet. Please let us know if this description and sample code are clear enough. Thanks! Example Code: // // TranslateSheet.swift // // import SwiftUI import Translation struct TranslateSheet: View { @State private var configuration: TranslationSession.Configuration? private let languageAvailability = LanguageAvailability() @State var text: String = Sample Text to be Translated @State var permitTranslation: Bool = true var body: some View { VStack (alignment: .center) { Text(text) .fontWeight(.black) .padding() Button(TAP to Translate English to Spanish & Show Download Sheet) { performTranslation(from: en_US, to: es_ES) DispatchQueue.main.asyncAfter(deadli
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’25
How to obtain frame rate for iOS proMotion devices
Due to the release of ProMotion devices, the system may switch frame rates in certain scenarios, resulting in the loss of reference value for data collected through CADisplayLink callbacks at a fixed 60Hz frame rate. We cannot distinguish whether the slow callback of CADisplayLink is due to a stutter or a system switch in frame rate. I know Hitch Time Ratio, but I can't use this scheme for some reasons. How can I distinguish between stuck and frame rate gear shift in CADisplaylink callback? In iOS 15, CADisplayLink.preferredFrameRateRange.preferred always returns 0, while minimum and maximum do change. Can I use these minimum and maximum range values as criteria to distinguish between frame rate switching and stuttering?
Replies
1
Boosts
0
Views
163
Activity
May ’25
Reply to Copy Whats new Text from a previous release
I used a third-party tool called Fastlane - it allows you to upload release notes with a single command. You can keep your What's New texts in plain .txt files and push all translations at once with just one command. lane :update_release_notes do deliver( metadata_path: ./fastlane/metadata, # points to your local metadata skip_binary_upload: true, # don’t upload any .ipa/pkg skip_screenshots: true, # don’t upload screenshots skip_app_version_update: true, # (optional) leave version untouched force: true # skip the HTML report step ) end
Replies
Boosts
Views
Activity
May ’25
Reply to Translation API & Download Language Sheet
Resolution Incase anyone stumbles on this, here's our solution to can't use if-statements in .translationTask(configuration) Originally I built a ViewModifier to switch between conditions (download only, or perform translation); but that didn't work for our use case. View Modifiers redraw the view causing TextEditors to lose their focus, which would not work for us. I landed on making a second TranslationSession.Configuration one for checking if language is downloaded, one for performing the translation. We check which to execute when the user taps the translate button: Two Configurations device owner is translating to @State var configurationForDownloadCheck: TranslationSession.Configuration? @State var configuration: TranslationSession.Configuration? Check which to run .onTapGesture { Task { // check if languages are downloaded and set control var let languagesFullyDownloaded = await translationLanguageIsDownloaded(from: nativeLanguageCode!, to: guestLanguageCode!) perfor
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’25
Reply to Translation API & Download Language Sheet
Progress Update: An if-statement inside .translationTask(configuration){} seems to be causing the issue:. The goal is using only 1 UI element, check if the language is downloaded. Only present the Download Sheet if needed; otherwise, perform the translation. Presently looking for work-arounds. Doesn't work (sheet auto-dismisses): .translationTask(configuration) { session in Task { @MainActor in do { if performFullTranslate { // prepare try await session.prepareTranslation() // send inputText to Translation API let response = try await session.translate(textObject.inputText) // swap the inputText for the translation textObject.inputText = response.targetText } else { // just prepare the DL sheet try await session.prepareTranslation() } } catch { print(Translate failed: (error)) } } } Works (presents sheet, but can't perform translation): .translationTask(configuration) { session in Task { @MainActor in do { // just prepare the DL sheet try await session.prepareTrans
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’25
Translation API & Download Language Sheet
Using Apple SwiftUI Translate library: when calling: try await session.prepareTranslation() the first time, the API's Language Download sheet does not show (or shows briefly and dismisses immediately) Even when the sheet doesn't show, the keyboard is lowered, as though the sheet would be appearing, but then the keyboard raises as though the sheet was dismissed. The following Errors are printed in the console dozens of times; but on all subsequent executions, the API Language Download sheet shows as expected. The trigger code is in a function which is executed when a Translate button is tapped. Any ideas would be welcome! Console Error on first execution only LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 process may not map database UserInfo={NSDebugDescription=process may not map database, _LSLine=72, _LSFunction=_LSServer_GetServerStoreForConnectionWithCompletionHandler} Attempt to map database failed: permission was denied. This attempt wil
Replies
4
Boosts
0
Views
188
Activity
May ’25
Testing Achievements - Apple Documentation out of Date
New to achievements. I added them in App Store Connect and want to test them. Apple Documentation says this: Before you begin testing your GameKit configuration, you need to enable Debug Mode. In Xcode, choose Product > Scheme > Edit Scheme. From the Run configuration, select Options and toggle Enable Debug Mode. To begin testing your achievement configuration, open the game Progress Manager. In Xcode, choose Debug > GameKit > Manage Game Progress. Sounds easy enough, but there is no GameKit under Debug in Xcode 16.2.
Replies
2
Boosts
0
Views
156
Activity
May ’25