Search results for

“translate scheme”

6,658 results found

Post

Replies

Boosts

Views

Activity

Reply to FourInARow
I'm joining this conversation at a much later date, but posting in case someone like myself who's searching finds this useful.I found a line-by-line Swift translation of Apple's original source code here:https://github.com/ooper-shlab/FourInARow-SwiftThe original source by Apple does not seem to work correctly, and produces bad moves (it seems to play randon moves in fact), but the above Swift translation works great. I spent some time trying to figure out why, but could not. Apple's tests fail in the current version of Xcode, which may be a clue.
Topic: Graphics & Games SubTopic: General Tags:
Jun ’18
No Scheme Created For "Empty" Project
I recently reinstalled Xcode on my mac, and after opening up a new project and selecting empty i was dismayed to fin that i was unable to build and/or run any of my code. Further investigation found that opening up old saved xcode project files stored on an old external hard drive opened fine and could be built and run. I also discovered that opening other types of project (mac os game, external project, etc) would produce schemes for the projects but not when empty project was selected.Am I doing something wrong?
0
0
448
Sep ’16
iOS Simulators List - Naming Scheme
Hi everyone, I had a quick question regarding how the devices are named under iOS Simulators. Typically, I expect the naming scheme to look like:iPad 2 (9.0)iPad 2 (9.2)iPad Air (9.0)iPad Air (9.2)iPad Air 2 (9.0)iPad Air 2 (9.0)And so on, and then when it gets to iPhone:iPhone 4s (9.0)iPhone 4s (9.2)iPhone 5 (9.0)iPhone 5 (9.2)And so on. But what I'm seeing is the device type and then the device ID, so it looks like:iPhone 4s (3b1a......)iPhone 4s (5d3e......)I was wondering what would cause this. Is it a setting I can change ? Or is this happening because both devices are running the same iOS version so it does this to differentiate ? I ask because it doesn't seem to happen on my MacBook Pro but it is happening on my iMac. I tried reinstaling both Xcode and the simuators but this issue persists.
5
0
8.2k
Dec ’15
Reply to ewrsa
My suggestion would be to either use the Objective-C code you found as is (Swift interoperates with Obj-C just fine, for the most part) or translate it to Swift. Without seeing the fixes in question that's all anyone can say.
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’15
Select Icon according to scheme in xcode 13
Hi guys, I'm a flutter developer on BTG Pactual digital. I was working in a solution to make our app as white-label. In this process, I had to make it select an icon set according to the selected scheme. Searching for a solution, all tips were speaking about Asset Catalog App Icon Set Name on Build Settings, which apparently isn't available on xcode > 13 anymore. After reading the Xcode 13's release notes I think that the Primary Icon Set Name is like this previous one. But, it wasted a lot of my time, because the icon preview isn't gotten according to the icon setted on this new variable. Take a look at this sample: As you can see, the icon preview is equal for all of them, but both the EqiAppIcon and NectonAppIcon has different icon images. Have I forgot some thing?
1
0
881
Jan ’22
Reply to Translation framework use in Swift 6
The error you're encountering is due to Swift's concurrency model introduced in Swift 5.5, which aims to prevent data races by enforcing actor isolation. In Swift 6, these checks have become more stringent, especially when dealing with concurrent and actor-isolated contexts. The Translation framework's methods, like translate, are likely designed to work concurrently, which means they expect to be called from an actor context. When you pass the session object, which is likely actor-isolated to the main actor (due to how URLSession typically works), to a concurrent method, Swift flags this as a potential data race. How to Fix the Issue Make the Session Actor If possible, wrap the URLSession instance in an actor. This way, all interactions with it are serialized and safe from data races. actor TranslationSession { private let session: URLSession init() { self.session = URLSession(configuration: .default) } func translate(_ text: String) async throws -> TranslatedText { let configur
Topic: Machine Learning & AI SubTopic: General Tags:
Feb ’26
Reply to Import Localization gives "/* No Localized Strings */"
Finally I figured out. It was not n but file location confusion.When I exported the en.xliff file for translation only Main.Storyboard was localised to Base (under Base.lproj), Localized.strings were in the project's root folder. So the translated xliff files expected a source at the project root. It was fine for the first import (german) but at the same time it localized the file and moved it to the Base.lproj folder so the subsequent imports could not find the source file there anymore.My workaround was to add a copy of the Localized.string file to the root again and remove it in Finder. The file will turn to red (missing) but the import process works fine at the end.
Dec ’16
Reply to iOS 14 translate API
Guys, if you want to use Apple‘s on device translation API in the future, please file a bug report. If enough people file a bug, I‘m sure Apple will think about It.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to FourInARow
I'm joining this conversation at a much later date, but posting in case someone like myself who's searching finds this useful.I found a line-by-line Swift translation of Apple's original source code here:https://github.com/ooper-shlab/FourInARow-SwiftThe original source by Apple does not seem to work correctly, and produces bad moves (it seems to play randon moves in fact), but the above Swift translation works great. I spent some time trying to figure out why, but could not. Apple's tests fail in the current version of Xcode, which may be a clue.
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’18
No Scheme Created For "Empty" Project
I recently reinstalled Xcode on my mac, and after opening up a new project and selecting empty i was dismayed to fin that i was unable to build and/or run any of my code. Further investigation found that opening up old saved xcode project files stored on an old external hard drive opened fine and could be built and run. I also discovered that opening other types of project (mac os game, external project, etc) would produce schemes for the projects but not when empty project was selected.Am I doing something wrong?
Replies
0
Boosts
0
Views
448
Activity
Sep ’16
iOS Simulators List - Naming Scheme
Hi everyone, I had a quick question regarding how the devices are named under iOS Simulators. Typically, I expect the naming scheme to look like:iPad 2 (9.0)iPad 2 (9.2)iPad Air (9.0)iPad Air (9.2)iPad Air 2 (9.0)iPad Air 2 (9.0)And so on, and then when it gets to iPhone:iPhone 4s (9.0)iPhone 4s (9.2)iPhone 5 (9.0)iPhone 5 (9.2)And so on. But what I'm seeing is the device type and then the device ID, so it looks like:iPhone 4s (3b1a......)iPhone 4s (5d3e......)I was wondering what would cause this. Is it a setting I can change ? Or is this happening because both devices are running the same iOS version so it does this to differentiate ? I ask because it doesn't seem to happen on my MacBook Pro but it is happening on my iMac. I tried reinstaling both Xcode and the simuators but this issue persists.
Replies
5
Boosts
0
Views
8.2k
Activity
Dec ’15
Reply to Computing the duration of an utterance
Thanks for the reply. I was actually using a similar approach to estimate the duration but I've found that it became completely unreliable now that I've translated my app to Chinese; where each charater can be a complete word.
Topic: Machine Learning & AI SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’15
Reply to iPad Pro LiDAR Sensor Specs
I found this video that shows the grid of dots is quite sparse https://youtu.be/xz6CExnGw9w?t=102 I don't know anything about how that translates to accuracy, but surely it can be that high if the dots are so far apart.
Topic: Spatial Computing SubTopic: ARKit Tags:
Replies
Boosts
Views
Activity
May ’21
Reply to Localization support- automatically export all words
Another issue came up.I have posted as a differenent subject. Here : https://forums.developer.apple.com/thread/83079I am trying to import the translated .xliff files but Localizable.strings, Main.strings and Infoplist.strings are empty.Any idea?Regards,kalgik
Replies
Boosts
Views
Activity
Jul ’17
Reply to ewrsa
My suggestion would be to either use the Objective-C code you found as is (Swift interoperates with Obj-C just fine, for the most part) or translate it to Swift. Without seeing the fixes in question that's all anyone can say.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’15
Reply to UIImagePickerController cameraViewTransform doesn't scale on iOS 10 beta 7
Hi peymano2,Thanks for this workaround .... but this solve part of my problem ... because once the picture is taken with [picker takePicture]... a short display of it appear whitout any translation .... any idea to fix it ?Thanks in advance for your help ! OldNick
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Sep ’16
Reply to How to trace an iOS app with dtrace in a simulator
Is this problem soloved? My problem is ~/workspace/iOSTest/iOSTest sudo ./writes.d -p 12542 dtrace: failed to grab pid 12542: DTrace cannot instrument translated processes My macbook is M1-version.
Replies
Boosts
Views
Activity
Aug ’23
Select Icon according to scheme in xcode 13
Hi guys, I'm a flutter developer on BTG Pactual digital. I was working in a solution to make our app as white-label. In this process, I had to make it select an icon set according to the selected scheme. Searching for a solution, all tips were speaking about Asset Catalog App Icon Set Name on Build Settings, which apparently isn't available on xcode > 13 anymore. After reading the Xcode 13's release notes I think that the Primary Icon Set Name is like this previous one. But, it wasted a lot of my time, because the icon preview isn't gotten according to the icon setted on this new variable. Take a look at this sample: As you can see, the icon preview is equal for all of them, but both the EqiAppIcon and NectonAppIcon has different icon images. Have I forgot some thing?
Replies
1
Boosts
0
Views
881
Activity
Jan ’22
Reply to Translation framework use in Swift 6
The error you're encountering is due to Swift's concurrency model introduced in Swift 5.5, which aims to prevent data races by enforcing actor isolation. In Swift 6, these checks have become more stringent, especially when dealing with concurrent and actor-isolated contexts. The Translation framework's methods, like translate, are likely designed to work concurrently, which means they expect to be called from an actor context. When you pass the session object, which is likely actor-isolated to the main actor (due to how URLSession typically works), to a concurrent method, Swift flags this as a potential data race. How to Fix the Issue Make the Session Actor If possible, wrap the URLSession instance in an actor. This way, all interactions with it are serialized and safe from data races. actor TranslationSession { private let session: URLSession init() { self.session = URLSession(configuration: .default) } func translate(_ text: String) async throws -> TranslatedText { let configur
Topic: Machine Learning & AI SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’26
Reply to Import Localization gives "/* No Localized Strings */"
Finally I figured out. It was not n but file location confusion.When I exported the en.xliff file for translation only Main.Storyboard was localised to Base (under Base.lproj), Localized.strings were in the project's root folder. So the translated xliff files expected a source at the project root. It was fine for the first import (german) but at the same time it localized the file and moved it to the Base.lproj folder so the subsequent imports could not find the source file there anymore.My workaround was to add a copy of the Localized.string file to the root again and remove it in Finder. The file will turn to red (missing) but the import process works fine at the end.
Replies
Boosts
Views
Activity
Dec ’16
Reply to CGPDF<...> - where are the setters?
I haven't looked too much into this (I'm going to be shortly in the same situation myself), but I haven't found anything that translates a PDF into an object graph. Have you tried looking at Image IO, a companion framework for Core Graphics?
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’15