When attempting to run tests on iPad simulators, you encounter the error:
Cannot test target "orchestratorTests" on "iPad Pro 11-inch (M4)": orchestratorTests does not support iPad Pro 11-inch (M4)'s platform: com.apple.platform.iphonesimulator
This error occurs when the test target (not the main app target) lacks proper platform support for iPad simulators. The most common causes are:
- Missing
TARGETED_DEVICE_FAMILYin Test Target: The test target doesn't specify iPad support - Incorrect SDK Setting: Test target is configured for iPhone-only SDK
- Missing Supported Platforms: Test target doesn't list iPad simulator as a supported platform
In your .pbxproj file, ensure the test target has:
# For iPad-only test target
TARGETED_DEVICE_FAMILY = 2
# For universal test target (both iPhone and iPad)
TARGETED_DEVICE_FAMILY = "1,2"Example fix in project.pbxproj:
<!-- Find your test target's build configuration -->
buildSettings = {
TARGETED_DEVICE_FAMILY = 2; <-- Add this for iPad-only
// OR "1,2" for both iPhone and iPad
}- Open the project in Xcode
- Select the test target (not the main target)
- Go to Build Settings
- Search for
TARGETED_DEVICE_FAMILY - Set it to
2for iPad-only or1,2for universal
Ensure the test target's Info.plist includes:
<key>UISupportedDevices</key>
<array>
<string>ipad</string>
</array>For iPad app testing, use:
# Using XcodeBuildMCP tools
test_sim({
projectPath: "/path/to/orchestrator.xcodeproj",
scheme: "orchestrator",
simulatorName: "iPad Pro 11-inch (M4)",
platform: "iOS Simulator"
})-
Check scheme configuration:
list_schemes({projectPath: "/path/to/orchestrator.xcodeproj"}) -
Verify test target exists:
show_build_settings({ projectPath: "/path/to/orchestrator.xcodeproj", scheme: "orchestrator" }) -
Test different iPad simulators if one fails:
- iPad Pro 11-inch (M4) - iOS 18.4
- iPad Pro 11-inch (M4) - iOS 26.0
- iPad Air 11-inch (M2/M3)
- Only checking main app target - The test target can have different settings
- Using wrong scheme - Ensure you're using the main app scheme, not test-only scheme
- Outdated simulators - Ensure iPad simulators are installed and booted
<!-- In project.pbxproj for test target -->
8D1234567890ABCD /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
PRODUCT_NAME = "$(TARGET_NAME)";
TARGETED_DEVICE_FAMILY = "1,2"; <!-- Supports both iPhone and iPad -->
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
};
name = Debug;
};list_sims- List available iPad simulatorsboot_sim- Boot specific iPad simulatortest_sim- Run tests on simulatorshow_build_settings- Verify target configuration