How to fix mismatched deployment between app and test target in Xcode

Issue #204

  • My macOS app target has deployment target 10.12, but when running test, I get
1
Compiling for OS X 10.11, but module 'MyApp' has a minimum deployment target of OS X 10.12: /Users/khoa/MyApp/DerivedData/MyApp/Build/Products/Debug/MyApp.framework/Modules/MyApp.swiftmodule/x86_64.swiftmodule
  • The fix is go to test target -> Build Settings -> Deployment
    Ensure deployments match
build

Comments