[jira] [Commented] (CB-5520) Should we add "DEBUG=1" to "Preprocessor Macros"->"Debug" ?
[ https://issues.apache.org/jira/browse/CB-5520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13954267#comment-13954267 ] Andrew Grieve commented on CB-5520: --- Attached a screenshot of the area where you set it (as you describe). The project one is set where the blue icon is, the "target" one is where the red icon is. You can also set settings via command-line-build time, but I think we should try and avoid that. Looks like we do it right now to set CODE_SIGN_IDENTITY via build.xcconfig. No reason not to set this for the IDE as well. > Should we add "DEBUG=1" to "Preprocessor Macros"->"Debug" ? > --- > > Key: CB-5520 > URL: https://issues.apache.org/jira/browse/CB-5520 > Project: Apache Cordova > Issue Type: Wish > Components: iOS >Affects Versions: 3.2.0 >Reporter: glmnbeyond >Assignee: Shazron Abdullah >Priority: Minor > Labels: core > Attachments: Screen Shot 2014-03-29 at 9.57.58 AM.png > > > I created a helloCordova project via Cordova CLI, and added some debug info > to native code: > DLog('This is a debug info'); > But the debug info is never outputted.If I use ALog, the info can be > outputted, so I think it probably has something to do with the "DEBUG" macro. > After I added "DEBUG=1" to "Preprocessor Macros", ran the helloCordova > target, DLog can be outputted. > So here is my question: > Should we add "DEBUG=1" to iOS template project->"Build Settings"-> > "Preprocessor Macros" ->"Debug" ? -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (CB-5520) Should we add "DEBUG=1" to "Preprocessor Macros"->"Debug" ?
[ https://issues.apache.org/jira/browse/CB-5520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13951230#comment-13951230 ] Shazron Abdullah commented on CB-5520: -- Hmm, didn't know about "3. Target .xcconfig" -- at least it is not configurable in Xcode 5. In Xcode 5 -> Project Settings -> Info -> Configuration you can set the xcconfig, but not so in Target. > Should we add "DEBUG=1" to "Preprocessor Macros"->"Debug" ? > --- > > Key: CB-5520 > URL: https://issues.apache.org/jira/browse/CB-5520 > Project: Apache Cordova > Issue Type: Wish > Components: iOS >Affects Versions: 3.2.0 >Reporter: glmnbeyond >Assignee: Shazron Abdullah >Priority: Minor > Labels: core > > I created a helloCordova project via Cordova CLI, and added some debug info > to native code: > DLog('This is a debug info'); > But the debug info is never outputted.If I use ALog, the info can be > outputted, so I think it probably has something to do with the "DEBUG" macro. > After I added "DEBUG=1" to "Preprocessor Macros", ran the helloCordova > target, DLog can be outputted. > So here is my question: > Should we add "DEBUG=1" to iOS template project->"Build Settings"-> > "Preprocessor Macros" ->"Debug" ? -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (CB-5520) Should we add "DEBUG=1" to "Preprocessor Macros"->"Debug" ?
[ https://issues.apache.org/jira/browse/CB-5520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13950910#comment-13950910 ] Andrew Grieve commented on CB-5520: --- I've done quite a bit of work with .xcconfig files in the past. There's 4 layers of inheritance: 1. Xcode Defaults 2. Project .xcconfig 3. Target .xcconfig 4. Target settings (what we're using now) Each layer can inherit from the above via $(inherted), but you can't append or inherit from settings on the same level. For this reason, I think it makes sense for us to provide a Target .xcconfig, so that users can set their own settings on either side of it (2 & 4). For an upgrade path, I think it'd be great to have the update script do some pbxproj munging to: 1. Add the .xcconfig 2. Delete *all* settings that we set (or maybe everything except PRODUCT_NAME?) Failing this, we could just have the update script fail with a message saying "Recreate your project" > Should we add "DEBUG=1" to "Preprocessor Macros"->"Debug" ? > --- > > Key: CB-5520 > URL: https://issues.apache.org/jira/browse/CB-5520 > Project: Apache Cordova > Issue Type: Wish > Components: iOS >Affects Versions: 3.2.0 >Reporter: glmnbeyond >Assignee: Shazron Abdullah >Priority: Minor > Labels: core > > I created a helloCordova project via Cordova CLI, and added some debug info > to native code: > DLog('This is a debug info'); > But the debug info is never outputted.If I use ALog, the info can be > outputted, so I think it probably has something to do with the "DEBUG" macro. > After I added "DEBUG=1" to "Preprocessor Macros", ran the helloCordova > target, DLog can be outputted. > So here is my question: > Should we add "DEBUG=1" to iOS template project->"Build Settings"-> > "Preprocessor Macros" ->"Debug" ? -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (CB-5520) Should we add "DEBUG=1" to "Preprocessor Macros"->"Debug" ?
[ https://issues.apache.org/jira/browse/CB-5520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13950127#comment-13950127 ] Shazron Abdullah commented on CB-5520: -- Did some experimenting. If we want to extract settings to a .xcconfig file, the corresponding setting in the Target must be removed. A Target setting overrides all. This of course requires a new template, and ths "removal" may exclude back-patching for previous Cordova versions by plugman. > Should we add "DEBUG=1" to "Preprocessor Macros"->"Debug" ? > --- > > Key: CB-5520 > URL: https://issues.apache.org/jira/browse/CB-5520 > Project: Apache Cordova > Issue Type: Wish > Components: iOS >Affects Versions: 3.2.0 >Reporter: glmnbeyond >Assignee: Shazron Abdullah >Priority: Minor > Labels: core > > I created a helloCordova project via Cordova CLI, and added some debug info > to native code: > DLog('This is a debug info'); > But the debug info is never outputted.If I use ALog, the info can be > outputted, so I think it probably has something to do with the "DEBUG" macro. > After I added "DEBUG=1" to "Preprocessor Macros", ran the helloCordova > target, DLog can be outputted. > So here is my question: > Should we add "DEBUG=1" to iOS template project->"Build Settings"-> > "Preprocessor Macros" ->"Debug" ? -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (CB-5520) Should we add "DEBUG=1" to "Preprocessor Macros"->"Debug" ?
[ https://issues.apache.org/jira/browse/CB-5520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13947463#comment-13947463 ] Shazron Abdullah commented on CB-5520: -- Considering all the advantages, I think adding a .xcconfig would be a big win. Not sure if we want to patch support for older templates if they don't have it (still requires modifying the pbxproj I think to point to the xcconfig), or only support in 3.5.0 or later (plugman will have to support this older version patch). > Should we add "DEBUG=1" to "Preprocessor Macros"->"Debug" ? > --- > > Key: CB-5520 > URL: https://issues.apache.org/jira/browse/CB-5520 > Project: Apache Cordova > Issue Type: Wish > Components: iOS >Affects Versions: 3.2.0 >Reporter: glmnbeyond >Assignee: Shazron Abdullah >Priority: Minor > Labels: core > > I created a helloCordova project via Cordova CLI, and added some debug info > to native code: > DLog('This is a debug info'); > But the debug info is never outputted.If I use ALog, the info can be > outputted, so I think it probably has something to do with the "DEBUG" macro. > After I added "DEBUG=1" to "Preprocessor Macros", ran the helloCordova > target, DLog can be outputted. > So here is my question: > Should we add "DEBUG=1" to iOS template project->"Build Settings"-> > "Preprocessor Macros" ->"Debug" ? -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (CB-5520) Should we add "DEBUG=1" to "Preprocessor Macros"->"Debug" ?
[ https://issues.apache.org/jira/browse/CB-5520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13947460#comment-13947460 ] Andrew Grieve commented on CB-5520: --- Like it! I'm finding right now that for cordova-app-harness, none of the system libraries are being added :(. Adding an .xcconfig file would allow us to link in system libraries in this way as well I think. > Should we add "DEBUG=1" to "Preprocessor Macros"->"Debug" ? > --- > > Key: CB-5520 > URL: https://issues.apache.org/jira/browse/CB-5520 > Project: Apache Cordova > Issue Type: Wish > Components: iOS >Affects Versions: 3.2.0 >Reporter: glmnbeyond >Assignee: Shazron Abdullah >Priority: Minor > Labels: core > > I created a helloCordova project via Cordova CLI, and added some debug info > to native code: > DLog('This is a debug info'); > But the debug info is never outputted.If I use ALog, the info can be > outputted, so I think it probably has something to do with the "DEBUG" macro. > After I added "DEBUG=1" to "Preprocessor Macros", ran the helloCordova > target, DLog can be outputted. > So here is my question: > Should we add "DEBUG=1" to iOS template project->"Build Settings"-> > "Preprocessor Macros" ->"Debug" ? -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (CB-5520) Should we add "DEBUG=1" to "Preprocessor Macros"->"Debug" ?
[ https://issues.apache.org/jira/browse/CB-5520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13945760#comment-13945760 ] Shazron Abdullah commented on CB-5520: -- This is great: http://stackoverflow.com/questions/19102565/link-binary-with-static-library-in-xcconfig We can potentially remove finicky .pbxproj edits with plugman for linking binaries > Should we add "DEBUG=1" to "Preprocessor Macros"->"Debug" ? > --- > > Key: CB-5520 > URL: https://issues.apache.org/jira/browse/CB-5520 > Project: Apache Cordova > Issue Type: Wish > Components: iOS >Affects Versions: 3.2.0 >Reporter: glmnbeyond >Assignee: Shazron Abdullah >Priority: Minor > Labels: core > > I created a helloCordova project via Cordova CLI, and added some debug info > to native code: > DLog('This is a debug info'); > But the debug info is never outputted.If I use ALog, the info can be > outputted, so I think it probably has something to do with the "DEBUG" macro. > After I added "DEBUG=1" to "Preprocessor Macros", ran the helloCordova > target, DLog can be outputted. > So here is my question: > Should we add "DEBUG=1" to iOS template project->"Build Settings"-> > "Preprocessor Macros" ->"Debug" ? -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (CB-5520) Should we add "DEBUG=1" to "Preprocessor Macros"->"Debug" ?
[ https://issues.apache.org/jira/browse/CB-5520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13939906#comment-13939906 ] Shazron Abdullah commented on CB-5520: -- Yeah and possibly plugman/cordova CLI updates to Build Settings, possibly without having to muck with the .pbxproj. I'll try to export all the project settings to .xcconfig style, and prune it > Should we add "DEBUG=1" to "Preprocessor Macros"->"Debug" ? > --- > > Key: CB-5520 > URL: https://issues.apache.org/jira/browse/CB-5520 > Project: Apache Cordova > Issue Type: Wish > Components: iOS >Affects Versions: 3.2.0 >Reporter: glmnbeyond >Assignee: Shazron Abdullah >Priority: Minor > Labels: core > > I created a helloCordova project via Cordova CLI, and added some debug info > to native code: > DLog('This is a debug info'); > But the debug info is never outputted.If I use ALog, the info can be > outputted, so I think it probably has something to do with the "DEBUG" macro. > After I added "DEBUG=1" to "Preprocessor Macros", ran the helloCordova > target, DLog can be outputted. > So here is my question: > Should we add "DEBUG=1" to iOS template project->"Build Settings"-> > "Preprocessor Macros" ->"Debug" ? -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (CB-5520) Should we add "DEBUG=1" to "Preprocessor Macros"->"Debug" ?
[ https://issues.apache.org/jira/browse/CB-5520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13938705#comment-13938705 ] Andrew Grieve commented on CB-5520: --- Was thinking the same thing after this latest set of changes. Would make updates easier. > Should we add "DEBUG=1" to "Preprocessor Macros"->"Debug" ? > --- > > Key: CB-5520 > URL: https://issues.apache.org/jira/browse/CB-5520 > Project: Apache Cordova > Issue Type: Wish > Components: iOS >Affects Versions: 3.2.0 >Reporter: glmnbeyond >Assignee: Shazron Abdullah >Priority: Minor > Labels: core > > I created a helloCordova project via Cordova CLI, and added some debug info > to native code: > DLog('This is a debug info'); > But the debug info is never outputted.If I use ALog, the info can be > outputted, so I think it probably has something to do with the "DEBUG" macro. > After I added "DEBUG=1" to "Preprocessor Macros", ran the helloCordova > target, DLog can be outputted. > So here is my question: > Should we add "DEBUG=1" to iOS template project->"Build Settings"-> > "Preprocessor Macros" ->"Debug" ? -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (CB-5520) Should we add "DEBUG=1" to "Preprocessor Macros"->"Debug" ?
[ https://issues.apache.org/jira/browse/CB-5520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13934042#comment-13934042 ] Shazron Abdullah commented on CB-5520: -- I'm thinking of adding a .xcconfig file to the default template, so tweaks like this can be easier (amongst other settings that can be changed) > Should we add "DEBUG=1" to "Preprocessor Macros"->"Debug" ? > --- > > Key: CB-5520 > URL: https://issues.apache.org/jira/browse/CB-5520 > Project: Apache Cordova > Issue Type: Wish > Components: iOS >Affects Versions: 3.2.0 >Reporter: glmnbeyond >Assignee: Shazron Abdullah >Priority: Minor > Labels: core > > I created a helloCordova project via Cordova CLI, and added some debug info > to native code: > DLog('This is a debug info'); > But the debug info is never outputted.If I use ALog, the info can be > outputted, so I think it probably has something to do with the "DEBUG" macro. > After I added "DEBUG=1" to "Preprocessor Macros", ran the helloCordova > target, DLog can be outputted. > So here is my question: > Should we add "DEBUG=1" to iOS template project->"Build Settings"-> > "Preprocessor Macros" ->"Debug" ? -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (CB-5520) Should we add "DEBUG=1" to "Preprocessor Macros"->"Debug" ?
[ https://issues.apache.org/jira/browse/CB-5520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13933196#comment-13933196 ] Alan Rahlf commented on CB-5520: I'm also running into this issue. I found that this was broken + fixed in an older version (https://issues.apache.org/jira/browse/CB-253) as well. > Should we add "DEBUG=1" to "Preprocessor Macros"->"Debug" ? > --- > > Key: CB-5520 > URL: https://issues.apache.org/jira/browse/CB-5520 > Project: Apache Cordova > Issue Type: Wish > Components: iOS >Affects Versions: 3.2.0 >Reporter: glmnbeyond >Priority: Minor > > I created a helloCordova project via Cordova CLI, and added some debug info > to native code: > DLog('This is a debug info'); > But the debug info is never outputted.If I use ALog, the info can be > outputted, so I think it probably has something to do with the "DEBUG" macro. > After I added "DEBUG=1" to "Preprocessor Macros", ran the helloCordova > target, DLog can be outputted. > So here is my question: > Should we add "DEBUG=1" to iOS template project->"Build Settings"-> > "Preprocessor Macros" ->"Debug" ? -- This message was sent by Atlassian JIRA (v6.2#6252)