Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode: How to have target settings inherit from project

Tags:

xcode

Our target settings were inheriting from the project settings. We changed a target settings (break inheritance) but now want the target to start inheriting from the project again. How can you do this? Clearing out the target setting in question doesn't seem to work.

like image 331
Marcus Leon Avatar asked Mar 19 '16 14:03

Marcus Leon


People also ask

How does Xcode choose target?

Go to project's settings in the Project Navigator panel. Under the Targets sections, right click the existing target and select Duplicate to copy your existing target. 2. Xcode will ask you if your new target is for iPad development.

What is the difference between project and target in Xcode?

A project is a set of files and general preferences. A target is a subset of the files, and specific preferences (which override the project preferences). Each target builds a product, which may be a library, executable, or framework.

What does Xcode automatically create for each target when a new project is created?

When you embed a new target inside an app, Xcode creates a dependency between the app and target if the scheme's Find Implicit Dependencies option is enabled. If that option is disabled, you must configure the dependency yourself. To view and add dependencies, select a target and open its build phase settings.


1 Answers

There's a difference between clearing out the target setting (setting it to the empty string) and removing it. Assuming the target is selected and the specific build setting is selected (but not in edit mode), simply press Delete to remove the setting at that level.

like image 121
Ken Thomases Avatar answered Sep 22 '22 03:09

Ken Thomases