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

Xcode 15.3运行macOS应用失败:NSPOSIXErrorDomain 153

macOS应用CloudKitCMS在Xcode 15.3中启动失败(运行阶段报错,构建正常)

问题描述

数月前我的macOS应用CloudKitCMS运行正常,近期在Xcode 15.3中运行阶段突然失败,但构建阶段无异常。运行时弹出错误窗口:

无法启动“CloudKitCMS”
Runningboard返回错误5,请查看系统日志了解错误根本原因。

完整错误栈(已移除用户信息):

Could not launch “CloudKitCMS”
Domain: IDELaunchErrorDomain
Code: 20
Recovery Suggestion: Runningboard has returned error 5. Please check the system logs for the underlying cause of the error.
--
Could not launch “CloudKitCMS”
Domain: IDELaunchErrorDomain
Code: 20
Recovery Suggestion: Runningboard has returned error 5. Please check the system logs for the underlying cause of the error.
--
The operation couldn’t be completed. Launch failed.
Domain: RBSRequestErrorDomain
Code: 5
Failure Reason: Launch failed.
--
Launchd job spawn failed
Domain: NSPOSIXErrorDomain
Code: 153
--

已尝试修改Bundle ID后构建再改回的方法,无效。不清楚RBSRequestErrorDomain code 5和NSPOSIXErrorDomain code 153的含义,寻求解决办法。

错误代码说明

  • RBSRequestErrorDomain code 5:由RunningBoard服务抛出,表明系统进程管理服务无法完成应用启动请求,通常关联权限问题、应用配置错误或系统进程限制。
  • NSPOSIXErrorDomain code 153:对应launchd无法生成应用进程,常见原因包括应用签名无效、沙箱权限冲突、隐私设置阻止启动或应用依赖文件缺失。

解决方案

  • 验证并修复应用签名:打开Xcode的Signing & Capabilities面板,确认签名证书有效且未过期。执行Shift+Command+K清理构建文件夹,然后重新构建运行。
  • 重置应用隐私权限:前往系统设置的隐私与安全性,找到CloudKitCMS相关的权限条目,移除现有权限后重新运行应用,按提示重新授权。
  • 检查launchd配置(若有):如果应用包含自定义的launchd plist文件,确认文件路径、权限及语法正确,无格式错误导致launchd加载失败。
  • 删除Xcode Derived Data:打开Xcode设置的Locations面板,找到Derived Data路径并删除,重启Xcode后重新构建项目。
  • 查看详细系统日志:打开「控制台」应用,搜索CloudKitCMS或launchd关键词,获取更具体的错误细节(如权限被拒、文件丢失等)。
  • 迁移至新Xcode项目:若项目配置文件损坏,创建新的macOS项目,将现有代码、资源及配置逐步迁移过去,排除旧项目的配置问题。

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.24 00:05:12