Search code examples
iosxcodereact-nativebuild-errorxcode16

Xcode 16.0 : unexpected service error: The Xcode build system has crashed


I recently upgraded my Xcode to version 16. After the upgrade i have started encountering this error when i am building my app.

unexpected service error: The Xcode build system has crashed. Build again to continue.

enter image description here

enter image description here

My Setup

  1. macOS: version 15
  2. react-native version 0.73.8

Has anyone encountered this issue or how to resolve this build system crash?


Solution

  • I was having same issue earlier today on macOS Sequoia and XCode 16, then I tried using command line

    yarn ios --simulator "iPhone 16 Pro Max"
    

    xcodebuild complained about react-native-image-crop-picker

    ScanDependencies /Users/hi/Downloads/AppFolder/ios/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RNImageCropPicker.build/Objects-normal/arm64/ImageCropPicker.o /Users/hi/Downloads/AppFolder/node_modules/react-native-image-crop-picker/ios/src/ImageCropPicker.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'RNImageCropPicker' from project 'Pods')
    

    Solution

    I upgraded react-native-image-crop-picker from version 0.40.3 to 0.41.2 (latest) and the error is gone.