mirror of
https://github.com/UrbanApps/Armchair.git
synced 2026-01-14 14:23:25 +01:00
Debug message #27
Reference in New Issue
Block a user
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 @Arti3DPlayer on GitHub (Mar 30, 2016).
I added -DDebug flag to my project.
Then in code did:
But always get message:
Source:
@coneybeare commented on GitHub (Mar 30, 2016):
You have to add the flag to the pod project
@Arti3DPlayer commented on GitHub (Mar 31, 2016):
How to do this ?
@Arti3DPlayer commented on GitHub (Mar 31, 2016):
Ah, ok i understand
@nataliachodelski commented on GitHub (May 19, 2016):
@Arti3DPlayer & @coneybeare I'm going thru different areas trying to add the -DDebug flag and still haven't worked it out. No matter what I've tried i get the "Debug is disabled on release builds. If you really want to enable debug mode, add "-DDebug" to your Swift Compiler - Custom Flags section in the target's build settings for release" message. I thought I had finally found the Custom Complier Flags in the Pods Project Settings, but Armchair rating prompt is still not showing and now i get the above "Debug Warning" message 2 x when the project builds.
Could you pretty please explain how you figured this out Arti3DPlayer? Ideally if you could post a picture of xcode showing the area of the project and the area of the build settings where you find and add the flag, that would be super helpful.
What I have tried so far:


Code to show prompt, and note warning about -DDebug flag in log. I followed the Example AppDeleagte setup code exactly in my AppDelegate file (other than changing app #), and took the demo prompt code from the example project as well. Example project builds and Armchair prompts fine on my device...but not in my own project.
@Arti3DPlayer commented on GitHub (May 19, 2016):
@nchodelski you were close.
select Armchair project and set
-DDebugflag here@nataliachodelski commented on GitHub (May 21, 2016):
Thanks for the advice re where to set the flag. I have tried setting -DDEBUG specifically for the Armchair target within the Pods Project as you described but I still have the same result. It really is weird. I made my own issue about it....maybe I can get to the bottom of it eventually.
For now I worked around it by temporarily modifying Armchair.swift to think it's in debug mode all the time....total hack but it works great for testing! Lol.
@Arti3DPlayer commented on GitHub (May 23, 2016):
@nchodelski i noticed that you write
-DDEBUGwith uppercase. But it should-DDebug. Method that i showed you works for me and other guys.@nataliachodelski commented on GitHub (May 23, 2016):
Wow, that was it. When i used "DDebug" Armchair debug mode worked perfectly! I'm amazed it was actually such a simple thing. I had been using it as "DDEBUG" in capitals because in every example I saw of how to add the flag, it was always written or shown as "-DDEBUG" in all caps. I didn't realise it was case sensitive.
Thanks very much for that tip!!