报错:main executable failed strict validation。

报错:main executable failed strict validation。

monkey ipapatch报相同的错误
修改了二进制文件

加–no-strict 也不行

/usr/bin/codesign   --preserve-metadata=entitlements --force --sign "$EXPANDED_CODE_SIGN_IDENTITY" --no-strict --timestamp=none   "$TARGET_APP_PATH"

设置CODE_SIGNING_ALLOWED

大佬,加上去可以正常编译,运行到手机时 报这个错

Unable to install “IPAPatch-DummyApp”
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620415
User Info: {
DVTErrorCreationDateKey = “2024-05-28 02:25:43 +0000”;
IDERunOperationFailingWorker = IDEInstalliPhoneLauncher;
}

An unknown error has occurred.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620415
User Info: {
DVTRadarComponentKey = 280331;
MobileDeviceErrorCode = “(0xE8008001)”;
“com.apple.dtdevicekit.stacktrace” = (
0 DTDeviceKitBase 0x0000000113157798 DTDKCreateNSErrorFromAMDErrorCode + 300
1 DTDeviceKitBase 0x00000001131843c0 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 136
2 DVTFoundation 0x0000000106733a2c DVTInvokeWithStrongOwnership + 76
3 DTDeviceKitBase 0x0000000113184144 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1168
4 IDEiOSSupportCore 0x0000000113047634 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.149 + 2344
5 DVTFoundation 0x0000000106845070 DVT_CALLING_CLIENT_BLOCK + 16
6 DVTFoundation 0x0000000106845a98 __DVTDispatchAsync_block_invoke + 152
7 libdispatch.dylib 0x0000000199084750 _dispatch_call_block_and_release + 32
8 libdispatch.dylib 0x00000001990863e8 _dispatch_client_callout + 20
9 libdispatch.dylib 0x000000019908da14 _dispatch_lane_serial_drain + 748
10 libdispatch.dylib 0x000000019908e544 _dispatch_lane_invoke + 380
11 libdispatch.dylib 0x00000001990992d0 _dispatch_root_queue_drain_deferred_wlh + 288
12 libdispatch.dylib 0x0000000199098b44 _dispatch_workloop_worker_thread + 404
13 libsystem_pthread.dylib 0x000000019923300c _pthread_wqthread + 288
14 libsystem_pthread.dylib 0x0000000199231d28 start_wqthread + 8
);
}

Event Metadata: com.apple.dt.IDERunOperationWorkerFinished : {
“device_model” = “iPhone8,2”;
“device_osBuild” = “15.3 (19D50)”;
“device_platform” = “com.apple.platform.iphoneos”;
“dvt_coredevice_version” = “355.24”;
“dvt_mobiledevice_version” = “1643.100.58”;
“launchSession_schemeCommand” = Run;
“launchSession_state” = 1;
“launchSession_targetArch” = arm64;
“operation_duration_ms” = 10078;
“operation_errorCode” = “-402620415”;
“operation_errorDomain” = “com.apple.dt.MobileDeviceErrorDomain”;
“operation_errorWorker” = IDEInstalliPhoneLauncher;
“operation_name” = IDEiPhoneRunOperationWorkerGroup;
“param_debugger_attachToExtensions” = 0;
“param_debugger_attachToXPC” = 1;
“param_debugger_type” = 5;
“param_destination_isProxy” = 0;
“param_destination_platform” = “com.apple.platform.iphoneos”;
“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” = 0;
“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” = 0;
“param_launcher_substyle” = 0;
“param_runnable_appExtensionHostRunMode” = 0;
“param_runnable_productType” = “com.apple.product-type.application”;
“param_structuredConsoleMode” = 1;
“param_testing_launchedForTesting” = 0;
“param_testing_suppressSimulatorApp” = 0;
“param_testing_usingCLI” = 0;
“sdk_canonicalName” = “iphoneos17.2”;
“sdk_osVersion” = “17.2”;
“sdk_variant” = iphoneos;
}

System Information

macOS Version 14.4.1 (Build 23E224)
Xcode 15.1 (22502) (Build 15C65)
Timestamp: 2024-05-28T10:25:43+08:00

你怎么一个问题都不会百度? :rofl: