Post

Replies

Boosts

Views

Activity

Numbers spell out with gender
Hi community I tried to get the feminine of "one" in spanish but when I tried, in Spanish the result is "uno" instead of "una". Any ideas? let attributedString = AttributedString(localized: "uno") attributedString.languageIdentifier = "es" var morphology = Morphology() morphology.grammaticalGender = .feminine attributedString.morphology = morphology attributedString.inflect = .explicit(morphology) print(String(attributedString.inflected().characters)) // uno Thanks in advance
0
0
445
May ’23
APNS file drag and drop doesn't work as expected
Hi: I'm wondering why dragging and dropping an APNs file to the simulator worked as expected and, now with Xcode 14.3 it doesn't. I mean the object userInfo: let notification: UNNotification .... let userInfo = notification.request.content.userInfo Now contains all the JSON, and before only the user Info. The APNS file is this: { "aps":{ "alert":{ "title":"Title", "body":"BODY", }, "badge":0, "key1":"valu1", "category": "category" }, "Simulator Target Bundle":"com.app.bundle" } What I get now is: (lldb) po userInfo ▿ 2 elements ▿ 0 : 2 elements ▿ key : AnyHashable("aps") - value : "aps" ▿ value : 4 elements ▿ 0 : 2 elements - key : category - value : category ▿ 1 : 2 elements - key : alert ▿ value : 2 elements ▿ 0 : 2 elements - key : title - value : Title ▿ 1 : 2 elements - key : body - value : BODY ▿ 2 : 2 elements - key : badge - value : 0 ▿ 3 : 2 elements - key : key1 - value : valu1 ▿ 1 : 2 elements ▿ key : AnyHashable("Simulator Target Bundle") - value : "Simulator Target Bundle" - value : com.app.bundle What I should get ▿ 2 elements ▿ 0 : 2 elements ▿ key : AnyHashable("key1") - value : "key1" - value : valu1 Maybe it is something related to the last change on pushes @eskimo? I mean, now web pushes are allowed. Thanks in advance
0
1
1.2k
Apr ’23
Error on Ventura 13.3 when trying to distribute Mac Catalyst app through AppStore
Hi community: I'm getting an error when I try to distribute Mac Catalyst app through AppStore. This not happened with Ventura 13.3 RC(yesterday in Xcode cloud), same Xcode version (14.2) I'm thinking that maybe is problem related to Xcode cloud (because in local works fine same archive but signed and uploaded from local), but I don't know NSLocalizedRecoverySuggestion=Multiple binaries share the same codesign path ... Binaries: /Applications/exampleApp.app/Contents/Frameworks/NewFramework.framework/NewFramework /Applications/exampleApp.app/Contents/Frameworks/NewFramework.framework/Versions/Current/NewFramework This can happen if your build process copies frameworks by following symlinks. } Anyone came across with that and resolve it?
1
1
1.1k
Apr ’23
Issue: [Inflection] Cannot use Morphun
Hi community: I get an error using inflection on strings when the language is Spanish. Issue: [Inflection] Cannot use Morphun, (Checking that the token is the correct type): (null) The code: let value = "5 dias" var string = AttributedString(localized: "El primer \(value) es gratis") var morphology = Morphology() morphology.number = .plural string.inflect = InflectionRule(morphology: morphology) let result = string.inflected() Any workaround to solve it?
0
0
1.1k
Mar ’23
Error when trying to preview using Mac as Preview Device from Dynamic framework
Hi community: I came up with an error when I tried to preview a view with Mac as Device. The view is done inside a dynamic framework. The framework is compatible with Mac Catalyst. The Xcode version is 14.2.0 HumanReadableNSError: connectToPreviewHost: Failed to connect to 62826: Error Domain=com.apple.dt.ProcessAttachUtilities Code=0 "Failed to get task for pid 62826: 0" UserInfo={NSLocalizedDescription=Failed to get task for pid 62826: 0} com.apple.dt.xcodepreviews.service (17): ================================== |  MessageSendFailure: Message send failure for Connecting to launched interactive agent 62826 Any kind of preview displays the error (only on Mac, on other devices it works as expected). Is there any workaround? Thanks in advance
1
0
845
Feb ’23