7

I created sample project to demonstrate the problem https://github.com/pikciu/XCodeWorksapce/tree/noPods

  • invalid paths to frameworks
  • frameworks build in different configuration than main project.

There are 4 build configurations and 2 schemes. Every build configuration uses different xcconfig file. configuration Lib.framework is linked to the main project.

XCode builds frameworks in Release configuration even if main project is building in Debug. build fail

I have found these solutions: Xcode Build Configurations in Workspace With Multiple Projects and How to compile a project with app and library in the same workspace with different configuration names?

MODULES_BUILDS = $(DEFAULT_CONFIGURATION)-$(PLATFORM_NAME)
FRAMEWORK_SEARCH_PATHS = $(BUILD_DIR)/$(MODULES_BUILDS)
HEADER_SEARCH_PATHS = $(FRAMEWORK_SEARCH_PATHS)/include
LIBRARY_SEARCH_PATHS = $(FRAMEWORK_SEARCH_PATHS)

but it doesn't work. Maybe is it XCode 10 issue?

3
  • can you check out the targets again ? Commented Oct 30, 2018 at 14:54
  • @Tobi what do you mean? I didn't change targets. There is still one target Commented Nov 1, 2018 at 20:16
  • I don't get it. What is the question? I cloned your sample and I see no issues. Can you explain a little bit more ? Commented Nov 10, 2018 at 14:22

1 Answer 1

1

Your Lib target is being built with the Release configuration. Change this setting Under Configurations of your Lib project, use the Debug configuration for command-line builds.

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.