firefox-ios: Export of strings to l10n repository is broken for Focus
This worked on March 12, but broke today (March 19)
Locally I get a lot of errors in export-strings.log
(only keeping a couple, as they repeat for different locales)
2024-03-19 18:59:50.361 xcodebuild[89267:10453809] Writing error result bundle to /var/folders/7k/613lfl692dq22n6q952h_syw0000gp/T/ResultBundle_2024-19-03_18-59-0050.xcresult
xcodebuild: error: Unable to build project for localization string extraction
Reason: See the build logs for failure description.
LocalizationTools/ExportTask.swift:44: Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSCocoaErrorDomain Code=260 "The file “he.xliff” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/tmp/ios-localization-89240/he.xcloc/Localized Contents/he.xliff, NSUnderlyingError=0x6000023fc930 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
(...)
LocalizationTools/ExportTask.swift:44: Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSCocoaErrorDomain Code=260 "The file “hy-AM.xliff” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/tmp/ios-localization-89240/hy-AM.xcloc/Localized Contents/hy-AM.xliff, NSUnderlyingError=0x6000023f86c0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
./focus-ios/focus-ios-tests/tools/export-strings.sh: line 36: 89240 Trace/BPT trap: 5 swift run LocalizationTools --export --project-path "$PWD/../../../Blockzilla.xcodeproj" --l10n-project-path "$PWD/../../../focusios-l10n"
CC isabelrios
┆Issue is synchronized with this Jira Task
About this issue
- Original URL
- State: closed
- Created 3 months ago
- Comments: 22 (15 by maintainers)
Commits related to this issue
- FXIOS-8705 #19302 ⁃ Export of strings to l10n repository is broken for Focus — committed to dicarobinho/firefox-ios by dicarobinho 3 months ago
- FXIOS-8705 #19302 ⁃ Export of strings to l10n repository is broken for Focus (#19407) — committed to mozilla-mobile/firefox-ios by dicarobinho 3 months ago
- FXIOS-8705 #19302 ⁃ Export of strings to l10n repository is broken for Focus (#19407) (cherry picked from commit 8a14137fb569e5f9044164cf0bec8a8b57d879ff) # Conflicts: # focus-ios/Blockzilla.xcodepr... — committed to mozilla-mobile/firefox-ios by dicarobinho 3 months ago
@flodolo may you give it another try, now, with the fix mentioned above? Thank you.
@isabelrios yes, it was related to the RustMozillaAppServices and should work after the PR from above (when doing it from Xcode)
Note: no need to run the script or even LocalizationTools, this should be enough to get the same failure
xcodebuild -exportLocalizations -project focus-ios/Blockzilla.xcodeproj