Cannot load module 'xxx' built with SDK 'iphoneos16.4' when using SDK 'iphoneos17.0'

While building xcode is giving me the blow error

Cannot load module 'xxx' built with SDK 'iphoneos16.4' when using SDK 'iphoneos17.0': /Users/xxx/Library/Developer/Xcode/DerivedData/project-biopprgumksoaqgnrhztiivzzjkq/Build/Products/Debug-iphoneos/Turf.framework/Modules/Turf.swiftmodule/arm64-apple-ios.swiftmodule

It's working fine on xcode 14.3 but giving error on xcode 15

I ran into this same problem when using a ".zip" archive. The problem stopped when I unarchived, and updated my Package.swift file to reference the ".xcframework" instead

Hope this helps!

Cannot load module 'xxx' built with SDK 'iphoneos16.4' when using SDK 'iphoneos17.0'
 
 
Q