Search results for

“translate scheme”

6,670 results found

Post

Replies

Boosts

Views

Activity

Is there a way to translate touches to screen coordinates
As you can see in the last two lines of the code below, I specify a specific SKSpriteNode to get the correct (or is it, adjusted?) touch coordinates. The last line is just left in there to compare while I am debugging. I was curious if there was already a method in Swift that translates any coordinates handed to it into physical screen coordinates? It would just be easier than having to first find out: Is this item that I am tracking, owned by the main GameScene, or a SKSpriteNode that has been placed somewhere other than 0,0 on the GameScene? override func touchesEnded(_ touches: Set, with event: UIEvent?) { super.touchesEnded(touches , with:event) var delta = CGPoint(x: 0, y: 0) guard touches.first != nil else { return } if let touch = touches.first, let node = myGV.currentGem, node.isMoving == true { let touchLocation = touch.location(in: myGV.guessBar!) let touchLocation2 = touch.location(in: self)
1
0
839
Jun ’21
Crash debugging for translated x86_64 process under Rosetta
Hi all, I want to analyze the crash dump of translated x86_64 application under Rosetta emulation. After survey, I enable core dump at the start of my application, build application with DWARF and dSym config in XCode, and collect core dump from /cores/core.PID However, when I want to analyze core dump with lldb, I use the following command for backtracing: lldb -c /cores/core.PID (lldb) target create --core /cores/core.PID Core file '/cores/core.PID' (arm64) was loaded. (lldb) bt and I only got frame number with function address * thread #1, stop reason = ESR_EC_DABORT_EL0 (fault address: 0x0) * frame #0: 0x0000000102ae4c04 * frame #1: 0x0000000202d166ac Therefore, I try to add-sym but get the following error message: error: symbol file 'xxxxx.dSYM' does not match any existing module I know that macOS would generate crash report in ~/Library/Logs/DiagnosticReports/, but I need further analysis of crash dump. Is there any way to do post-mortem debugging for translated process under Rosetta?
1
0
1.9k
Nov ’22
How to Exempt iOS native Translate APP in Microsoft Intune Policy
I'm the IT Admin in my company. We use Microsoft Intune, which is a Mobile Device Management tool, to manage our devices and apps. I created an app protection policy, restricting the data can only be shared between the allowed apps. For example, if our user want to copy the content in Outlook for iOS to WeChat or personal memo, the action will be blocked. However, may be it's too strict, here is the scenario that we need to hadle: A user selected the content in the Outlook for iOS mail, and wanted to use the translate function to do translation. Before the app protection policy was deployed, he can do the translation successfully. And now, it's blocked. Therefore, we need to find a way to exempt the app Translate so that users can do the translation successfully. We put the value com.apple.Translate(this is a package ID listed in the official document of Apple) to the exemption, but it's not working. May I know what is the correct value for the iOS native Translate
6
0
1.6k
Apr ’24
Automatic menu translation ok with El Capitan, notok with Mojave
Hi everybody, I use a very old photo software called Snapseed v 1.2.1 on 2 MacBook, one runs with El Capitan and the second runs with Mojave. These app has no language selection during install, and no preferences language choice in menu when running. When I execute app on El Capitan, all menus and topics are translate in French, but on Mojave no translation is done. I looked Contents of app and found differents languages files (structured as xx.po where xx=country) located in Resources folder. I deduced translation was executed after getting language param. I checked values on both systems and there are same (LANG=fr_FR.UTF-8). So I tried to change Info.plist file to force code langage to 'fr' in CFBundleLocalizations key. Result is same. Does somebody has a idea of reason of issue and how to solve it ? Snapseed release was 2012, El Capitan 2015 and Mojave 2018, it seems framework used to code app runs differently and can't get language value.
2
0
134
Sep ’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
Rosetta 2 Binary Translation Comprehensive Supported Instruction Set List
So... I've got a bad feeling about this. Rereading: What Can't Be Translated? Rosetta can translate most Intel-based apps, including apps that contain just-in-time (JIT) compilers. However, Rosetta doesn’t translate the following executables: · Kernel extensions · Virtual Machine apps that virtualize x8664 computer platforms Rosetta translates all x8664 instructions, but it doesn’t support the execution of some newer instruction sets and processor features, such as AVX, AVX2, and AVX512 When I first read these over, I said, no big deal; these are security things, and nobody (meaning, um, me) really uses AVX. But having now taken a first peek at the Universal Mac Xcode targets, the phrasing Virtual Machine apps that virtualize x86_64 computer platforms brought me back about seven years, and to VMware's push for VT-x layers. Is Apple saying: A) we're disallowing a binary-translated version of competing hypervisors frameworks (my first reading), or is it: B) No Penryn
0
0
1.3k
Jul ’20
No translation of intent in shortcuts App (but ok in Siri Settings)
Hello Everyone,I made a quick app using Siri shortcuts and Intents. I have translated my intent throug localization process, and its title / description are available in both language in settings app (Siri options).However, in shortcuts App, it remains in English.Any idea, did I miss something or is it a bug of Shortcut app ?https://imgur.com/gallery/emJ6gt4Thank you !
3
0
2.2k
Nov ’18
Inconsistency Between Translation API Language Identifiers and Foundation Locale
I recently noticed an inconsistency in how languages are represented in Apple’s new Translation API compared to Foundation’s Locale system. Observation from the Translation API When retrieving the list of supported languages using: let availableLanguages = try await LanguageAvailability().supportedLanguages The results are: Language(components: Foundation.Locale.Language.Components(languageCode: Optional(uk), script: nil, region: Optional(UA))) Language(components: Foundation.Locale.Language.Components(languageCode: Optional(zh), script: nil, region: Optional(TW))) Language(components: Foundation.Locale.Language.Components(languageCode: Optional(ko), script: nil, region: Optional(KR))) Language(components: Foundation.Locale.Language.Components(languageCode: Optional(en), script: nil, region: Optional(GB))) Language(components: Foundation.Locale.Language.Components(languageCode: Optional(de), script: nil, region: Optional(DE))) Language(components: Foundation.Locale.Language.Components(langua
1
0
384
Feb ’25
iOS13 GM: Some strings in my App are not translated (UITableViewCell)
Hello community,Yesterday I've updated my iPhone to iOS13 GM and Xcode 11 GM to add dark mode support to my app. Now I'm facing this weird issue where the labels in UITableViewCells are not translated anymore. This worked just fine in iOS 12 and it only happens when the cell style is set to one if the default ones (Plain, Subtitle, etc.). If the cell style is set to custom it works without problems. I reproduced this by creating a new small sample project and the issue is also present there. It happens on my iPhone and in the iOS simulator.Did anybody else experience this issue? Or does it work for some people? Is Apple aware of this issue?
2
0
736
Sep ’19
log build time for each translation unit (cpp file) with xcodebuild
Hello,we use xcodebuild to build our C++ project. It would be so great to log the time needed for each translation unit (cpp file) to compile. When compiling the project in Xcode 10 I can see on the UI how long it took for each translation unit to compile (Report Navigator). Is there a way to output these times with xcodebuild? I know that there is the -showBuildTimingSummary option, but it seems it only reports the total time of the build phases.Have a nice day and thanks,Erich
0
0
913
Mar ’19
Prevent Virtual Objects translating into Physical Walls in response to TranslationGesture
Hi, After placing a virtual object(chair) from a USDZ onto a horizontal Plane, I setup gestures something like: modelEntity.generateCollisionShapes(recursive: true) arView?.installGestures([.translation, .rotation], for: modelEntity) Translation and Rotation seem to work fine, but when I drag the virtual object towards a wall, it seems to go into the wall instead of stopping at the wall. Is there a way to achieve this in RealityKit? Do I need to implement my own GestureRecognizers and perform raycast on each PanGesture callback? Thank you
0
0
540
Jan ’22
Using String Catalog for Word Iteration/Partial Translation
I want to make use of String Catalog for some words that show the differences between countries like the USA and Canada. For example, I added both languages to my string catalog and I would like to have: Enter your Zip Code [English] Enter your Providence [English (Canada)] If I run the app without any change in the tables, I see all values shown correctly, but when I make this 1 word change in required field, all other strings start showing their keys instead of base values that are already in English language. What is the easiest way to achieve this using String Catalogs other than copy/pasting all the values from English table to English (Canada) table? I don't want to or need to translate all the strings in the catalog since they are literally the same, all I need is having iterations for some words.
0
0
641
Mar ’24
Translating a webservice client made with Java to Swift
Hi everyone!I've just set up a webservice client using Java, Apache HttpClient and Axis, following the sample code given to us by the company hosting the service. No problem with that.I was wondering instead if it would be possible to translate the project to Swift.I've made it down to a certain point but then the sample code makes these calls linked with the axis framework, and more precisely with this classorg.apache.axis.client.Stubhttp://axis.apache.org/axis/java/apiDocs/org/apache/axis/client/Stub.html#_setProperty(java.lang.String,%20java.lang.Object)http://axis.apache.org/axis/java/apiDocs/org/apache/axis/client/Stub.html#setPortName(javax.xml.namespace.QName)._setProperty(javax.xml.rpc.session.maintain, Boolean.TRUE); ._setProperty(HTTPConstants.HEADER_COOKIE, token);Is there some kind of Swift API for building Web services clients that use remote procedure calls (RPC) and XML? What would be a Swift resource/library that can mimic these frameworks (axis / javax rpc)?Thank you
1
0
858
Apr ’19
Is there a way to translate touches to screen coordinates
As you can see in the last two lines of the code below, I specify a specific SKSpriteNode to get the correct (or is it, adjusted?) touch coordinates. The last line is just left in there to compare while I am debugging. I was curious if there was already a method in Swift that translates any coordinates handed to it into physical screen coordinates? It would just be easier than having to first find out: Is this item that I am tracking, owned by the main GameScene, or a SKSpriteNode that has been placed somewhere other than 0,0 on the GameScene? override func touchesEnded(_ touches: Set, with event: UIEvent?) { super.touchesEnded(touches , with:event) var delta = CGPoint(x: 0, y: 0) guard touches.first != nil else { return } if let touch = touches.first, let node = myGV.currentGem, node.isMoving == true { let touchLocation = touch.location(in: myGV.guessBar!) let touchLocation2 = touch.location(in: self)
Replies
1
Boosts
0
Views
839
Activity
Jun ’21
Crash debugging for translated x86_64 process under Rosetta
Hi all, I want to analyze the crash dump of translated x86_64 application under Rosetta emulation. After survey, I enable core dump at the start of my application, build application with DWARF and dSym config in XCode, and collect core dump from /cores/core.PID However, when I want to analyze core dump with lldb, I use the following command for backtracing: lldb -c /cores/core.PID (lldb) target create --core /cores/core.PID Core file '/cores/core.PID' (arm64) was loaded. (lldb) bt and I only got frame number with function address * thread #1, stop reason = ESR_EC_DABORT_EL0 (fault address: 0x0) * frame #0: 0x0000000102ae4c04 * frame #1: 0x0000000202d166ac Therefore, I try to add-sym but get the following error message: error: symbol file 'xxxxx.dSYM' does not match any existing module I know that macOS would generate crash report in ~/Library/Logs/DiagnosticReports/, but I need further analysis of crash dump. Is there any way to do post-mortem debugging for translated process under Rosetta?
Replies
1
Boosts
0
Views
1.9k
Activity
Nov ’22
How to Exempt iOS native Translate APP in Microsoft Intune Policy
I'm the IT Admin in my company. We use Microsoft Intune, which is a Mobile Device Management tool, to manage our devices and apps. I created an app protection policy, restricting the data can only be shared between the allowed apps. For example, if our user want to copy the content in Outlook for iOS to WeChat or personal memo, the action will be blocked. However, may be it's too strict, here is the scenario that we need to hadle: A user selected the content in the Outlook for iOS mail, and wanted to use the translate function to do translation. Before the app protection policy was deployed, he can do the translation successfully. And now, it's blocked. Therefore, we need to find a way to exempt the app Translate so that users can do the translation successfully. We put the value com.apple.Translate(this is a package ID listed in the official document of Apple) to the exemption, but it's not working. May I know what is the correct value for the iOS native Translate
Replies
6
Boosts
0
Views
1.6k
Activity
Apr ’24
Automatic menu translation ok with El Capitan, notok with Mojave
Hi everybody, I use a very old photo software called Snapseed v 1.2.1 on 2 MacBook, one runs with El Capitan and the second runs with Mojave. These app has no language selection during install, and no preferences language choice in menu when running. When I execute app on El Capitan, all menus and topics are translate in French, but on Mojave no translation is done. I looked Contents of app and found differents languages files (structured as xx.po where xx=country) located in Resources folder. I deduced translation was executed after getting language param. I checked values on both systems and there are same (LANG=fr_FR.UTF-8). So I tried to change Info.plist file to force code langage to 'fr' in CFBundleLocalizations key. Result is same. Does somebody has a idea of reason of issue and how to solve it ? Snapseed release was 2012, El Capitan 2015 and Mojave 2018, it seems framework used to code app runs differently and can't get language value.
Replies
2
Boosts
0
Views
134
Activity
Sep ’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
Rosetta 2 Binary Translation Comprehensive Supported Instruction Set List
So... I've got a bad feeling about this. Rereading: What Can't Be Translated? Rosetta can translate most Intel-based apps, including apps that contain just-in-time (JIT) compilers. However, Rosetta doesn’t translate the following executables: · Kernel extensions · Virtual Machine apps that virtualize x8664 computer platforms Rosetta translates all x8664 instructions, but it doesn’t support the execution of some newer instruction sets and processor features, such as AVX, AVX2, and AVX512 When I first read these over, I said, no big deal; these are security things, and nobody (meaning, um, me) really uses AVX. But having now taken a first peek at the Universal Mac Xcode targets, the phrasing Virtual Machine apps that virtualize x86_64 computer platforms brought me back about seven years, and to VMware's push for VT-x layers. Is Apple saying: A) we're disallowing a binary-translated version of competing hypervisors frameworks (my first reading), or is it: B) No Penryn
Replies
0
Boosts
0
Views
1.3k
Activity
Jul ’20
No translation of intent in shortcuts App (but ok in Siri Settings)
Hello Everyone,I made a quick app using Siri shortcuts and Intents. I have translated my intent throug localization process, and its title / description are available in both language in settings app (Siri options).However, in shortcuts App, it remains in English.Any idea, did I miss something or is it a bug of Shortcut app ?https://imgur.com/gallery/emJ6gt4Thank you !
Replies
3
Boosts
0
Views
2.2k
Activity
Nov ’18
Inconsistency Between Translation API Language Identifiers and Foundation Locale
I recently noticed an inconsistency in how languages are represented in Apple’s new Translation API compared to Foundation’s Locale system. Observation from the Translation API When retrieving the list of supported languages using: let availableLanguages = try await LanguageAvailability().supportedLanguages The results are: Language(components: Foundation.Locale.Language.Components(languageCode: Optional(uk), script: nil, region: Optional(UA))) Language(components: Foundation.Locale.Language.Components(languageCode: Optional(zh), script: nil, region: Optional(TW))) Language(components: Foundation.Locale.Language.Components(languageCode: Optional(ko), script: nil, region: Optional(KR))) Language(components: Foundation.Locale.Language.Components(languageCode: Optional(en), script: nil, region: Optional(GB))) Language(components: Foundation.Locale.Language.Components(languageCode: Optional(de), script: nil, region: Optional(DE))) Language(components: Foundation.Locale.Language.Components(langua
Replies
1
Boosts
0
Views
384
Activity
Feb ’25
iOS13 GM: Some strings in my App are not translated (UITableViewCell)
Hello community,Yesterday I've updated my iPhone to iOS13 GM and Xcode 11 GM to add dark mode support to my app. Now I'm facing this weird issue where the labels in UITableViewCells are not translated anymore. This worked just fine in iOS 12 and it only happens when the cell style is set to one if the default ones (Plain, Subtitle, etc.). If the cell style is set to custom it works without problems. I reproduced this by creating a new small sample project and the issue is also present there. It happens on my iPhone and in the iOS simulator.Did anybody else experience this issue? Or does it work for some people? Is Apple aware of this issue?
Replies
2
Boosts
0
Views
736
Activity
Sep ’19
log build time for each translation unit (cpp file) with xcodebuild
Hello,we use xcodebuild to build our C++ project. It would be so great to log the time needed for each translation unit (cpp file) to compile. When compiling the project in Xcode 10 I can see on the UI how long it took for each translation unit to compile (Report Navigator). Is there a way to output these times with xcodebuild? I know that there is the -showBuildTimingSummary option, but it seems it only reports the total time of the build phases.Have a nice day and thanks,Erich
Replies
0
Boosts
0
Views
913
Activity
Mar ’19
Prevent Virtual Objects translating into Physical Walls in response to TranslationGesture
Hi, After placing a virtual object(chair) from a USDZ onto a horizontal Plane, I setup gestures something like: modelEntity.generateCollisionShapes(recursive: true) arView?.installGestures([.translation, .rotation], for: modelEntity) Translation and Rotation seem to work fine, but when I drag the virtual object towards a wall, it seems to go into the wall instead of stopping at the wall. Is there a way to achieve this in RealityKit? Do I need to implement my own GestureRecognizers and perform raycast on each PanGesture callback? Thank you
Replies
0
Boosts
0
Views
540
Activity
Jan ’22
Using String Catalog for Word Iteration/Partial Translation
I want to make use of String Catalog for some words that show the differences between countries like the USA and Canada. For example, I added both languages to my string catalog and I would like to have: Enter your Zip Code [English] Enter your Providence [English (Canada)] If I run the app without any change in the tables, I see all values shown correctly, but when I make this 1 word change in required field, all other strings start showing their keys instead of base values that are already in English language. What is the easiest way to achieve this using String Catalogs other than copy/pasting all the values from English table to English (Canada) table? I don't want to or need to translate all the strings in the catalog since they are literally the same, all I need is having iterations for some words.
Replies
0
Boosts
0
Views
641
Activity
Mar ’24
Change behavior of "Copy" "Look Up" "Translate" result for selected words?
When a word is selected by the user, iOS presents a pop-up menu: Copy, Look Up, Translate. Is there any way to modify the results of Look Up shown to user? I would like to add definitions specific to my content area.
Replies
0
Boosts
0
Views
630
Activity
Mar ’24
Point out a translation problem in the Apple Human Interface Guide (Simplified Chinese)
辅助功能 | Apple Developer Documentation In the illustration on this page related to Prefer system-defined colors, Light is incorrectly translated as 细体. However, in the context of this article, translating it as 浅色 (light color) would be a more appropriate choice.
Replies
1
Boosts
0
Views
84
Activity
Apr ’25
Translating a webservice client made with Java to Swift
Hi everyone!I've just set up a webservice client using Java, Apache HttpClient and Axis, following the sample code given to us by the company hosting the service. No problem with that.I was wondering instead if it would be possible to translate the project to Swift.I've made it down to a certain point but then the sample code makes these calls linked with the axis framework, and more precisely with this classorg.apache.axis.client.Stubhttp://axis.apache.org/axis/java/apiDocs/org/apache/axis/client/Stub.html#_setProperty(java.lang.String,%20java.lang.Object)http://axis.apache.org/axis/java/apiDocs/org/apache/axis/client/Stub.html#setPortName(javax.xml.namespace.QName)._setProperty(javax.xml.rpc.session.maintain, Boolean.TRUE); ._setProperty(HTTPConstants.HEADER_COOKIE, token);Is there some kind of Swift API for building Web services clients that use remote procedure calls (RPC) and XML? What would be a Swift resource/library that can mimic these frameworks (axis / javax rpc)?Thank you
Replies
1
Boosts
0
Views
858
Activity
Apr ’19