Hello, do the String Catalogs (new in Xcode 15) support Swift Packages?
I've tried adding a new Localizable.xcstrings (string catalog) file to my package's resources folder.
Great! I then see this screen:
All good so far.
I then try to go and build my Swift Package... and nothing changes. The string catalog is never populated and I'm left with the same screen as above.
So, do string catalogs not support packages at this time or am I doing something wrong?
I was really hoping String Catalogs would work and save the day since Export Localizations also does not work for Swift packages that don't support macOS. π
Post
Replies
Boosts
Views
Activity
Steps:
Create a new clean Swift package in Xcode 14.3
Add a defaultLocalization value to the package manifest
Add a platform to the package manifest: platforms: [.iOS(.v16)]
Run Product -> Export Localizations and the following error appears:
Version 14.3 (14E222b)
macOS 13.1 (22C65)
Feedback FB12183400
Much of the WWDC content (understandably so) covers how to use localized strings in code but a piece of the puzzle that's missing for me is the exported and imported .xcloc files.
How do translators use and modify an exported xcloc file to provide translations? Is there a popular 3rd party software for this step?
My SwiftUI framework makes use of custom LibraryItems.
The default library items have generous amounts of documentation next to them:
My views are somewhat complex and having similair documentation for them would be quite helpful. I've tried adding DocC style doc around my library item declarations but Xcode doesnt seem to pick it up and I get "No Details" instead:
Is this not supported?
Lately I've noticed that adding parentheses around a highlighted statement puts them on new lines above and below the statement.
Expected
(greeting)
Actual
(
greeting
)
I can't attribute the change in behavior to a specific version but I'm currently on 14.2 (14C18).
Is this a preference or is something else going on?
In previous Xcode builds, when running UI tests on my app, the Navigator sidebar would remain on the Test Navigator tab and it would be easy to track how many tests have ran/remain and which have passed/failed.
Starting with Xcode 12.5 (and possibly earlier) at the start of each new UI test, the Navigator automatically switches to the Debug tab and I have to manually switch back to the Test tab after each test.
How can I keep the Navigator locked to the "Test" tab for the entire duration of all my tests?
Xcode 12.5