xcodereact-nativeonesignalreact-native-onesignal

Xcode: Error Build failed while building on iPhone


enter image description hereI am trying to run my application on my iPhone and receiving the following error. It is working fine on Simulator and release builds are also getting built.

error build: Build input file cannot be found: '/Users/mdjavedakhtar/Library/Developer/Xcode/DerivedData/baa-ejkeyxidrdwrgyctzidcxyrfemfc/Build/Products/Debug-iphoneos/OneSignalNotificationServiceExtension.appex/OneSignalNotificationServiceExtension'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it?


Solution

  • In my case removing arm64 value from Excluded Architectures > Debug solved the problem. (+ it should be removed from all targets including OnesignalNotificationService)

    enter image description here