Binaries are not adding under Build Phase in Link Binary with Libraries Section

未关闭
#868 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
swift
领域
build-system

调研方向

首先,在 Xcode 16 下使用提供的 XCSwiftPackageProductDependency 代码复现报告中的行为,然后检查生成项目的 Link Binary with Libraries 部分和软件包引用。将生成的项目与在 Xcode 15 下创建的等效项目进行比较;当软件包产品出现在预期的构建阶段中时,即表示完成。

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

描述

Hi,

I am using the Tuist/XcodeProj library for generating Xcode-Project after updating to Xcode-16. I am facing an issue my libraries are not added under the Link Binary with Libraries section. I have also updated the library to the latest version (8.24.3) and made necessary changes, like changing package to remotePackage. Still packages are not adding.

Using this code to add packages

let productDependency = XCSwiftPackageProductDependency(
productName: productName,
package: packageReference
)
packageProductDependencies.append(productDependency)
pbxProj.add(object: productDependency)
pbxProject.remotePackages = packages

Till Xcode 15 above code is working fine. Please help me out where I am making mistake.

主要语言
Swift
星标
2.2k
派生
356
平均合并
5 小时 54 分钟
30 天内合并 PR
8

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

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

tuist/XcodeProj 的其他 Issue

查看 tuist/XcodeProj 的全部 Issue

相似的 Issue

更多 Swift Issue

把新 issue 发到你的邮箱

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