Giter Club home page Giter Club logo

Comments (8)

Arti3DPlayer avatar Arti3DPlayer commented on August 17, 2024 1

@nchodelski i noticed that you write -DDEBUG with uppercase. But it should -DDebug. Method that i showed you works for me and other guys.

screen shot 2016-05-23 at 13 11 06

from armchair.

coneybeare avatar coneybeare commented on August 17, 2024

You have to add the flag to the pod project

from armchair.

Arti3DPlayer avatar Arti3DPlayer commented on August 17, 2024

How to do this ?

from armchair.

Arti3DPlayer avatar Arti3DPlayer commented on August 17, 2024

Ah, ok i understand

from armchair.

nataliachodelski avatar nataliachodelski commented on August 17, 2024

@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:
screen shot 2016-05-18 at 4 48 07 pm
screen shot 2016-05-18 at 4 47 49 pm

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.

screen shot 2016-05-18 at 4 51 40 pm

from armchair.

Arti3DPlayer avatar Arti3DPlayer commented on August 17, 2024

@nchodelski you were close.

select Armchair project and set -DDebug flag here

from armchair.

nataliachodelski avatar nataliachodelski commented on August 17, 2024

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.

from armchair.

nataliachodelski avatar nataliachodelski commented on August 17, 2024

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!!

from armchair.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.