惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

H
Hackread – Cybersecurity News, Data Breaches, AI and More
宝玉的分享
宝玉的分享
月光博客
月光博客
爱范儿
爱范儿
阮一峰的网络日志
阮一峰的网络日志
酷 壳 – CoolShell
酷 壳 – CoolShell
Recent Announcements
Recent Announcements
A
About on SuperTechFans
T
The Blog of Author Tim Ferriss
博客园 - 叶小钗
U
Unit 42
aimingoo的专栏
aimingoo的专栏
Y
Y Combinator Blog
Martin Fowler
Martin Fowler
N
Netflix TechBlog - Medium
博客园 - 司徒正美
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
云风的 BLOG
云风的 BLOG
M
MIT News - Artificial intelligence
大猫的无限游戏
大猫的无限游戏
J
Java Code Geeks
V
Visual Studio Blog
腾讯CDC
IT之家
IT之家

Xcode

Xcode 切换正式的开发者账号后,提示 Bundle Identifier 已被注册,如何解决? xcode 登录 claude agent 时要关掉 surge 代理 Xcode 26.3 RC 终于支持 Agent 了,大家怎么看 XCode 一致无法和 手机连接 苦于 Xcode 不支持国内大模型,所以我做了个 AIProxy for Xcode 来支持 求助关于 xcode 调试 把阿里百炼的 qwen3-code-plus 接入 xcode26 自定义模型,但是提问会报错 Xcode 26 内置了免费 ChatGPT,还可以添加第三方模型,意思我可以加 Sonnet?本地 Ollama 应该没啥问题 Xcode 26 在 macOS 26 才可用 AI 功能,国行设备也可添加第三方提供商使用 要升级 Xcode16 了,大佬们有遇到什么坑吗? 来救救我的 Xcode 吧 2025 年了吐槽一下 Xcode 的优化真的是一坨! 有人试过同时安装 Xcode 15 和 16 么?会有什么坑么? 有 iOS 开发不?你们 Xcode 编译的时候会影响网速不? Xcode 编译项目为什么一定要依赖模拟器? xcode 里用 apple id 签名的 app 安装到自己手机只能使用 1 天多 Xcode 能远程编译并调试吗?有一个大胆的想法... Xcode15 build 开源项目 Mattermost 报'openssl/opensslv.h' file not found 错误,求解决方法,谢谢 xcode15.2 在 macOS 13 的老电脑上运行 app 时,要我升级系统,可老系统无法升级到最新的,怎么办? xcode 更新需要更新两次? Xcode 没有运行程序只是没有杀死却疯狂吃 CPU (diagnosticd) 升级 Xcode 15 后真机联调时启动和进入断点巨慢,大家有遇到吗? xcode 为啥无法打开文件夹? 请教一个 Sparkle 2 的 appcast.xml 问题 让 Xcode 见鬼去 xcode 无法连接到真机 xcode 怎么快速将快捷键映射成 vs code 同款? 上传 App 到 App Store 出现 ITMS-90961 错误提示,求解决方法 程序员用的时间 tracking 工具 WakaTime 通过一种新的方式支持了 Xcode 有没有什么 Xcode 的插件工具之类的可以改善 Xcode 的编程体验
Xcode 14 / 15 Could not attach to pid: attach failed
Whyto · 2023-06-24 · via Xcode

我参考了该文章 https://juejin.cn/post/7025992880464330766 ,已经关闭了 SIP ,在 iOS simulator 上可以正常使用 Xcode 来 attach 其他应用(如 Maps.app 等),但是在真机上 attach 其他应用时却总是报错(测试了许多不同的第三方应用),如图所示:
![1.png]( https://s2.loli.net/2023/06/24/JuYDjfzUpnkAcb7.png)
> Could not attach to pid: “34569”
> attach failed (Not allowed to attach to process. Look in the console messages (Console.app), near the debugserver entries, when the attach failed. The subsystem that denied the attach permission will likely have logged an informative message about why it was denied.)
在 Console.app 中,搜索 debugserver 得到的记录是:
```
15:22:13.862180+0800 debugserver [LaunchAttach] (38215) about to task_for_pid(34569)
15:22:13.862271+0800 debugserver error: [LaunchAttach] MachTask::TaskPortForProcessID task_for_pid(34569) failed: ::task_for_pid ( target_tport = 0x0203, pid = 34569, &task ) => err = 0x00000005 ((os/kern) failure)
15:22:13.862366+0800 debugserver 10 +0.011235 sec [9547/0103]: error: ::task_for_pid ( target_tport = 0x0203, pid = 34569, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0203, pid = 34569, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
15:22:13.873606+0800 debugserver error: MachTask::StartExceptionThread (): task invalid, exception thread start failed.
15:22:13.873711+0800 debugserver error: [LaunchAttach] END (38215) MachProcess::AttachForDebug failed to start exception thread attaching to pid 34569: unable to start the exception thread
15:22:13.873790+0800 debugserver error: Attach failed
15:22:13.876379+0800 debugserver error: Attach failed: "Not allowed to attach to process. Look in the console messages (Console.app), near the debugserver entries, when the attach failed. The subsystem that denied the attach permission will likely have logged an informative message about why it was denied.".
15:22:13.876475+0800 debugserver error: attach failed.
15:22:13.876552+0800 debugserver debugserver about to shut down packet communications to lldb.
15:22:13.876640+0800 debugserver 11 +0.014034 sec [9547/1307]: error: ::read ( 6, 0x16b7a6b18, 1024 ) => -1 err = Bad file descriptor (0x00000009)
15:22:13.877361+0800 debugserver debugserver secure socket proxy finish-block shut down.
15:22:13.877499+0800 debugserver debugserver expedited exit.
```
我在网上参考了其他网页,已经设置了`sudo DevToolsSecurity -enable`,检查了`get-task-allow`在我的应用中已经设为`true`,甚至是抹掉了 iPhone ,但是依然没有解决问题。
不知有没有 iOS 开发大佬遇到类似的问题,能够提供解决方案的。
我测试的 Xcode 版本为 14.3.1 (14E300c)和 15.0 beta 2 (15A5161b),macOS 版本为 13.4.1 ( Intel 处理器),真机试了两台,iOS 版本分别为 16.5 和 17.0 beta 2 ,均出现上述问题。
莫非这个 feature 是必须加入 Developer Program 才可以使用吗,或是 Apple 芯片专用?