Muukii

Using build rules - example

Updated
Aug 20, 2021 5:32 AM
Created
Aug 20, 2021 5:32 AM
Tags
Xcode

Xcode file variants without targets

If you want to configure your iOS/Mac (Swift or Objective-C) build with some alternative variant, there are plenty of different approaches to follow. In general, you can divide them into two clusters: switch it in runtime (e.g. parsing Info.plist) or compile-time (leveraging Swift Compilation Conditions/Preprocessor Macro or define new target).

medium.com

Xcode file variants without targets