Xcode Configurations and Flags

  Переглядів 11,729

Stewart Lynch

Stewart Lynch

День тому

In this video, I am going to introduce you to Xcode configuration files, flags, compiler directives and accessing Build settings from code in Swift. It is not as complicated as you may think, and it has some extremely practical applications.
If you want to support my work, you can buy me a coffee :)
ko-fi.com/stewartlynch
******* Download my StewartLynch UKposts Channel Application - Free **********
stewartlynch.gumroad.com/l/obsjz
Table of Contents:
0:00 Introduction
2:48 Schemes
4:40 DEBUG Compiler flag
6:20 Custom Configurations
7:00 Configuration Flags
10:44 Configuration Files
13:14 Configuration File Key value pairs
16:15 Accessing Build settings in code
Starter Project Files:
www.createchsol.com/StarterPro...
Completed Project:
github.com/StewartLynch/Confi...
References mentioned in video:
Apple Doc
help.apple.com/xcode/mac/11.4...
AppCoda
www.appcoda.com/xcconfig-guide/
Heartbeat
heartbeat.comet.ml/xcode-buil...
Ted Bendixson
/ some-practical-uses-fo...
NSHipster
nshipster.com/xcconfig/
Other References:
Stewart Lynch's UKposts Channel:
/ stewartlynch
Stewart Lynch on Twitter:
/ stewartlynch

КОМЕНТАРІ: 31
@williamallen4607
@williamallen4607 2 роки тому
Stewart, thanks for covering topics that no other iOS UKpostsr is covering!
@SwiftfulThinking
@SwiftfulThinking 2 роки тому
I seriously agree. Great video Stewart!
@ZoeSummers1701A
@ZoeSummers1701A 11 місяців тому
Thank you so much for this; no one ever talks about this stuff…
@larschristiansen3136
@larschristiansen3136 2 роки тому
Thank you Stewart. A very useful video. Xcode configuration, and the many options available are intimidating. So this video is a great introduction and place to start. More please.
@GaryLutchansky
@GaryLutchansky Рік тому
Simply a fantastic presentation that has demystified this and has given me greater Xcode powers! Thank you Stewart. Note: with Xcode 14.2 , I found that the custom configuration/flag DEVELOPMENT can be added anywhere within the #if, #elseif, #endif sequence--meaning before or after the default RELEASE and DEBUG flags. In the video you note to place the custom ones before these defaults. Works just fine in any order.
@gabrieljaramillo6255
@gabrieljaramillo6255 Рік тому
Thank you for this video, it's been a great pleasure to learn this from your Channel. Subscribed!. And btw, you have a great voice, you explain so well and go straight. to the point, Thank you!.
@amari9773
@amari9773 2 роки тому
Very much appreciated, Stewart!
@dhavalnena7386
@dhavalnena7386 Рік тому
Great content so far explaining custom flags! You are true gem Stewart! Thank you
@StewartLynch
@StewartLynch Рік тому
Thank you for those kind words. Much appreciated.
@alobaili
@alobaili 2 роки тому
Wonderful video and very educational indeed. Thank you very much!
@christophepoulin2689
@christophepoulin2689 2 роки тому
Very informative, thank you!
@sergeyivanov3351
@sergeyivanov3351 Рік тому
Cool unique video! Thank you!
@ryankanno2562
@ryankanno2562 2 роки тому
Awesome video! Thank you so much!
@starseedgamma2108
@starseedgamma2108 Рік тому
Thank you, Sir, It works !
@evgeshaky
@evgeshaky Рік тому
you have a talent to teach! thank you!
@evgeshaky
@evgeshaky Рік тому
no need "-D"
@IykizDesign
@IykizDesign Рік тому
This is super helpful, thanks.
@StewartLynch
@StewartLynch Рік тому
Glad it was helpful!
@teachmyselfcs
@teachmyselfcs 2 роки тому
Exactly what I needed to fix a bug at work
@StewartLynch
@StewartLynch 2 роки тому
Glad it helps
@nurlanakylbekov7266
@nurlanakylbekov7266 2 роки тому
Thank you very much.
@ferdiangunawan1237
@ferdiangunawan1237 Рік тому
Thank you sir!
@StewartLynch
@StewartLynch Рік тому
You are welcome!
@1987alejandroivan
@1987alejandroivan 25 днів тому
It would be nice to see this being used in a multi-module app, does it work the same for a module? Are values only accessible inside the actual module or do we have to expose them in the main project for the workspace?
@gokhanmutlu4530
@gokhanmutlu4530 11 місяців тому
Thx for the video. ---- Before running the project to see the expected behavior, we need to change "Build Configuration" as debug, release or development. Instead, I prefer to create three schemas for each configuration; such as "Debug", "Release", "Development" and then assign needed configuration to each of them. I would be able to use the required configuration by simply selecting the schema from the schemas-dropdown at the top of the Xcode editor.
@StewartLynch
@StewartLynch 11 місяців тому
Perfect
@gjermundification
@gjermundification Рік тому
I like this video as I have not done these things in iOS with Swift before, how would I add one target for each platform? I have the following folders: macOS Vapor, macOS AppKit, macOS ncurses, iOS for iPhone, iOS for iPad, tvOS. While the implementation for all of them are in a folder named common. I would also like to be able to add linux amd64 Vapor, and linux amd64 ncurses.
@JuliusSmith
@JuliusSmith Рік тому
I am surprised you can say #if instead of #ifdef.
@mohamedfawzi6628
@mohamedfawzi6628 Рік тому
Again, top notch! Thank you so much Also I have a cool trick if you want to include the is to write it that way https:/$()/
@starseedgamma2108
@starseedgamma2108 Рік тому
Sorry Sir, GitHubLink doesn't work
@StewartLynch
@StewartLynch Рік тому
Oops. Sorry about that. I fixed the link now.
24 Xcode Tips in 15 Minutes
15:30
Paul Hudson
Переглядів 72 тис.
Xcode Tutorial - Step by Step for Beginners
56:52
CodeWithChris
Переглядів 307 тис.
Новий концерт Єдиного Кварталу від 12 травня 2024. Повний випуск
1:26:42
Артем Пивоваров х Klavdia Petrivna - Барабан
03:16
Artem Pivovarov
Переглядів 8 млн
Deep Dish Swift 2024 Talk - Stewart Lynch
39:10
Stewart Lynch
Переглядів 1,3 тис.
Apple Debugging L9 - Instruments Time Profiler
26:54
AppleProgramming
Переглядів 14 тис.
NavigationStack 2: Programmable NavigationPath and DeepLinks
28:37
Stewart Lynch
Переглядів 10 тис.
Swift API Calls for Beginners (Networking) - Async Await & JSON
25:35
What is Xcode's info.plist? (Common Examples) | Xcode 12
7:12
Sean Allen
Переглядів 31 тис.
Xcode Breakpoints - Basic Debugging | Swift
21:53
Sean Allen
Переглядів 34 тис.
Flutter for iOS developers
13:43
Flutter
Переглядів 96 тис.
Improve Debugging Skills | iOS | Swift/Obj C | Xcode
26:02
iCode
Переглядів 16 тис.
Best OS for programming? Mac vs Windows vs Linux debate settled
8:40
APPLE УБИЛА ЕГО - iMac 27 5K
19:34
ЗЕ МАККЕРС
Переглядів 83 тис.
Индуктивность и дроссель.
1:00
Hi Dev! – Электроника
Переглядів 102 тис.
❌УШЛА ЭПОХА!🍏
0:37
Demin's Lounge
Переглядів 308 тис.