How to add a .xcframework for debug mode only on an iOS project?

Viewed 582

I want to add the Flex tool to my project as a xcframework.

How can I add it only for debug mode?

Thanks in advance.

1 Answers

Thanks to @matt for showing me the answer. On this link it can be seen what it needs to done, the repo itself already shows the steps.

I am posting the answer because I believe it can be helpful.

Steps:

  1. Drag and drop the xcframework to your project.
  2. In Xcode, navigate to Build Settings > Build Options > Excluded Source File Names. For your Release configuration, set it to FLEX* like this to exclude all files with the FLEX prefix: enter image description here

This idea can be extended to any specific xcframework.

Related