Search results for

“translate scheme”

6,658 results found

Post

Replies

Boosts

Views

Activity

Reply to Command SwiftCompile failed with a nonzero exit code. in xocde 16 and 15 where as it was working fine in xcode 14.3
I can't share full code file or project, but here is case. I had setting file in that it calls API and in response callback I have DispatchQueue.main.async block to update UI. In response I am receving on serverLangValue . If you copy and check following code with any project, you will get Command SwiftCompile failed with exit code (since this small pics of code it show file name but in atual profject it's not pointing file) . After commenting case translate (text): It will work fine let serverLangValue = // Server return value let switchEnum = translate (serverLangValue) let text = en //(or any other language code) switch switchEnum { case ABC: break case QPR: break case translate (text): break //From Xcode 16 and 15 swift compiler are file to process this case whereas older was working fine default: break } }
Oct ’24
Reply to Translations of Apple Developer Docs
I'm unsure if this is the right place for this inquiry. I don’t think there is a right place for this, but I’ve moved you over to DocC because it’s probably the closest. Swift Development closer to Spanish speakers. I created the site for the Spanish translation of The Swift Programming Language book Thanks for all that work. I noticed that the site already has Korean and Chinese translations. Are those provided by Apple directly … ? Yes. I'm interested in translating the Apple Developer Documentation if that's possible. This is sufficiently far outside of my area of expertise that I’m reluctant to offer definitive answers in public. Please drop me a line via email (my email address is in my signature, below). Make sure to reference this thread because I got a lot of email (-: Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
May ’23
Reply to CGAffineTransform -How to Align Video in Screen Center
If anyone has a better answer please post, I'll check and accept it Unbeknownst to me the video was in the correct position but the negative black bar space was causing the video to be appear that it was misaligned. Changing the AVMutableVideoCompositionInstruction() show the .backgroundColor show the negative black bar space issue in yellow: instruction.backgroundColor = UIColor.yellow.cgColor To fix it, I divided the finalTransform.ty in half and subtracted that from a translation-y-value, so now the code is: // ... let finalTransform = transform3.concatenating(rotateFromUpsideDown) let ty = finalTransform.ty var divided = ty/2 if divided < 0 { divided = 0 } let translation = CGAffineTransform(translationX: 0, y: -divided) let new_finalTransform = finalTransform.concatenating(translation) let transformer = AVMutableVideoCompositionLayerInstruction(assetTrack: track) transformer.setTransform(new_finalTransform, at: .zero) // ... The fix: The fix with the negative black bar space
Topic: Media Technologies SubTopic: Audio Tags:
May ’22
Reply to XMLDocument.xmlData(withOptions:) won't compile
Try this:let xdat: NSData = xDoc.xmlData(withOptions: Int (XMLNode.Options.nodePrettyPrint.rawValue)) as NSDataYou need to use .rawValue because XMLNode.Options is an OptionsSet and the xmlData method requires numeric options. You need Int(…) around it because the raw value is a UInt rather than an Int.You should file a bug report about this API. Either it should have translated (from the Obj-C header in the SDK) to a method that uses XMLNode.Options directly, or (if for some reason the withOptions parameter must be numeric) XMLNode.Options shouldn't be translated to an OptionsSet.
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’16
Reply to SFSpeechRecognizer kLSRErrorDomain 102
@arunky suggestion worked perfectly first time after I downloaded the languages on Settings -> Translate. However, whenever I launch the app a couple of days later, I get the same error message. I've rechecked going to Settings -> Translate: the downloaded languages are still there and the on-device mode toggle is still on. After a while (not that short, can be more than 1 minute), looks to work again. Still, this is unmanageable to get a user-facing app: what should I tell them? Keep trying until the error goes away?
Topic: Machine Learning & AI SubTopic: General Tags:
Aug ’23
Reply to confirmation dialog
Could you show the complete code ? What is the problem ? what are the first and third buttons ? They are disabled. Do you need to enable them ? If you need, explain your problem in detail with your mother language, we shall translate it.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’23
Test plans being deleted and replaced by old test schemes
I am currently using Xcode 15.2, but I am sure this issue exists on other versions too. If you have any packages made pre Xcode 14.3, i.e. ones without an automatically made test plan, then the following issue happens: Let's call the package in this example PackageX, and you have with this a corresponding test scheme, called PackageXTests. PackageXTests is a test scheme saved on disk, that is on the test scheme of PackageX, meaning that when you test the package directly, it will run the test scheme. Now, with test plans becoming the norm, we want to move away from having these test schemes on disk and instead align old packages with new and have each package's tests dictated by its own corresponding test plan, the same way that any newly made package would work. So we click 'convert to test plan', success we have a test plan, we delete the test scheme from the disk. All appears to be working fine. However, if you now swap branch and come back, the test pl
0
0
923
Mar ’24
Reply to Command SwiftCompile failed with a nonzero exit code. in xocde 16 and 15 where as it was working fine in xcode 14.3
I can't share full code file or project, but here is case. I had setting file in that it calls API and in response callback I have DispatchQueue.main.async block to update UI. In response I am receving on serverLangValue . If you copy and check following code with any project, you will get Command SwiftCompile failed with exit code (since this small pics of code it show file name but in atual profject it's not pointing file) . After commenting case translate (text): It will work fine let serverLangValue = // Server return value let switchEnum = translate (serverLangValue) let text = en //(or any other language code) switch switchEnum { case ABC: break case QPR: break case translate (text): break //From Xcode 16 and 15 swift compiler are file to process this case whereas older was working fine default: break } }
Replies
Boosts
Views
Activity
Oct ’24
Reply to Translations of Apple Developer Docs
I'm unsure if this is the right place for this inquiry. I don’t think there is a right place for this, but I’ve moved you over to DocC because it’s probably the closest. Swift Development closer to Spanish speakers. I created the site for the Spanish translation of The Swift Programming Language book Thanks for all that work. I noticed that the site already has Korean and Chinese translations. Are those provided by Apple directly … ? Yes. I'm interested in translating the Apple Developer Documentation if that's possible. This is sufficiently far outside of my area of expertise that I’m reluctant to offer definitive answers in public. Please drop me a line via email (my email address is in my signature, below). Make sure to reference this thread because I got a lot of email (-: Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Replies
Boosts
Views
Activity
May ’23
Reply to CGAffineTransform -How to Align Video in Screen Center
If anyone has a better answer please post, I'll check and accept it Unbeknownst to me the video was in the correct position but the negative black bar space was causing the video to be appear that it was misaligned. Changing the AVMutableVideoCompositionInstruction() show the .backgroundColor show the negative black bar space issue in yellow: instruction.backgroundColor = UIColor.yellow.cgColor To fix it, I divided the finalTransform.ty in half and subtracted that from a translation-y-value, so now the code is: // ... let finalTransform = transform3.concatenating(rotateFromUpsideDown) let ty = finalTransform.ty var divided = ty/2 if divided < 0 { divided = 0 } let translation = CGAffineTransform(translationX: 0, y: -divided) let new_finalTransform = finalTransform.concatenating(translation) let transformer = AVMutableVideoCompositionLayerInstruction(assetTrack: track) transformer.setTransform(new_finalTransform, at: .zero) // ... The fix: The fix with the negative black bar space
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
May ’22
Reply to XMLDocument.xmlData(withOptions:) won't compile
Try this:let xdat: NSData = xDoc.xmlData(withOptions: Int (XMLNode.Options.nodePrettyPrint.rawValue)) as NSDataYou need to use .rawValue because XMLNode.Options is an OptionsSet and the xmlData method requires numeric options. You need Int(…) around it because the raw value is a UInt rather than an Int.You should file a bug report about this API. Either it should have translated (from the Obj-C header in the SDK) to a method that uses XMLNode.Options directly, or (if for some reason the withOptions parameter must be numeric) XMLNode.Options shouldn't be translated to an OptionsSet.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Sep ’16
Reply to Problema con nombre de organizacion.
Translation: It is difficult for me to explain this in English. Is there a way for my application to be published under a different name? I need to change the name that appears below it. Can anybody help me?
Replies
Boosts
Views
Activity
Dec ’16
Reply to Swift init flexibility ? vs objc
is it just impossible in Swift ?It seems to be a correct answer, impossible.If I were given that code to translate into Swift, I would implement `initWithPasteboardPropertyList:ofType:` as a class method, not an initializer.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Feb ’16
Reply to SFSpeechRecognizer kLSRErrorDomain 102
@arunky suggestion worked perfectly first time after I downloaded the languages on Settings -> Translate. However, whenever I launch the app a couple of days later, I get the same error message. I've rechecked going to Settings -> Translate: the downloaded languages are still there and the on-device mode toggle is still on. After a while (not that short, can be more than 1 minute), looks to work again. Still, this is unmanageable to get a user-facing app: what should I tell them? Keep trying until the error goes away?
Topic: Machine Learning & AI SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’23
Reply to confirmation dialog
Could you show the complete code ? What is the problem ? what are the first and third buttons ? They are disabled. Do you need to enable them ? If you need, explain your problem in detail with your mother language, we shall translate it.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’23
Reply to URLRequest(url:cachePolicy:timeoutInterval:) started to crash in iOS 26
@DTS Engineer it seems like .crash-files gets translated into text-file... so I can no longer attach it. I will try to upload it and share a link instead...
Replies
Boosts
Views
Activity
Nov ’25
Reply to Start Developing iOS Apps Today (Objective-C)
same here...i find it somewhat strange, especially when the guide is available in Chinese (Google translate to figure this out).what are the chances for apple to reply on that ? is there any time estimation from your experience ?
Topic: Programming Languages SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’15
Reply to How to get the entered message in textbox of Messages app using MSConversation or MSMessage
Hi,Thanks for your response.I am trying to do a word translation in different languages as how it works out in Emoticons. For sure I will be filing a enhancement request for this.Regards,Deepak Srinivas
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’16
What is, and how would I create a URL scheme for use in an iOS API?
To integrate my iOS app into the Square point of sale app, I am required to specify a URL scheme in the URL Types in the Info tab of General settings in Xcode.I have no idea what to specify. Seems it will be used so the Square app can return to my app after it does its processing.Any help would be appreciated, thanks!
Replies
4
Boosts
0
Views
2k
Activity
Mar ’18
Test plans being deleted and replaced by old test schemes
I am currently using Xcode 15.2, but I am sure this issue exists on other versions too. If you have any packages made pre Xcode 14.3, i.e. ones without an automatically made test plan, then the following issue happens: Let's call the package in this example PackageX, and you have with this a corresponding test scheme, called PackageXTests. PackageXTests is a test scheme saved on disk, that is on the test scheme of PackageX, meaning that when you test the package directly, it will run the test scheme. Now, with test plans becoming the norm, we want to move away from having these test schemes on disk and instead align old packages with new and have each package's tests dictated by its own corresponding test plan, the same way that any newly made package would work. So we click 'convert to test plan', success we have a test plan, we delete the test scheme from the disk. All appears to be working fine. However, if you now swap branch and come back, the test pl
Replies
0
Boosts
0
Views
923
Activity
Mar ’24
Reply to I don't understand why this Swift 2 String() won't init
Thanks Quincey. I'm new to Swift (but not programming). I'm translating a pet project from 2000 into Swift. I'll implement your suggestions and be back (in a few minutes?).
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Dec ’15
Reply to Unable to remove/delete a language
Removing every string from a given language as well as removing it from the project settings will remove the language however this is not scalable for an app with lots of translated keys
Replies
Boosts
Views
Activity
Jul ’23