You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Chris Ewald (JIRA)" <ji...@apache.org> on 2014/04/12 01:14:15 UTC
[jira] [Created] (CB-6438) Characters breaking Xcode project file
for plugin.xml compiler-flags
Chris Ewald created CB-6438:
-------------------------------
Summary: 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: 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".:
{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.2#6252)