I’m trying to build a React Native iOS project in Xcode (Debug-iphonesimulator) but I keep getting “ScanDependencies” failures before compilation even begins:
ScanDependencies /Users/<username>/Library/Developer/Xcode/DerivedData/mccfrontend-<hash>/Build/Intermediates.noindex/mccfrontend.build/Debug-iphonesimulator/mccfrontend.build/Objects-normal/arm64/main.o /path/to/your/project/ios/mccfrontend/main.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'mccfrontend' from project 'mccfrontend')
ScanDependencies /Users/<username>/Library/Developer/Xcode/DerivedData/mccfrontend-<hash>/Build/Intermediates.noindex/mccfrontend.build/Debug-iphonesimulator/mccfrontend.build/Objects-normal/arm64/AppDelegate.o /path/to/your/project/ios/mccfrontend/AppDelegate.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'mccfrontend' from project 'mccfrontend')
Building workspace mccfrontend with scheme mccfrontend and configuration Debug
(3 failures)
Environment
- Apple silicon: M4
- macOS: Sequoia 14.x
- Xcode: 15.4 (15E27)
- Node.js: v23.10.0
- npm: 10.9.2
- Yarn: 1.22.22
- React Native CLI: 2.0.1
- react-native: 0.67.1
- CocoaPods: 1.12.1
- Ruby: 3.4.3 +PRISM [arm64-darwin24]
- iOS deployment target: 12.0
What I’ve tried
Product → Clean Build Folder
rm -rf ~/Library/Developer/Xcode/DerivedData/*
pod deintegrate && pod install --repo-update
xcode-select --print-path → reset with sudo xcode-select --switch /Applications/Xcode.app
Upgraded CocoaPods & re-ran pod update
Ensured use_frameworks! :linkage => :static is in Podfile pre_install hook
None of these eliminated the ScanDependencies errors. The same errors occur even in a brand-new React Native template project.
What I’m looking for
Has anyone seen “ScanDependencies … com.apple.compilers.llvm.clang.1_0.compiler” failures in Xcode 15 on Apple silicon?
Are there any known workarounds or bug reports?
Is this related to Apple’s new dependency-scanner or to invalid file references in the workspace?
Any pointers or ideas would be greatly appreciated!