Comments (8)
@nchodelski i noticed that you write -DDEBUG
with uppercase. But it should -DDebug
. Method that i showed you works for me and other guys.
from armchair.
You have to add the flag to the pod project
from armchair.
How to do this ?
from armchair.
Ah, ok i understand
from armchair.
@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.
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.
from armchair.
@nchodelski you were close.
select Armchair project and set -DDebug
flag here
from armchair.
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.
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)
- 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.