cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Ewald (JIRA)" <>
Subject [jira] [Created] (CB-6438) Characters breaking Xcode project file for plugin.xml compiler-flags
Date Fri, 11 Apr 2014 23:14:15 GMT
Chris Ewald created CB-6438:

             Summary: Characters breaking Xcode project file for plugin.xml  compiler-flags
                 Key: CB-6438
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS, OSX, Plugman
    Affects Versions: 3.4.0
            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".:
<source-file src="src/ios/CDVdbcamera.m" compiler-flags="-std=gnu99" />

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.

<source-file src="src/ios/CDVdbcamera.m" compiler-flags="lettersonly" />

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:

This message was sent by Atlassian JIRA

View raw message