Comments (1)
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.
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)
from armchair.
Related Issues (20)
- rateApp() not working, "Write Review" page in AppStore cannot be opened. HOT 3
- Cant figure it out HOT 1
- Multiple Prompts at once HOT 1
- Armchair & UIAlertView HOT 1
- Can't get this working in Debug mode HOT 1
- Mac Version doesn't compile HOT 2
- AlertController not showing up with warning: Attempt to present UIAlertController on UINavigationController whose view is not in the window hierarchy! HOT 1
- Release? HOT 1
- SKStoreReviewController keeps showing even though daysBeforeReminding is set to 3 and significantEventsUntilPrompt is set to 40. HOT 1
- Cannot build with Carthage HOT 2
- Prompt is showing , but after pressing Rate now button not showing , juts infinite loading HOT 1
- Import Error and Shared Instance Error
- Swift 4.0 support
- Incorrect calculation in "RemindMeLater" code
- don't show armchair pop up ever in one particular view controller. HOT 1
- I want to hide cancel/No thanks button and give user 2 options (Rate Now, Remind me later) only.
- package.swift is missing HOT 1
- Major bug with app review! HOT 1
- "Rate app-name" link goes to the app's App Store page, not the "write review" page
- All Armchair .lproj files are included with cocoapods "use_frameworks! :linkage => :static"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from armchair.