digitalartlab / expo-plugin-localization

Native language switching in your Expo app
https://www.npmjs.com/package/@digitalartlab/expo-plugin-localization
GNU Lesser General Public License v3.0
14 stars 0 forks source link

Build input file cannot be found: '/Users/expo/workingdir/build/ios/en.lproj/Localizable.strings' #20

Open xdmx opened 2 months ago

xdmx commented 2 months ago

First of all, thank you for this plugin. I wish Expo had something native in their localization to support for this.

Using expo 51 (not with the new arch), I've added the package and updated the app.config.js:

    plugins: [
      'expo-localization',
      'expo-notifications',
      'expo-router',
      [
        '@digitalartlab/expo-plugin-localization',
        {
          locales: ['en']
        }
      ]
  ]

But then when I try to build it through EAS I get:

❌  error: Build input file cannot be found: '/Users/expo/workingdir/build/ios/en.lproj/Localizable.strings'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it? (in target 'TestApp' from project 'TestApp')

› Copying   ios/TestApp/Supporting/Expo.plist ➜ ./Expo.plist

▸ ** ARCHIVE FAILED **

▸ The following build commands failed:

▸   CopyStringsFile /Users/expo/Library/Developer/Xcode/DerivedData/TestApp-fteywkedawsmkhasrzszfbvaytdt/Build/Intermediates.noindex/ArchiveIntermediates/TestApp/InstallationBuildProductsLocation/Applications/TestApp.app/en.lproj/Localizable.strings /Users/expo/workingdir/build/ios/en.lproj/Localizable.strings (in target 'TestApp' from project 'TestApp')

▸ (1 failure)

** ARCHIVE FAILED **

Android works without issues. Any thoughts on what could be the reason?

ThijmenDeValk commented 1 month ago

Hi @xdmx! I just released v3.0.0 with support for SDK 51, and ran it through some tests with both local builds and EAS Build. If you have some time, I'd love to hear if the problem is now solved for you too.

Just as a reminder: please make sure to use the Expo Managed Workflow, or run npx expo prebuild --clean when changing the plugin settings.