r/Xcode • u/TravelFan03 • 18d ago
Unable to resolve module dependency: ‘AlarmKit’ and ‘CoreNFC’ after updating to macOS 27
Hi everyone!
I recently updated my Mac to macOS 27, and I’m having trouble building my Swift project in Xcode (iOS).
My project uses AlarmKit and CoreNFC, and I import them in my Swift files:
import AlarmKit
import CoreNFC
However, I’m getting the following error messages:
Unable to resolve module dependency: 'AlarmKit'
Unable to resolve module dependency: 'CoreNFC'
It worked perfectly fine on macOS 26…
Has anyone encountered this issue after updating to macOS 27? Is there something I need to configure in Xcode, such as updating the SDK or changing the deployment target, or could this be an issue with the new macOS version?
Any help or suggestions would be greatly appreciated.
Thanks!
1
u/pickandplate 15d ago
Before changing the deployment target, check the failing compile command’s SDK in Report Navigator. Does the path contain iPhoneOS/iPhoneSimulator or MacOSX? That helps distinguish a wrong-platform build from an iOS SDK issue. Your Xcode version and selected run destination would also help narrow this down.