flutter 在iOS 18上真机调试报错如下:真机调试报错 Please ensure sure that your app is signed by a valid provisioning p
现象:模拟器中正常运行,真机调试报错。Signing 中的Team 也是设置正确的。结果还是报错。
·
现象:
模拟器中正常运行,真机调试报错。Signing 中的Team 也是设置正确的。结果还是报错。
报错信息
flutter 在iOS 18上真机调试报错如下:真机调试报错
Please ensure sure that your app is signed by a valid provisioning profile.
If this issue persists, please attach the following when sending a report to Apple:
A sysdiagnose from this Mac
A sysdiagnose from the device failing installation
An IPA of the app failing installation
无法安装“Smart Pump”
Domain: MIInstallerErrorDomain
Code: 13
Recovery Suggestion: Please ensure sure that your app is signed by a valid provisioning profile.
If this issue persists, please attach the following when sending a report to Apple:
- A [sysdiagnose](<https://developer.apple.com/bug-reporting/profiles-and-logs/>) from this Mac
- A [sysdiagnose](<https://developer.apple.com/bug-reporting/profiles-and-logs/>) from the device failing installation
- An IPA of the app failing installation
User Info: {
DVTErrorCreationDateKey = "2026-03-12 03:18:20 +0000";
IDERunOperationFailingWorker = IDEInstallCoreDeviceWorker;
}
--
Failed to install the app on the device.
Domain: com.apple.dt.CoreDeviceError
Code: 3002
User Info: {
NSURL = "file:///Users/samking/workspace/pump-gprs-app/build/ios/iphoneos/Runner.app";
}
--
无法安装“Smart Pump”
Domain: IXUserPresentableErrorDomain
Code: 14
Failure Reason: 无法安装此App,因为无法验证其完整性。
Recovery Suggestion: Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.ZGjNB9/extracted/Runner.app : 0xe8008015 (A valid provisioning profile for this executable was not found.)
--
Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.ZGjNB9/extracted/Runner.app : 0xe8008015 (A valid provisioning profile for this executable was not found.)
Domain: MIInstallerErrorDomain
Code: 13
User Info: {
FunctionName = "+[MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:error:]";
LegacyErrorString = ApplicationVerificationFailed;
LibMISErrorNumber = "-402620395";
SourceFileLine = 79;
}
--
Event Metadata: com.apple.dt.IDERunOperationWorkerFinished : {
"device_identifier" = "00008110-001931C134C0401E";
"device_isCoreDevice" = 1;
"device_model" = "iPhone14,6";
"device_osBuild" = "18.1.1 (22B91)";
"device_osBuild_monotonic" = 2201009100;
"device_os_variant" = 1;
"device_platform" = "com.apple.platform.iphoneos";
"device_platform_family" = 2;
"device_reality" = 1;
"device_thinningType" = "iPhone14,6";
"device_transport" = 1;
"launchSession_schemeCommand" = Run;
"launchSession_schemeCommand_enum" = 1;
"launchSession_targetArch" = arm64;
"launchSession_targetArch_enum" = 6;
"operation_duration_ms" = 4946;
"operation_errorCode" = 13;
"operation_errorDomain" = MIInstallerErrorDomain;
"operation_errorWorker" = IDEInstallCoreDeviceWorker;
"operation_error_reportable" = 1;
"operation_name" = IDERunOperationWorkerGroup;
"param_consoleMode" = 1;
"param_debugger_attachToExtensions" = 0;
"param_debugger_attachToXPC" = 1;
"param_debugger_type" = 3;
"param_destination_isProxy" = 0;
"param_destination_platform" = "com.apple.platform.iphoneos";
"param_diag_MTE_enable" = 0;
"param_diag_MainThreadChecker_stopOnIssue" = 0;
"param_diag_MallocStackLogging_enableDuringAttach" = 0;
"param_diag_MallocStackLogging_enableForXPC" = 1;
"param_diag_allowLocationSimulation" = 1;
"param_diag_checker_mtc_enable" = 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_guardMalloc_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_enable" = 0;
"param_diag_sanitizer_ubsan_stopOnIssue" = 0;
"param_diag_showNonLocalizedStrings" = 0;
"param_diag_viewDebugging_enabled" = 1;
"param_diag_viewDebugging_insertDylibOnLaunch" = 1;
"param_install_style" = 2;
"param_launcher_UID" = 2;
"param_launcher_allowDeviceSensorReplayData" = 0;
"param_launcher_kind" = 0;
"param_launcher_style" = 99;
"param_launcher_substyle" = 0;
"param_lldbVersion_component_idx_1" = 0;
"param_lldbVersion_monotonic" = 170302360103;
"param_runnable_appExtensionHostRunMode" = 0;
"param_runnable_productType" = "com.apple.product-type.application";
"param_testing_launchedForTesting" = 0;
"param_testing_suppressSimulatorApp" = 0;
"param_testing_usingCLI" = 0;
"sdk_canonicalName" = "iphoneos26.2";
"sdk_osVersion" = "26.2";
"sdk_platformID" = 2;
"sdk_variant" = iphoneos;
"sdk_version_monotonic" = 2302005700;
}
--
System Information
macOS Version 26.2 (Build 25C56)
Xcode 26.3 (24587) (Build 17C529)
Timestamp: 2026-03-12T11:18:20+08:00
解决办法
既然设置都正常,依然报错,有没有可能是缓存问题呢?于是我清了一下flutter的缓存。
flutter clean
在重启运行一下项目,这次就成功运行了
更多推荐
所有评论(0)