mirror of
https://github.com/ProxymanApp/atlantis.git
synced 2026-04-26 16:36:03 +03:00
[GH-ISSUE #38] [SwiftPM] How to include in only certain configurations? #31
Labels
No labels
Done
Done
Windows
bug
bug
bug
enhancement
enhancement
enhancement
good first issue
hacktoberfest
pull-request
wontfix
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/atlantis#31
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jsorge on GitHub (Nov 11, 2020).
Original GitHub issue: https://github.com/ProxymanApp/atlantis/issues/38
Originally assigned to: @NghiaTranUIT on GitHub.
First: this is awesome. I've just installed the Swift Package into our project and it's fantastic!
I'm wondering if there's a way for me to only include the library in a certain configuration (debug in my case) since I would prefer to exclude Atlantis from all of my release builds. Were this just a library in my project I could use a build setting in the
OTHER_LDFLAGSfor my debug configuration to link it. I don't see any way to do this in the Xcode UI though 😞Any tips to get this done are much appreciated!
@NghiaTranUIT commented on GitHub (Nov 12, 2020):
You can exclude it in two way:
Soft approach
It means that you still include Atlantis library to your source code, but don't import it or start the Atlantis. It just stays there and does nothing.
Hard approach
It means that you completely exclude Atlantis from Production build, but include in Debug build.
@jsorge commented on GitHub (Nov 12, 2020):
Gotcha, thanks!