Unknown Error Code 65 during ionic cordova build ios


We are running into an issue building the ios version of a mobile angular application with ionic. There are no issues with android build of the application.

We are receiving this is the error when building:

If the XCode workspace is opened after a failed build with ionic, and a build is done in XCode, it displays errors in files in the FirebaseMessaging pod similar to:

  • Conflicting types for ‘OSAtomicCompareAndSwapPtrBarrier’
  • Declaration of ‘OSAtomicCompareAndSwapPtrBarrier’ must be imported from module ‘Darwin.libkern.OSAtomic’ before it is required
  • Implicit declaration of function ‘OSAtomicCompareAndSwapPtrBarrier’ is invalid in C99

We checked that in XCode the Signing & Capabilities Team and Certificate are set correctly in the target, and that the apple account has permission to build and publish.

We are using

  • ionic 5.4.16
  • cordova 11.1.0
  • nodejs 16.20.0
  • angular 8.2.5
  • XCode 13.1
  • MacOS 11.7.3

Let me know if there is any additional information that needs to be provided.