failed to build when there's locales

Hi there,

I’m having issues with building for both ios and android when I have locales. It doesn’t give me any error messages, just and empty object {}

I did exactly whats in the docs (https://docs.expo.io/distribution/app-stores/)

It can build normally if the locales are removed.

When I build, this is what’s returned

- Expo SDK: **39.0.0**

- Release channel: **default**

- Workflow: **Managed**

Building optimized bundles and generating sourcemaps...

{}

my app.json config

"expo": {
  ...
  "ios": {
      ...
      "infoPlist": {
        "CFBundleAllowMixedLocalizations": true
      }
    },
  "locale":{
     "zh": "./languages/zh.json"
  }
}

Expo CLI 3.28.2 environment info:
System:
OS: macOS 10.15.5
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 12.16.2 - /usr/local/bin/node
Yarn: 1.21.1 - node_modules/.bin/yarn
npm: 6.14.4 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.9.1 - /Users/johnny/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms: iOS 14.0, DriverKit 19.0, macOS 10.15, tvOS 14.0, watchOS 7.0
IDEs:
Xcode: 12.0.1/12A7300 - /usr/bin/xcodebuild
npmPackages:
expo: ^39.0.0 => 39.0.3
react: 16.13.1 => 16.13.1
react-dom: 16.13.1 => 16.13.1
react-native: https://github.com/expo/react-native/archive/sdk-39.0.0.tar.gz => 0.63.2
react-native-web: ~0.13.7 => 0.13.13
npmGlobalPackages:
expo-cli: 3.27.8
Expo Workflow: managed

Stay safe and thanks in advance

Hey @myfoodmart,

Can you try to see if you using the example locale we have https://docs.expo.io/distribution/app-stores/#localizing-your-ios-app results in the same error?

Cheers,
Adam

Hi Adam,

Just gave that a shot and no error…silly error on my part, turns out there’s a comma at the end of the description that I couldn’t see.

Really appreciate the help,
Johnny

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.