Xcode, git, and intermediate build folders

I would like two things:

  • to be able to modify branches in git and then execute or create in Xcode without recompiling the entire project.

  • have git ignore intermediate assembly files during merge, so it won’t ask for conflict resolution.

Putting an intermediate assembly outside of the project or using .gitignore to ignore this folder does # 2, but not # 1; I need to rebuild the whole project when I change branches, even if I did not modify the files.

+5
source share
3 answers

, # 2, # 1. , Xcode - git .

# 2, git , .gitignore 'd?

+1

:

  • MY_BRANCH_NAME = branch_foo ( )
  • TARGET_TEMP_DIR = $(CONFIGURATION_TEMP_DIR)/$(TARGET_NAME)$(MY_BRANCH_NAME).build ( )

, , - .

xcconfig MY_BRANCH_NAME xcodebuild script, .

+1

Xcode . , Xcode , , .

, , , . , , , .

, , , . + , ; , .

0

All Articles