You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

更新Mac/iOS系统及Xcode后,Flutter构建应用无法安装求解决

问题描述

我用Flutter开发的应用已上架App Store,在将Mac系统更新至Sonoma 14.0、iOS系统更新至17.0.3、Xcode更新至15.0之前,应用可正常启动。现在Xcode出现如下错误,求解决方法:

Installation on this device is prohibited by ManagedConfiguration
Domain: IXRemoteErrorDomain
Code: 9
Failure Reason: Unhandled error domain IXRemoteErrorDomain, code 9
User Info: {
    FunctionName = "-[IXSRemoteInstaller initWithRemoteInstallOptions:xpcAssetStream:assetSize:error:]";
    SourceFileLine = 140;
}
--
Event Metadata: com.apple.dt.IDERunOperationWorkerFinished : {
    "device_isCoreDevice" = 1;
    "device_model" = "iPhone13,1";
    "device_osBuild" = "17.0.3 (21A360)";
    "device_platform" = "com.apple.platform.iphoneos";
    "dvt_coredevice_version" = "348.1";
    "dvt_mobiledevice_version" = "1643.2.4";
    "launchSession_schemeCommand" = Run;
    "launchSession_state" = 1;
    "launchSession_targetArch" = arm64;
    "operation_duration_ms" = 26745;
    "operation_errorCode" = 9;
    "operation_errorDomain" = "com.apple.dt.CoreDeviceError.3002.IXRemoteErrorDomain";
    "operation_errorWorker" = IDEInstallCoreDeviceWorker;
    "operation_name" = IDERunOperationWorkerGroup;
    "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_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" = 99;
    "param_launcher_substyle" = 8192;
    "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.0";
    "sdk_osVersion" = "17.0";
    "sdk_variant" = iphoneos;
}
--
System Information
macOS Version 14.0 (Build 23A344)
Xcode 15.0 (22265) (Build 15A240d)
Timestamp: 2023-10-14T10:22:46+09:00
解决方法

按以下顺序尝试修复步骤:

  • 检查设备管理配置
    错误提示Installation on this device is prohibited by ManagedConfiguration,说明设备可能受MDM(移动设备管理)限制。如果是公司/学校管理设备,联系管理员解除安装限制;个人设备则进入设置 > 通用 > VPN与设备管理,检查并移除异常管理配置后重试安装。

  • 重置Xcode与设备连接

    1. 断开iPhone与Mac的连接
    2. 关闭Xcode,打开Mac的活动监视器,结束所有Xcode、IDE相关进程
    3. 在iPhone上进入设置 > 通用 > 传输或还原iPhone > 还原 > 还原位置与隐私,输入密码完成操作
    4. 重新连接设备,打开Xcode,通过Window > Devices and Simulators选中设备,点击Pair重新配对并信任设备,再尝试运行应用
  • 更新Flutter及依赖
    运行命令更新Flutter到最新稳定版,升级项目依赖:

    flutter upgrade
    flutter pub upgrade
    

    清理缓存后重新构建:

    flutter clean
    flutter pub get
    
  • 调整Xcode签名配置

    1. 在Xcode中打开项目的ios文件夹
    2. 选择项目Target,进入Signing & Capabilities标签页
    3. 确认Team选择正确,勾选Automatically manage signing
    4. 若之前为手动签名,切换为自动管理,或在Xcode > Settings > Accounts中刷新账号,重新下载签名证书和描述文件
  • 调整Xcode版本
    若以上步骤无效,Xcode 15.0可能存在兼容性问题,可尝试降级到Xcode 14.3.1(兼容Sonoma和iOS 17),或升级到Xcode 15.x的后续版本修复已知bug。


内容的提问来源于stack exchange,提问作者tasmicsy

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.08 22:14:55