Xcode Cloud and other swift flags issue

Hello, I've got a "other swift flag" set up for one of my schemes. It works when I build locally, but not when I try building using Xcode Cloud.

My Other Swift Flags is set up like this:

My code looks something like this:

class Config {
    #if LIMITED
        static let configProperty = 1
    #endif
}

However, Xcode Cloud says Config has no member 'configProperty', when I build my 'Limited' scheme.

Answered by GBecker in 787471022

I solved this issue. The problem wasn't that my Other Swift Flags settings weren't being read. The problem was that I hadn't set the Build Configuration for my scheme's Archive action. It defaulted to "Release" when it should have been set to my custom value.

Accepted Answer

I solved this issue. The problem wasn't that my Other Swift Flags settings weren't being read. The problem was that I hadn't set the Build Configuration for my scheme's Archive action. It defaulted to "Release" when it should have been set to my custom value.

Xcode Cloud and other swift flags issue
 
 
Q