If Xcode fails with errors similar to function type mismatch, declared as '@convention(method) (__ObjC.std.__1.optional<>) -> Swift.Bool' and duplicate symbols for has_value, you are running into the Swift 6 compiler bug tracked in issue #718. The bug affects Apple toolchains shipped with Xcode 16.4 and earlier when compiling the generated Nitrogen bindings.
Recommended fix: upgrade to the latest Xcode (16.4 or newer). Apple resolved the problem in newer toolchains, so updating Xcode removes the duplicate symbol clash. After upgrading:
- Delete
node_modules,ios/Pods, and the Xcode DerivedData folder. - Reinstall dependencies (
yarn install) and runpod install --clean-installinsideios. - Build again with the updated Xcode.
Should problems persist after the upgrade, please attach your full build log and toolchain versions when commenting on the issue.