Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đã đóng Phù hợp với người mới
#558 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
84/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
swift
Lĩnh vực
build-system, database

Hướng nghiên cứu

Bắt đầu trong Package.swift, nơi sqlite-data 1.12.0 khai báo dependency swift-sharing ở version 2.3.0, rồi so sánh yêu cầu đó với release 2.8.1 được tham chiếu. Build package bằng Xcode 27 và xác nhận rằng lỗi linker arm64 đã biến mất; được xem là hoàn tất khi dependency được resolve về một version tương thích và package build thành công.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Swift
Star
1.9k
Fork
157
Merge trung bình
3 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của pointfreeco/sqlite-data

Tất cả issue của pointfreeco/sqlite-data

Issue tương tự

Thêm issue về Swift

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.