Mac (designed for iPad) builds but does not run - "This application requires a newer version of macOS." but I am on the latest version

I have an app targeting iPad 16.2 only, with an additional Mac (designed for iPad) destination. When I select this destination in Xcode 14.2, it builds however I receive the following error.

I'm not sure what it's referring to when it says "The system version is lower". What system? And how can I upgrade it? :)

Details

Unable To Install “<my bundle name>”
Domain: IDEInstallLocalMacService
Code: 16
Failure Reason: This application requires a newer version of macOS.
Recovery Suggestion: The system version is lower than the minimum OS version specified for bundle at /var/db/appinstalld/Library/Caches/com.apple.mobile.installd.staging/temp.pbDU4i/extracted/<my app name>.app. Have 15.7; need 16.2
User Info: {
    DVTErrorCreationDateKey = "2023-01-09 16:42:44 +0000";
    IDERunOperationFailingWorker = IDEInstallLocalMacWorker;
}
--

Analytics Event: com.apple.dt.IDERunOperationWorkerFinished : {
    "device_model" = "MacBookPro18,2";
    "device_osBuild" = "12.6.2 (21G320)";
    "device_platform" = "com.apple.platform.macosx";
    "launchSession_schemeCommand" = Run;
    "launchSession_state" = 1;
    "launchSession_targetArch" = arm64;
    "operation_duration_ms" = 188;
    "operation_errorCode" = 16;
    "operation_errorDomain" = IDEInstallLocalMacService;
    "operation_errorWorker" = IDEInstallLocalMacWorker;
    "operation_name" = IDERunOperationWorkerGroup;
    "param_consoleMode" = 0;
    "param_debugger_attachToExtensions" = 0;
    "param_debugger_attachToXPC" = 1;
    "param_debugger_type" = 3;
    "param_destination_isProxy" = 0;
    "param_destination_platform" = "com.apple.platform.macosx";
    "param_diag_MainThreadChecker_stopOnIssue" = 0;
    "param_diag_MallocStackLogging_enableDuringAttach" = 0;
    "param_diag_MallocStackLogging_enableForXPC" = 1;
    "param_diag_allowLocationSimulation" = 1;
    "param_diag_checker_tpc_enable" = 1;
    "param_diag_gpu_frameCapture_enable" = 0;
    "param_diag_gpu_shaderValidation_enable" = 0;
    "param_diag_gpu_validation_enable" = 1;
    "param_diag_memoryGraphOnResourceException" = 0;
    "param_diag_queueDebugging_enable" = 1;
    "param_diag_runtimeProfile_generate" = 0;
    "param_diag_sanitizer_asan_enable" = 0;
    "param_diag_sanitizer_tsan_enable" = 0;
    "param_diag_sanitizer_tsan_stopOnIssue" = 0;
    "param_diag_sanitizer_ubsan_stopOnIssue" = 0;
    "param_diag_showNonLocalizedStrings" = 0;
    "param_diag_viewDebugging_enabled" = 1;
    "param_diag_viewDebugging_insertDylibOnLaunch" = 1;
    "param_install_style" = 0;
    "param_launcher_UID" = 2;
    "param_launcher_allowDeviceSensorReplayData" = 0;
    "param_launcher_kind" = 0;
    "param_launcher_style" = 99;
    "param_launcher_substyle" = 8192;
    "param_runnable_appExtensionHostRunMode" = 0;
    "param_runnable_productType" = "com.apple.product-type.application";
    "param_runnable_type" = 2;
    "param_testing_launchedForTesting" = 0;
    "param_testing_suppressSimulatorApp" = 0;
    "param_testing_usingCLI" = 0;
    "sdk_canonicalName" = "iphoneos16.2";
    "sdk_osVersion" = "16.2";
    "sdk_variant" = iphoneos;
}
--


System Information

macOS Version 12.6.2 (Build 21G320)
Xcode 14.2 (21534) (Build 14C18)
Timestamp: 2023-01-09T08:42:44-08:00
Answered by Slif in 742252022

Upgraded to Ventura (13.1) and now it works 🤷‍♂️

Sorry, targeting iOS 16.2, with destinations of iPad and Mac (Designed for iPad).

Oops, I am targeting iOS 16.2 with destinations of iPad and Mac (Designed for iPad)

Finally, I am on the latest versions of everything I can find. I'm not sure what simulator? engine? service? this error message is referring to, when it says something is on 15.7.

Hello Slif. What version of macOS are you running this on?

Are you using any API that requires iOS 16.2?

—Jason.

Hi Jason, thanks for the quick reply! Here are the vitals:

macOS Version 12.6.2 (Build 21G320)
Xcode 14.2 (21534) (Build 14C18)
Timestamp: 2023-01-09T08:42:44-08:00

I can successfully target and run on 16.0, so I don't believe I'm using any 16.2 APIs. I am of course using plenty of what's new in SwiftUI this year ;)

This is the content of the dialog that appears:

Unable To Install “<your bundle>”

This application requires a newer version of macOS.

The system version is lower than the minimum OS version specified for bundle at /var/db/appinstalld/Library/Caches/com.apple.mobile.installd.staging/temp.U90CDi/extracted/<app name>.app. Have 15.7; need 16.0

[ DETAILS ] [ OK ]
```

Accepted Answer

Upgraded to Ventura (13.1) and now it works 🤷‍♂️

Mac (designed for iPad) builds but does not run - "This application requires a newer version of macOS." but I am on the latest version
 
 
Q