an0
an0

Reputation: 17530

How to link framework only under Debug configuration?

I have a framework which I only want to link under Debug configuration, i.e., I have to make sure it is not linked under Release configuration. How can I do that?

Upvotes: 13

Views: 2501

Answers (1)

Daij-Djan
Daij-Djan

Reputation: 50089

no need for to targets or any ifdef stuff.

  1. dont add it to any target
  2. and then add to the linker flags for the config only

enter image description here

works for static libs and dylibs and also frameworks

Upvotes: 25

Related Questions