简体   繁体   English

如何更新 swift/xcode 项目的设置?

[英]How to update settings for a swift/xcode project?

I am new to Xcode and Swift .我是XcodeSwift的新手。 There is an apparently known problem in Swift Compilations that I am attempting to address via a recommended fix that is stated here https://forums.swift.org/t/swift-compilation-reaching-arg-max-limit-causing-xcode-build-failure/6494/14 Swift编译中有一个明显已知的问题,我试图通过此处所述的推荐修复来解决https://forums.swift.org/t -构建失败/6494/14

Xcode 11 beta 3 added a flag to use an unlimited number of Swift files. Xcode 11 beta 3 添加了一个标志以使用无限数量的 Swift 文件。 You have to add USE_SWIFT_RESPONSE_FILE to YES in Build Settings - User Defined section.您必须在 Build Settings - User Defined 部分中将 USE_SWIFT_RESPONSE_FILE 添加为 YES。 But this only works if you use the New Build System.但这仅在您使用新构建系统时才有效。 Tested on a dummy project with 2000 files inside an extra long path and it's working.在一个超长路径中有 2000 个文件的虚拟项目上进行了测试,并且它正在工作。

I am uncertain how/where to add this USE_SWIFT_RESPONSE_FILE = NO setting.我不确定如何/在何处添加此USE_SWIFT_RESPONSE_FILE = NO设置。 Here is my .xcodeproject directory这是我的.xcodeproject目录

在此处输入图像描述

Which file should be updated to include the new setting?应更新哪个文件以包含新设置?

Update After applying the accepted answer from @JawadAli the Target|Build|User defined settings are here:更新应用@JawadAli 接受的答案后, Target|Build|User defined settings在这里:

在此处输入图像描述

xcode11 xcode11

-build setting -构建设置

-user-defined -用户自定义

-add setting: USE_SWIFT_RESPONSE_FILE (by pressing + sign on top) -添加设置:USE_SWIFT_RESPONSE_FILE(通过在顶部按 + 号)

-setValue:NO -setValue:否

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM