Build fails after adding Expo modules via 'npx install-expo-modules'

I installed expo modules and immediately tried building on my M1 Pro Mac and got these results:

Showing Recent Errors Only

/Users/elleryfamilia/_git/react-native-app/node_modules/expo-modules-core/ios/NativeModulesProxy/EXNativeModulesProxy.m:9:9: ‘React/RCTEventDispatcherProtocol.h’ file not found

Showing Recent Errors Only

Command CompileSwiftSources failed with a nonzero exit code


FULL TRANSCRIPT


Showing Recent Errors Only

Build target ExpoModulesCore of project Pods with configuration Debug

CompileC /Users/elleryfamilia/Library/Developer/Xcode/DerivedData/Glancy-glwzkqklntvrkwauarrtrhdaatid/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/ExpoModulesCore.build/Objects-normal/arm64/EXNativeModulesProxy.o /Users/elleryfamilia/_git/react-native-app/node_modules/expo-modules-core/ios/NativeModulesProxy/EXNativeModulesProxy.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target ‘ExpoModulesCore’ from project ‘Pods’)
cd /Users/elleryfamilia/_git/react-native-app/ios/Pods
export LANG=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target arm64-apple-ios12.0 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu11 -fobjc-arc -fmodules -fmodules-cache-path=/Users/elleryfamilia/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/elleryfamilia/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -fmodule-name=ExpoModulesCore -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DPOD_CONFIGURATION_DEBUG=1 -DDEBUG=1 -DCOCOAPODS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -Wunguarded-availability -fembed-bitcode-marker -index-store-path /Users/elleryfamilia/Library/Developer/Xcode/DerivedData/Glancy-glwzkqklntvrkwauarrtrhdaatid/Index/DataStore -iquote /Users/elleryfamilia/Library/Developer/Xcode/DerivedData/Glancy-glwzkqklntvrkwauarrtrhdaatid/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/ExpoModulesCore.build/ExpoModulesCore-generated-files.hmap -I/Users/elleryfamilia/Library/Developer/Xcode/DerivedData/Glancy-glwzkqklntvrkwauarrtrhdaatid/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/ExpoModulesCore.build/ExpoModulesCore-own-target-headers.hmap -I/Users/elleryfamilia/Library/Developer/Xcode/DerivedData/Glancy-glwzkqklntvrkwauarrtrhdaatid/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/ExpoModulesCore.build/ExpoModulesCore-all-non-framework-target-headers.hmap -ivfsoverlay /Users/elleryfamilia/Library/Developer/Xcode/DerivedData/Glancy-glwzkqklntvrkwauarrtrhdaatid/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/ExpoModulesCore.build/all-product-headers.yaml -iquote /Users/elleryfamilia/Library/Developer/Xcode/DerivedData/Glancy-glwzkqklntvrkwauarrtrhdaatid/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/ExpoModulesCore.build/ExpoModulesCore-project-headers.hmap -I/Users/elleryfamilia/Library/Developer/Xcode/DerivedData/Glancy-glwzkqklntvrkwauarrtrhdaatid/Build/Products/Debug-iphoneos/ExpoModulesCore/include -I/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Private -I/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Private/ExpoModulesCore -I/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public -I/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/DoubleConversion -I/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/ExpoModulesCore -I/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/React-Core -I/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/React-callinvoker -I/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/React-cxxreact -I/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/React-jsi -I/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/React-jsiexecutor -I/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/React-jsinspector -I/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/Yoga -I/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/glog -I/Users/elleryfamilia/Library/Developer/Xcode/DerivedData/Glancy-glwzkqklntvrkwauarrtrhdaatid/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/ExpoModulesCore.build/DerivedSources-normal/arm64 -I/Users/elleryfamilia/Library/Developer/Xcode/DerivedData/Glancy-glwzkqklntvrkwauarrtrhdaatid/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/ExpoModulesCore.build/DerivedSources/arm64 -I/Users/elleryfamilia/Library/Developer/Xcode/DerivedData/Glancy-glwzkqklntvrkwauarrtrhdaatid/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/ExpoModulesCore.build/DerivedSources -F/Users/elleryfamilia/Library/Developer/Xcode/DerivedData/Glancy-glwzkqklntvrkwauarrtrhdaatid/Build/Products/Debug-iphoneos/ExpoModulesCore -fmodule-map-file=/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/React/React-Core.modulemap -fmodule-map-file=/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/yoga/Yoga.modulemap -include /Users/elleryfamilia/_git/react-native-app/ios/Pods/Target\ Support\ Files/ExpoModulesCore/ExpoModulesCore-prefix.pch -MMD -MT dependencies -MF /Users/elleryfamilia/Library/Developer/Xcode/DerivedData/Glancy-glwzkqklntvrkwauarrtrhdaatid/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/ExpoModulesCore.build/Objects-normal/arm64/EXNativeModulesProxy.d --serialize-diagnostics /Users/elleryfamilia/Library/Developer/Xcode/DerivedData/Glancy-glwzkqklntvrkwauarrtrhdaatid/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/ExpoModulesCore.build/Objects-normal/arm64/EXNativeModulesProxy.dia -c /Users/elleryfamilia/_git/react-native-app/node_modules/expo-modules-core/ios/NativeModulesProxy/EXNativeModulesProxy.m -o /Users/elleryfamilia/Library/Developer/Xcode/DerivedData/Glancy-glwzkqklntvrkwauarrtrhdaatid/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/ExpoModulesCore.build/Objects-normal/arm64/EXNativeModulesProxy.o

In file included from /Users/elleryfamilia/_git/react-native-app/node_modules/expo-modules-core/ios/NativeModulesProxy/EXNativeModulesProxy.m:7:
/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/React-Core/React/RCTComponentData.h:20:33: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
@property (nonatomic, readonly) Class managerClass;
^
/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/React-Core/React/RCTComponentData.h:20:33: note: insert ‘_Nullable’ if the pointer may be null
@property (nonatomic, readonly) Class managerClass;
^
_Nullable
/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/React-Core/React/RCTComponentData.h:20:33: note: insert ‘_Nonnull’ if the pointer should never be null
@property (nonatomic, readonly) Class managerClass;
^
_Nonnull
/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/React-Core/React/RCTComponentData.h:34:33: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

  • (NSDictionary<NSString *, id> *)viewConfig;
    ^
    /Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/React-Core/React/RCTComponentData.h:34:33: note: insert ‘_Nullable’ if the pointer may be null
  • (NSDictionary<NSString *, id> *)viewConfig;
    ^
    _Nullable
    /Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/React-Core/React/RCTComponentData.h:34:33: note: insert ‘_Nonnull’ if the pointer should never be null
  • (NSDictionary<NSString *, id> *)viewConfig;
    ^
    _Nonnull
    /Users/elleryfamilia/_git/react-native-app/node_modules/expo-modules-core/ios/NativeModulesProxy/EXNativeModulesProxy.m:9:9: fatal error: ‘React/RCTEventDispatcherProtocol.h’ file not found
    #import <React/RCTEventDispatcherProtocol.h>
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    2 warnings and 1 error generated.

Build target MixpanelReactNative of project Pods with configuration Debug

CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target ‘MixpanelReactNative’ from project ‘Pods’)
cd /Users/elleryfamilia/_git/react-native-app/ios/Pods
export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -incremental -module-name MixpanelReactNative -Onone -enable-batch-mode -enforce-exclusivity=checked @/Users/elleryfamilia/Library/Developer/Xcode/DerivedData/Glancy-glwzkqklntvrkwauarrtrhdaatid/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/MixpanelReactNative.build/Objects-normal/arm64/MixpanelReactNative.SwiftFileList -DDEBUG -D COCOAPODS -Xcc -fmodule-map-file=/Users/elleryfamilia/Library/Developer/Xcode/DerivedData/Glancy-glwzkqklntvrkwauarrtrhdaatid/Build/Products/Debug-iphoneos/Mixpanel-swift/Mixpanel.modulemap -Xcc -fmodule-map-file=/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/React/React-Core.modulemap -Xcc -fmodule-map-file=/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/yoga/Yoga.modulemap -import-underlying-module -Xcc -fmodule-map-file=/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/MixpanelReactNative/MixpanelReactNative.modulemap -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk -target arm64-apple-ios9.0 -g -module-cache-path /Users/elleryfamilia/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -embed-bitcode-marker -enable-testing -index-store-path /Users/elleryfamilia/Library/Developer/Xcode/DerivedData/Glancy-glwzkqklntvrkwauarrtrhdaatid/Index/DataStore -swift-version 5 -I /Users/elleryfamilia/Library/Developer/Xcode/DerivedData/Glancy-glwzkqklntvrkwauarrtrhdaatid/Build/Products/Debug-iphoneos/MixpanelReactNative -I /Users/elleryfamilia/Library/Developer/Xcode/DerivedData/Glancy-glwzkqklntvrkwauarrtrhdaatid/Build/Products/Debug-iphoneos/Mixpanel-swift -F /Users/elleryfamilia/Library/Developer/Xcode/DerivedData/Glancy-glwzkqklntvrkwauarrtrhdaatid/Build/Products/Debug-iphoneos/MixpanelReactNative -c -j8 -output-file-map /Users/elleryfamilia/Library/Developer/Xcode/DerivedData/Glancy-glwzkqklntvrkwauarrtrhdaatid/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/MixpanelReactNative.build/Objects-normal/arm64/MixpanelReactNative-OutputFileMap.json -parseable-output -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/elleryfamilia/Library/Developer/Xcode/DerivedData/Glancy-glwzkqklntvrkwauarrtrhdaatid/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/MixpanelReactNative.build/Objects-normal/arm64/MixpanelReactNative.swiftmodule -Xcc -I/Users/elleryfamilia/Library/Developer/Xcode/DerivedData/Glancy-glwzkqklntvrkwauarrtrhdaatid/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/MixpanelReactNative.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/elleryfamilia/Library/Developer/Xcode/DerivedData/Glancy-glwzkqklntvrkwauarrtrhdaatid/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/MixpanelReactNative.build/MixpanelReactNative-generated-files.hmap -Xcc -I/Users/elleryfamilia/Library/Developer/Xcode/DerivedData/Glancy-glwzkqklntvrkwauarrtrhdaatid/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/MixpanelReactNative.build/MixpanelReactNative-own-target-headers.hmap -Xcc -I/Users/elleryfamilia/Library/Developer/Xcode/DerivedData/Glancy-glwzkqklntvrkwauarrtrhdaatid/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/MixpanelReactNative.build/MixpanelReactNative-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/elleryfamilia/Library/Developer/Xcode/DerivedData/Glancy-glwzkqklntvrkwauarrtrhdaatid/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/MixpanelReactNative.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/elleryfamilia/Library/Developer/Xcode/DerivedData/Glancy-glwzkqklntvrkwauarrtrhdaatid/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/MixpanelReactNative.build/MixpanelReactNative-project-headers.hmap -Xcc -I/Users/elleryfamilia/Library/Developer/Xcode/DerivedData/Glancy-glwzkqklntvrkwauarrtrhdaatid/Build/Products/Debug-iphoneos/MixpanelReactNative/include -Xcc -I/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Private -Xcc -I/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Private/MixpanelReactNative -Xcc -I/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public -Xcc -I/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/DoubleConversion -Xcc -I/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/FBLazyVector -Xcc -I/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/FBReactNativeSpec -Xcc -I/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/RCTRequired -Xcc -I/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/RCTTypeSafety -Xcc -I/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/React-Core -Xcc -I/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/React-RCTText -Xcc -I/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/React-callinvoker -Xcc -I/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/React-cxxreact -Xcc -I/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/React-jsi -Xcc -I/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/React-jsiexecutor -Xcc -I/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/React-jsinspector -Xcc -I/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/ReactCommon -Xcc -I/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/Yoga -Xcc -I/Users/elleryfamilia/_git/react-native-app/ios/Pods/Headers/Public/glog -Xcc -I/Users/elleryfamilia/Library/Developer/Xcode/DerivedData/Glancy-glwzkqklntvrkwauarrtrhdaatid/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/MixpanelReactNative.build/DerivedSources-normal/arm64 -Xcc -I/Users/elleryfamilia/Library/Developer/Xcode/DerivedData/Glancy-glwzkqklntvrkwauarrtrhdaatid/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/MixpanelReactNative.build/DerivedSources/arm64 -Xcc -I/Users/elleryfamilia/Library/Developer/Xcode/DerivedData/Glancy-glwzkqklntvrkwauarrtrhdaatid/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/MixpanelReactNative.build/DerivedSources -Xcc -DPOD_CONFIGURATION_DEBUG=1 -Xcc -DDEBUG=1 -Xcc -DCOCOAPODS=1 -emit-objc-header -emit-objc-header-path /Users/elleryfamilia/Library/Developer/Xcode/DerivedData/Glancy-glwzkqklntvrkwauarrtrhdaatid/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/MixpanelReactNative.build/Objects-normal/arm64/MixpanelReactNative-Swift.h -working-directory /Users/elleryfamilia/_git/react-native-app/ios/Pods

warning: Failed to find source file for ‘MixpanelReactNative-f259d39b21673592afe01898ade394bb.swiftdeps’, recovering with a full rebuild. Next build will be incremental.
Command CompileSwiftSources failed with a nonzero exit code

Build failed 11/9/21, 10:25 AM 17.4 seconds