简体   繁体   中英

How to update settings for a swift/xcode project?

I am new to Xcode and Swift . 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

Xcode 11 beta 3 added a flag to use an unlimited number of Swift files. You have to add USE_SWIFT_RESPONSE_FILE to YES in Build Settings - User Defined section. 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.

I am uncertain how/where to add this USE_SWIFT_RESPONSE_FILE = NO setting. Here is my .xcodeproject directory

在此处输入图像描述

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:

在此处输入图像描述

xcode11

-build setting

-user-defined

-add setting: USE_SWIFT_RESPONSE_FILE (by pressing + sign on top)

-setValue:NO

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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