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

Most upvoted comments

@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