Expo prebuild fails on iOS (existing app and new test app)

  1. SDK Version: 43
  2. Platforms(Android/iOS/web/all): iOS
    Xcode version 13.1

I’ve generated a new project with these steps:

  • expo init
  • expo install expo-dev-client
  • expo prebuild -p ios

This project generates with Expo 43 and React Native 0.64.3, but now doesn’t work with either

  • expo run:ios
  • react-native run-ios

expo run:ios throws the same errors as [SDK 43] Dev client build fails xcodebuild in expo-modules-core · Issue #14948 · expo/expo · GitHub, which fails to build.

react-native run-ios gives a compile error that looks something like

The following build commands failed:
MergeSwiftModule normal x86_64
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
CompileSwift normal x86_64 /sources/fdvnmbapp/node_modules/expo-modules-core/ios/Swift/Views/ConcreteViewProp.swift
CompileSwift normal x86_64 /sources/fdvnmbapp/node_modules/expo-modules-core/ios/Swift/Modules/ModuleDefinitionComponents.swift
(4 failures)

Note that this build error is the same one that I get in my main app in EAS build, which spurred this repro in the first plcae.

EAS build is now working fine for me in production, so I expect it was a Swift version error or something similar.

I already had Xcode 13.1 but reinstalling bumped up Swift to the newest version and the minimal example builds perfectly now too.

1 Like