Search results for

“translate scheme”

6,658 results found

Post

Replies

Boosts

Views

Activity

How to attach to Privileged Helper as root?
We have a Privileged Helper tool that we install with SMJobBless. I would like to debug it. I've added WaitForDebugger in our helper tool launchd plist and it does wait. But I can't attach to it via Debug->Attach to Process in Xcode with error: Code: 3 Failure Reason: tried to attach to process as user 'myusername' and process is running as user 'root' I set Debug process as: root in scheme settings. But I'm not sure if it does anything since I'm not running this particular scheme at the moment of attach. I tried unsuccessfully to set Wait for the executable to be launched but I had to create a new scheme for it since helper is built as part of the main app so maybe I did something wrong. Am I doing something wrong or is it not possible to attach to root process?
2
0
723
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
Is it possible to translate RoomCaptureView user instructions?
I've been working on an app that uses the new RoomPlan API and I'm looking for a way to translate the Scan Guidance or User Instructions that are overlayed on the RoomCaptureView when the user is scanning a room. Instructions like Move device to start and Move further away are in English but I'd like them to be in Dutch in my case. I can't seem to find a way to provide translations to these instructions myself and setting the device region or language doesn't seem to change anything. Is this even possible currently?
1
0
1.3k
Oct ’22
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 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
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
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
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 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
StoreKit2 with C++ application. How?
Hello all! My application written with C++ and using StoreKit1. For now my application using bridge C++/Objective-CPP/Objective-C/Swift. Since StoreKit1 declared deprecated got a question of how to implement correctly StoreKit2 in C++ application, mostly everything about Renewable Subscriptions. StoreKit2 have no direct API in Objective-C, it's available only in Swift. Which is the way the best and correct way: -- for on-device writing C library and in it implement Swift? In this case how to add correctly StoreKit2 into library itself? -- for on-device somehow write kind of wrapper for Swift StoreKit 2 within translation of all of objects in Objective-C and implement it with C++/Objective-CPP bridge? In this case how to add correctly StoreKit2 in C++ project written with CMake? Here https://github.com/compnerd/swift-cmake-examples/tree/main the one of the examples of interoperability C++/Swift with CMake. But how to use exactly with StoreKit2? -- only using server side solution?
6
0
793
May ’25
C program posix_spawn diskutil fails with error -69877
Hello, I am programming a CLI tool to partition USB disks. I am calling diskutil to do the work, but I am hitting issues with permissions, it seems. Here is a trial run of the same command running diskutil directly on the terminal vs running from my code: Calling diskutil directly (works as expected) % /usr/sbin/diskutil partitionDisk /dev/disk2 MBR Free Space gap 2048S fat32 f-fix 100353S Free Space tail 0 Started partitioning on disk2 Unmounting disk Creating the partition map Waiting for partitions to activate Formatting disk2s1 as MS-DOS (FAT32) with name f-fix 512 bytes per physical sector /dev/rdisk2s1: 98784 sectors in 98784 FAT32 clusters (512 bytes/cluster) bps=512 spc=1 res=32 nft=2 mid=0xf8 spt=32 hds=16 hid=2079 drv=0x80 bsec=100360 bspf=772 rdcl=2 infs=1 bkbs=6 Mounting disk Finished partitioning on disk2 /dev/disk2 (disk image): #: TYPE NAME SIZE IDENTIFIER 0: FDisk_partition_scheme +104.9 MB disk2 1: DOS_FAT_32 F-FIX 51.4 MB disk2s1 Calling diskutil programmatically (error -69877) % sudo ./f-fi
1
0
251
May ’25
Reply to Can someone review this log and tell me if suspcious
Dealing with same. Have attempted to sanitize, have quarantined all devices, changed router, changed devices x3, pre and post paid, changed device manufacturer, transfer provider, cancel cable, hell we even cut up and threw away all chip cards. After doing all the above in tandem was able to get a week or so of ”normalcy”. Have become much more educated over last 90 days for sure. All the above fits my description, however I believe that they are targeting crypto wallets. Agree that it’s a spy or malware, can’t agree enough that it’s more personal than financially motivated. Apple (especially Apple Community) act as though their first born will cease to function by admitting that a high school kid with a gaming computer can log into github and easily take ownership of any device. Swear you gotta be important and it takes millions of dollars to get into iPhones. So happy I found this thread, especially with an expert who’s at least willing to admit it’s possible. I’ve just started reading (and unzipping/translating
May ’25
Denmark's biggest mobile payment service is skirting IAP rules
Hello I recently discovered that Denmark's (and soon the rest of the Nordic countries) biggest mobile payment service - MobilePay - is seemingly getting away with selling digital products in their app without using IAP. I am confused how this is possible, as I spent a lot of time making sure I understand the rules -- and I'm quite confident I do, so the only conclusion I can reach from this is that this is a violation that has not been discovered. If it isn't, I would like an explanation. So, what am I talking about? First; MobilePay is an app that lets you send money to whoever, essentially a Danish version of CashApp. You attach a credit card, and you can transfer funds using people's phone numbers. Nothing about this is problematic. There are some fees involved, which is also fine. But. You can select to wrap your money in digital wrapping paper, which can be unwrapped by the recipient to reveal the amount you transferred. This is, no matter how you spin it, a digital product. It adds about 1 USD to the tr
2
0
135
May ’25
How to attach to Privileged Helper as root?
We have a Privileged Helper tool that we install with SMJobBless. I would like to debug it. I've added WaitForDebugger in our helper tool launchd plist and it does wait. But I can't attach to it via Debug->Attach to Process in Xcode with error: Code: 3 Failure Reason: tried to attach to process as user 'myusername' and process is running as user 'root' I set Debug process as: root in scheme settings. But I'm not sure if it does anything since I'm not running this particular scheme at the moment of attach. I tried unsuccessfully to set Wait for the executable to be launched but I had to create a new scheme for it since helper is built as part of the main app so maybe I did something wrong. Am I doing something wrong or is it not possible to attach to root process?
Replies
2
Boosts
0
Views
723
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
Is it possible to translate RoomCaptureView user instructions?
I've been working on an app that uses the new RoomPlan API and I'm looking for a way to translate the Scan Guidance or User Instructions that are overlayed on the RoomCaptureView when the user is scanning a room. Instructions like Move device to start and Move further away are in English but I'd like them to be in Dutch in my case. I can't seem to find a way to provide translations to these instructions myself and setting the device region or language doesn't seem to change anything. Is this even possible currently?
Replies
1
Boosts
0
Views
1.3k
Activity
Oct ’22
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 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
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
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
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
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
StoreKit2 with C++ application. How?
Hello all! My application written with C++ and using StoreKit1. For now my application using bridge C++/Objective-CPP/Objective-C/Swift. Since StoreKit1 declared deprecated got a question of how to implement correctly StoreKit2 in C++ application, mostly everything about Renewable Subscriptions. StoreKit2 have no direct API in Objective-C, it's available only in Swift. Which is the way the best and correct way: -- for on-device writing C library and in it implement Swift? In this case how to add correctly StoreKit2 into library itself? -- for on-device somehow write kind of wrapper for Swift StoreKit 2 within translation of all of objects in Objective-C and implement it with C++/Objective-CPP bridge? In this case how to add correctly StoreKit2 in C++ project written with CMake? Here https://github.com/compnerd/swift-cmake-examples/tree/main the one of the examples of interoperability C++/Swift with CMake. But how to use exactly with StoreKit2? -- only using server side solution?
Replies
6
Boosts
0
Views
793
Activity
May ’25
C program posix_spawn diskutil fails with error -69877
Hello, I am programming a CLI tool to partition USB disks. I am calling diskutil to do the work, but I am hitting issues with permissions, it seems. Here is a trial run of the same command running diskutil directly on the terminal vs running from my code: Calling diskutil directly (works as expected) % /usr/sbin/diskutil partitionDisk /dev/disk2 MBR Free Space gap 2048S fat32 f-fix 100353S Free Space tail 0 Started partitioning on disk2 Unmounting disk Creating the partition map Waiting for partitions to activate Formatting disk2s1 as MS-DOS (FAT32) with name f-fix 512 bytes per physical sector /dev/rdisk2s1: 98784 sectors in 98784 FAT32 clusters (512 bytes/cluster) bps=512 spc=1 res=32 nft=2 mid=0xf8 spt=32 hds=16 hid=2079 drv=0x80 bsec=100360 bspf=772 rdcl=2 infs=1 bkbs=6 Mounting disk Finished partitioning on disk2 /dev/disk2 (disk image): #: TYPE NAME SIZE IDENTIFIER 0: FDisk_partition_scheme +104.9 MB disk2 1: DOS_FAT_32 F-FIX 51.4 MB disk2s1 Calling diskutil programmatically (error -69877) % sudo ./f-fi
Replies
1
Boosts
0
Views
251
Activity
May ’25
Reply to App Crash Only When Downloaded From TestFlight
Try using the same scheme used for local build for Testflight too and see if any issues. Thanks, VoxelBusters Team
Replies
Boosts
Views
Activity
May ’25
Reply to Can someone review this log and tell me if suspcious
Dealing with same. Have attempted to sanitize, have quarantined all devices, changed router, changed devices x3, pre and post paid, changed device manufacturer, transfer provider, cancel cable, hell we even cut up and threw away all chip cards. After doing all the above in tandem was able to get a week or so of ”normalcy”. Have become much more educated over last 90 days for sure. All the above fits my description, however I believe that they are targeting crypto wallets. Agree that it’s a spy or malware, can’t agree enough that it’s more personal than financially motivated. Apple (especially Apple Community) act as though their first born will cease to function by admitting that a high school kid with a gaming computer can log into github and easily take ownership of any device. Swear you gotta be important and it takes millions of dollars to get into iPhones. So happy I found this thread, especially with an expert who’s at least willing to admit it’s possible. I’ve just started reading (and unzipping/translating
Replies
Boosts
Views
Activity
May ’25
Denmark's biggest mobile payment service is skirting IAP rules
Hello I recently discovered that Denmark's (and soon the rest of the Nordic countries) biggest mobile payment service - MobilePay - is seemingly getting away with selling digital products in their app without using IAP. I am confused how this is possible, as I spent a lot of time making sure I understand the rules -- and I'm quite confident I do, so the only conclusion I can reach from this is that this is a violation that has not been discovered. If it isn't, I would like an explanation. So, what am I talking about? First; MobilePay is an app that lets you send money to whoever, essentially a Danish version of CashApp. You attach a credit card, and you can transfer funds using people's phone numbers. Nothing about this is problematic. There are some fees involved, which is also fine. But. You can select to wrap your money in digital wrapping paper, which can be unwrapped by the recipient to reveal the amount you transferred. This is, no matter how you spin it, a digital product. It adds about 1 USD to the tr
Replies
2
Boosts
0
Views
135
Activity
May ’25