Questions tagged [xcode-build-settings]
38 questions
2
votes
1 answer
How does Xcode decide what preprocessor macros and other build settings to use for autocomplete?
My Xcode project has different build configurations, and they define different preprocessor macros. Autocomplete doesn't work in #ifdef blocks that are ignored by the current preprocessor flags, so I want to control which build configuration Xcode…

tbodt
- 16,609
- 6
- 58
- 83
2
votes
1 answer
xcodebuild ACTIVE_COMPILATION_CONDITIONS does not override target's ACTIVE_COMPILATION_CONDITIONS
We are trying to use xcodebuild to build our frameworks, instead of using manual Xcode IDE running buttons. The issue is that in our framework we use ACTIVE_COMPILATION_CONDITIONS, which have several values. Those values are then used to check at…

Viktor Vostrikov
- 1,322
- 3
- 19
- 36
2
votes
0 answers
React Native ios app is crashing with generic bu
iOS app is built on react native running successfully on emulator device or when i create build with connected device. However, getting crashed for generic build with test flight.
Here is crash report.
{"app_name":"WashOn","timestamp":"2020-10-05…

Naveen Nahata
- 21
- 1
1
vote
0 answers
SwiftUI/Xcode Build issue
I am not sure why this is happening. My project was building and now it is not. I am getting the following error.
Showing All Errors…

brandon aho
- 11
- 6
1
vote
0 answers
XCode - Adding Local swift packages in the application target using xcconfig file
I have a white-label project which has multiple app targets. All the target use the common code and their specific assets.
All the common code is divided into Core Modules and Feature Modules. All of these modules are Local Swift packages in the…

tarun_sharma
- 761
- 5
- 22
1
vote
0 answers
Xcode build settings - how to capitalize a variable
Inside xcode build settings we can define some custom value. I would define a custom LaunchScreen value based on my current scheme (flavor).
I'm looking for a way to capitalize the bundle identifier value (put the first letter in upper case). I can…

Eng
- 1,617
- 2
- 12
- 25
1
vote
1 answer
How to check type of device (device/simulator) on Run Script phase in Build Settings?
I have 2 versions of some library, one - for real device, other - for simulator.
Can I write sh script to detect on which device (device/sim) Xcode will run application and switch that libraries in Run Script phase?

zzheads
- 1,368
- 5
- 28
- 57
1
vote
1 answer
Reusing build phase for multiple targets in Xcode
Can I reuse the same build phase for multiple targets?
I have multiple targets on my project and I want to run SwiftLint for all the targets as a build phase.
Is there a way I can achieve this without duplicating the build phase?

Iiro Alhonen
- 352
- 3
- 19
1
vote
0 answers
In Xcode, how to include resources with folder structure?
In Xcode, I created some HTML help files and put them in a folder, like this:
But when Xcode builds the final app package, it flattens the folder structure.
ls…

Rob N
- 15,024
- 17
- 92
- 165
1
vote
0 answers
How to ensure consistent xcodebuild results when the new build system is used?
We are using a homemade script that builds a couple of projects using xcodebuild and analyzes the returned number of build errors and warnings.
When the new build system was introduced in Xcode, I've found that the number of output errors or…

Crulex
- 1,030
- 9
- 16
1
vote
1 answer
Cocoapods EXCLUDED_ARCHS flag not being set during build
I am trying to build my project but kept getting 'No Module Found' when deploying to the simulator but not to an actual device. After digging around, I found I should add the arm64 to the Excluded Archtiectures section of the building settings for…

user-44651
- 3,924
- 6
- 41
- 87
1
vote
1 answer
What is the COMPILER_INDEX_STORE_ENABLE xcode build settings default value?
There is Default, YES, NO, but what is the Default value? is YES or NO?
https://xcodebuildsettings.com/#compiler_index_store_enable

Won
- 1,107
- 9
- 16
1
vote
0 answers
The parent bundle has the same identifier (bundle.identifier) as sub-bundle
So I just recently added a POD to my project which then required me to use/load workspaces instead of the individual project. That's all fine and dandy but now the build script that we use to ultimately build the project (see below) will build…

etinum
- 55
- 4
1
vote
1 answer
Xcode SwiftUI Previews build settings
I am running a pre-build script using scheme. My script has enabled option to provide build settings from target that is being built. This script also gets executed when project is built for SwiftUI Previews. I need to know inside this script if the…

Piotr Tobolski
- 1,326
- 7
- 22
1
vote
0 answers
Recursively apply -arch option to all dependencies of a Xcode project
I have a script that build a list of Xcode projects using xcodebuild command line tool. After introduction of universal builds we introduced standard arch's in our xcconfig files and build settings of Xcode projects. Now I want to add an option to…

Anil
- 318
- 1
- 3
- 13