Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Package fails to build on Xcode 27 (Variable initialization expression of Sharing.Shared)

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

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
84/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
swift

调研方向

从 Package.swift 开始,其中 sqlite-data 1.12.0 将其 swift-sharing 依赖声明为 2.3.0 版本,并将该要求与所引用的 2.8.1 release 进行比较。使用 Xcode 27 构建该 package,并确认 arm64 linker error 已消失;当 dependency 解析到兼容版本且 package 成功构建时,即表示完成。

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

描述

bug
Description

Hello,

When building my project using the new Xcode 27 (build 27A266a), I noticed the following failure:

undefined symbols for architecture arm64:
  "variable initialization expression of Sharing.Shared.(__generation in _02BAFA3D923A53DF643BF6C71BB0CD51) : SwiftUI.State<Swift.Int>", referenced from:
      Sharing.Shared.init<A where A == A1.Value, A1: Sharing.SharedKey>(A1) -> Sharing.Shared<A> in Sharing.o
ld: symbol(s) not found for architecture arm64
/Users/jamal/Development/Briefcase/Briefcase.xcodeproj: BriefcaseCore: clang: error: linker command failed with exit code 1 (use -v to see invocation)

This looks similar to this issue in swift-sharing.
https://github.com/pointfreeco/swift-sharing/pull/216

Looks like the fix went in version 2.8.1 of swift-sharing.

But the latest of Package.swift in sqlite-data 1.12.0 is still referencing version 2.3.0

Checklist
  • I wrote this in my own words, and aimed to be as succinct as possible, even if I used AI to help research its content.
  • I have determined whether this bug is also reproducible in a vanilla SwiftUI project.
  • I have determined whether this bug is also reproducible in a vanilla GRDB project.
  • If possible, I've reproduced the issue using the main branch of this package.
  • This issue hasn't been addressed in an existing GitHub issue or discussion.
Expected behavior

No response

Actual behavior

No response

Reproducing project

No response

SQLiteData version information

1.12.0

Sharing version information

No response

GRDB version information

No response

Destination operating system

macOS 27

Xcode version information

Xcode 27A266a

Swift Compiler version information

主要语言
Swift
星标
1.9k
派生
154
平均合并
2 天 18 小时
30 天内合并 PR
1

环境准备

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

从这里开始

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

pointfreeco/sqlite-data 的其他 Issue

查看 pointfreeco/sqlite-data 的全部 Issue

相似的 Issue

更多 Swift Issue

把新 issue 发到你的邮箱

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