Giter Club home page Giter Club logo

Comments (1)

nataliachodelski avatar nataliachodelski commented on August 17, 2024 9

So i finally figured this out with the help of a fellow githubber. Having never used a custom complier flag before, this was confusing to find, set, and set correctly.

So here is how to add this debug flag to the Armchair cocoapod.
FYI: You use debug mode to test out Armchair. Enabling debug mode makes Armchair show prompts immediately, without it having to meeting your usual prompting pre-conditions. You need to tell Armchair you're running the app in debug mode by setting a custom complier flag. Just building the app in debug ('testing' mode) in Xcode isn't enough for Armchair to recognize this.

To add a "-DDebug" (case sensitive) flag to Custom Complier Flags section of build settings for the Armchair pods project.

  • find and open up the "Pods" project in your project explorer. Select the Armchair Target. You then must find and click "build settings" to show the Armchair pod build settings.

github refrence 1

Now, use the search box to search for "flags". You may need to select show 'All' options at the top, to find this entry. the "Swift Compiler - Custom Flags" section should be at the very bottom of the list. You may need to click on "Other Swift Flags" to show the 'debug' and 'release' options - notice the drop down arrow that makes these two options visible.

Once you see that, double-click on the debug row to bring up a little box where you enter the flags you're adding. Tadd a row, click the + arrow at the bottom of the box, and add text, and then click out of the edit field do add that row. then repeat with the + icon to add the other rows.
Add these 3 rows: "-D", then "COCOAPODS" and then "-DDebug", as shown below. Make sure you add this only to the Debug row so that Debug mode is only enabled when you build your app for testing, not on Release builds as well (Release would be when you compile an archive of your app for the app store)

github refrence 2

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.