Questions tagged [build-settings]

154 questions
6
votes
5 answers

Xcode - build setting "EXCLUDED_SOURCE_FILE_NAMES" not working

I am trying to exclude some .swift and .storyboard files from my project (Xcode9) for release build using EXCLUDED_SOURCE_FILE_NAMES. But its not working for me. Is it possible to give any folder name to exclude it completely? How to give multiple…
srus2017
  • 394
  • 2
  • 14
6
votes
2 answers

When is it necessary to compile for i386 on iOS

I have recently moved to a new company and am trying to get to grips with the Xcode settings on a project. Currently the project is being compiled for "armv7 armv7s arm64 armv8 i386". Could someone please explain if is necessary to compile for i386…
Stoff81
  • 597
  • 4
  • 15
6
votes
1 answer

Xcode Build Options, etc. Tutorial

I've worked on a few projects now, and I've had to change the framework search paths, set the bundle loader, etc. But I've never felt totally comfortable with that Project (or Target) "Get Info" window. I still don't know what half the stuff in…
andyvn22
  • 14,696
  • 1
  • 52
  • 74
6
votes
3 answers

Xcode 5.0: Apple where is Add Build rule gone?

I cannot find Add Custom Build Rule option on Version 5.0 (5A1413). Does anyone noticed it? Has it been moved somewhere else? As a work around I am clicking "Copy to Target" on any build rule and customising it to make it custom…
Paresh Masani
  • 7,474
  • 12
  • 73
  • 139
5
votes
2 answers

Xcode build issue couldn't to find auto-linked framework

I've been struggling with this issue for days now :( When building my iOS app in the simulator it works fine (debug build), but as soon as I'm trying to build to my iPhone 11 (v 14.5.1) my build fails with these errors: ld: warning: Could not find…
5
votes
2 answers

Xcode Linking - Command Ld failed with a nonzero exit code

I try to create an Objective-C Framework with Relocatable Object File for Mach-O Type in Xcode Build Settings. When I build the framework, the command Ld failed with a nonzero exit code error appears. The error description is clang: error: invalid…
Kiel
  • 235
  • 2
  • 8
5
votes
1 answer

Can you require the iPhone 3Gs (or newer) with build settings?

My app doesn't run on the slower hardware, but I want to support iOS 4.0, which iPhone 3G (and equivalent 2nd gen iPod touch) can run. Is there a way to prevent it from being installed via the build settings? (I'd prefer not to have to enforce it in…
zekel
  • 9,227
  • 10
  • 65
  • 96
5
votes
3 answers

XCode 4 - Build settings : default values are still bold

I have a project with 2 targets. On both, there are some build settings I've changed to Yes, then back to No. The iOS default is NO, the project is on NO, each build setting is on NO... but the setting is still bold (value changed). As for settigns…
Oliver
  • 23,072
  • 33
  • 138
  • 230
5
votes
1 answer

Xcode build settings not showing arch specific options?

I'm trying to add architecture specific locations for libraries in my build settings for my project. However for some reason I don't see them in the menu. How my menu looks: How the menu is supposed to look (Not exactly the same, but you can…
Nathan F.
  • 3,250
  • 3
  • 35
  • 69
5
votes
1 answer

DESTDIR vs prefix options in a build system?

Can someone explain me the purpose of a $(DESTDIR) variable in a build system? I mean that I know that it points a temporary directory for currently installed package, but I can not imagine what is practical use of it. To clarify, well, I know what…
user7969519
5
votes
0 answers

How to propagate Xcode configuration to subproject?

I have two Xcode projects, Test and TestFramework in Xcode. Test is related to TestFramework. There are 2 configurations in TestFramework, which are DEBUG and RELEASE. But 3 configurations in Test. Two of them are same with the configurations in…
Ringo_D
  • 784
  • 5
  • 18
5
votes
1 answer

How to prevent a custom init method from revealing the absolute source path in Xcode?

To a new Xcode project, I have added a new class with a custom init method in this way: import Cocoa class NewClass: NSControl { override init(frame: CGRect) { super.init(frame: frame) } required init(coder: NSCoder) { …
klopps
  • 85
  • 5
5
votes
1 answer

What is the difference between -DNDEBUG and -DNS_BLOCK_ASSERTIONS flags

I've tried FauxPas source code analyzer and it showed me that I am missing -DNDEBUG flag, with next description: This argument disables the C standard library assertion macro (as defined in assert.h). Though, when I check my build settings I…
Ossir
  • 3,109
  • 1
  • 34
  • 52
5
votes
0 answers

Black textures on Unity android when building development build with script debugging

When building an android apk with both "development build" and "script debugging" checked in the build settings, all my textures appear black, even the Unity splash screen is not present (likely black). I'm using Unity 5.0.1f1 and I'm building an…
Jinja
  • 61
  • 4
5
votes
2 answers

treat specific warning as error Xcode

In the Build Settings is it possible to treat Specific warnings as Error instead of Treating all warnings are Errors. This is a simple Switch statement checker in xcode : GCC_WARN_CHECK_SWITCH_STATEMENTS = YES_Error instead of :…
raghul
  • 1,008
  • 1
  • 15
  • 33
1 2
3
10 11