1

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

  1. Product → Clean Build Folder

  2. rm -rf ~/Library/Developer/Xcode/DerivedData/*

  3. pod deintegrate && pod install --repo-update

  4. xcode-select --print-path → reset with sudo xcode-select --switch /Applications/Xcode.app

  5. Upgraded CocoaPods & re-ran pod update

  6. 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!

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.