You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Gorkem ERCAN (JIRA)" <ji...@apache.org> on 2014/10/21 17:38:34 UTC

[jira] [Commented] (CB-6438) Characters breaking Xcode project file for plugin.xml compiler-flags

    [ https://issues.apache.org/jira/browse/CB-6438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14178530#comment-14178530 ] 

Gorkem ERCAN commented on CB-6438:
----------------------------------

node-xcode is missing the quotes when persisting the object. I think needs to be fixed there. [~anis] may have a better idea of node-code

> Characters breaking Xcode project file for plugin.xml  compiler-flags
> ---------------------------------------------------------------------
>
>                 Key: CB-6438
>                 URL: https://issues.apache.org/jira/browse/CB-6438
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugman
>    Affects Versions: 3.4.0
>         Environment: iOS
>            Reporter: Chris Ewald
>
> Extend compiler-flags to support more characters
> In plugin.xml:
> I would like to set the compiler-flags value to "-std=gnu99".:
> {code:xml}
> <source-file src="src/ios/CDVdbcamera.m" compiler-flags="-std=gnu99" />
> {code}
> Upon adding this plugin to a fresh cordova project using the cli `cordova plugin add myplugin`, the Xcode project file breaks and will not open (Xcode 5.1).
> I found that compiler-flag value with just A-Za-z characters works and I can verify the value flowed through to the Xcode project build settings page.
> {code:xml}
> <source-file src="src/ios/CDVdbcamera.m" compiler-flags="lettersonly" />
> {code}
> After some inspection, I found that the 'space' character and the '=' character will cause the Xcode project file to become inoperable.
> Add support for non-letter characters in the compiler-flags attribute?
> I'm using the standard apache cordova 3.4.1 project template . This has the default project build style setting to the c99 setting which does not work for some source files I am compiling in this plugin. I can fix this all by setting the cordova project style setting to gnu99. I thought to use the compiler-flags setting to fix this so this plugin would remain portable across projects.
> Original Feature here:
> https://issues.apache.org/jira/browse/CB-3967



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org