This definitely works most of the time:
Go to your target Build Settings -> Other linker flags -> double click . Add $(inherited)
to a new line.
If you have problem with “…target overrides the GCC_PREPROCESSOR_DEFINITIONS build setting defined in…” then you must add $(inherited) to your target Build Settings -> Preprocessor Macros