Crash when tapping Enable AI Server (TestFlight build 212)

未关闭 适合新手
#5 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1-3 小时
新手友好度
90/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
ios, swift
领域
mobile

调研方向

首先阅读 YouRec/RemoteEditorServer.swift 第 107 行附近的内容,并追踪 Network 监听器如何配置和启动。在 iOS 26.3.1 上通过 Tools > AI Server > Enable AI Server 复现崩溃。当启用服务器不再崩溃且显示服务器地址时,工作即完成;如果有测试版可用,请在同一台 iPhone 上进行验证。

由索引模型根据 Issue 内容生成。

描述

On iOS 26.3.1 with YouRec 1.0.3 (212), I open a project and tap Tools > AI Server > Enable AI Server. The app closes before showing the server address.

The crash report shows EXC_BREAKPOINT (SIGTRAP) in Network on the main thread, with Int.max in x0 during a conversion to UInt32. This points to server.newConnectionLimit = .max in RemoteEditorServer.swift, line 107.

Removing that line should fix it. Apple documents that the listener already defaults to InfiniteConnectionLimit. I can retest on the same iPhone when a beta is available. Thanks!

主要语言
Swift
星标
61
派生
7
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

相似的 Issue

更多 Swift Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。