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

推荐订阅源

Google DeepMind News
Google DeepMind News
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 聂微东
大猫的无限游戏
大猫的无限游戏
IT之家
IT之家
月光博客
月光博客
博客园_首页
Jina AI
Jina AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
AWS News Blog
AWS News Blog
S
Securelist
T
Tailwind CSS Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
罗磊的独立博客
D
Docker
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Apple Machine Learning Research
Apple Machine Learning Research
Scott Helme
Scott Helme
H
Help Net Security
Project Zero
Project Zero
P
Proofpoint News Feed
D
DataBreaches.Net
Recorded Future
Recorded Future
Simon Willison's Weblog
Simon Willison's Weblog
V2EX - 技术
V2EX - 技术
The Cloudflare Blog
Hugging Face - Blog
Hugging Face - Blog
I
Intezer
Engineering at Meta
Engineering at Meta
The Register - Security
The Register - Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
I
InfoQ
酷 壳 – CoolShell
酷 壳 – CoolShell
雷峰网
雷峰网
S
Secure Thoughts
GbyAI
GbyAI
U
Unit 42
Blog — PlanetScale
Blog — PlanetScale
T
Threat Research - Cisco Blogs
The Last Watchdog
The Last Watchdog
Y
Y Combinator Blog
F
Fortinet All Blogs
博客园 - Franky
T
The Blog of Author Tim Ferriss
Hacker News: Ask HN
Hacker News: Ask HN
Microsoft Security Blog
Microsoft Security Blog
Stack Overflow Blog
Stack Overflow Blog
S
Security @ Cisco Blogs
Cyberwarzone
Cyberwarzone

Xcode

Xcode 切换正式的开发者账号后,提示 Bundle Identifier 已被注册,如何解决? - V2EX xcode 登录 claude agent 时要关掉 surge 代理 Xcode 26.3 RC 终于支持 Agent 了,大家怎么看 - V2EX XCode 一致无法和 手机连接 - V2EX 苦于 Xcode 不支持国内大模型,所以我做了个 AIProxy for Xcode 来支持 - V2EX 求助关于 xcode 调试 - V2EX 把阿里百炼的 qwen3-code-plus 接入 xcode26 自定义模型,但是提问会报错 - V2EX Xcode 26 内置了免费 ChatGPT,还可以添加第三方模型,意思我可以加 Sonnet?本地 Ollama 应该没啥问题 - V2EX Xcode 26 在 macOS 26 才可用 AI 功能,国行设备也可添加第三方提供商使用 - V2EX 要升级 Xcode16 了,大佬们有遇到什么坑吗? - V2EX 来救救我的 Xcode 吧 - V2EX 2025 年了吐槽一下 Xcode 的优化真的是一坨! - V2EX 有人试过同时安装 Xcode 15 和 16 么?会有什么坑么? - V2EX 有 iOS 开发不?你们 Xcode 编译的时候会影响网速不? - V2EX Xcode 编译项目为什么一定要依赖模拟器? - V2EX xcode 里用 apple id 签名的 app 安装到自己手机只能使用 1 天多 - V2EX Xcode 能远程编译并调试吗?有一个大胆的想法... - V2EX Xcode15 build 开源项目 Mattermost 报'openssl/opensslv.h' file not found 错误,求解决方法,谢谢 - V2EX xcode15.2 在 macOS 13 的老电脑上运行 app 时,要我升级系统,可老系统无法升级到最新的,怎么办? - V2EX xcode 更新需要更新两次? - V2EX Xcode 没有运行程序只是没有杀死却疯狂吃 CPU (diagnosticd) - V2EX 升级 Xcode 15 后真机联调时启动和进入断点巨慢,大家有遇到吗? - V2EX xcode 为啥无法打开文件夹? - V2EX 请教一个 Sparkle 2 的 appcast.xml 问题 - V2EX 让 Xcode 见鬼去 - V2EX xcode 无法连接到真机 - V2EX xcode 怎么快速将快捷键映射成 vs code 同款? - V2EX 上传 App 到 App Store 出现 ITMS-90961 错误提示,求解决方法 - V2EX 程序员用的时间 tracking 工具 WakaTime 通过一种新的方式支持了 Xcode - V2EX 有没有什么 Xcode 的插件工具之类的可以改善 Xcode 的编程体验 - V2EX 请教一下, xcode 如何让 option+delete 表现的像 vscode 一样 - V2EX Xcode 14 中模拟器导致的异常发热和电池问题 - V2EX 求 xcode package 依赖正确下载姿势,拉取 aws-sdk- Swift 两个多小时了 - V2EX 🙋CRUD 入门: 是所有语言都这样还是 xcode 的 Vapor 不行? - V2EX 2022 年, Swift 开发用 Xcode 还是 AppCode - V2EX Xcode 个人账号配置文件 7 天有效期刷新问题? - V2EX xcode 分发 ios 应用,上传时报 Invalid Provisioning Profile Signature(90165) - V2EX 发现一个下载 Xcode 的工具--- xcodes - V2EX Xcode 就是毒瘤,是内存杀手,是硬盘杀手 - V2EX 请问,有没有云端 xcode 编译环境 - V2EX V2EX 为什么 Xcode 要自动连接 Apple Watch,好多次调试的时候都要把 watch 关机,然后重启 Xcode 。。。 - V2EX 分享一下怎么在 Monterey 上使用 Xcode 12.5 - V2EX 请问 iOS 的 DeviceToken 和 UUID 的变化时机一致么? - V2EX macOS Monterey12.0.1 xcode 13.1 Simulator 打不开,卡死, 有一样的吗? - V2EX M1 MacBook Pro, Xcode 启动时必须得卡一下,请问有解决方法么 - V2EX 如何在存储空间不足的情况下安装 Xcode - V2EX 试了下 Xcode 13 Beta 3 vim mode,终于加上了 r 和 V - V2EX Xcode 安装不上怎么办? - V2EX Xcode 13 adds Vim mode
Xcode 14 / 15 Could not attach to pid: attach failed - V2EX
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 芯片专用?