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

Spencer commented on CB-5989:
-----------------------------

I have the same issue and I actually found the root cause of the issue.

The problem resides on the fact that the target attribute in the config-file 
path is "*-Info.plist".

According to 3.5.0 cordova doc 
(http://cordova.apache.org/docs/en/3.5.0/plugin_ref_spec.md.html#Plugin%20Specification)
target:

The file to be modified, and the path relative to the root of the Cordova 
project.

The target can include wildcard (*) elements. In this case, plugman recursively 
searches through the project directory structure and uses the FIRST match.


Consider a cordova project called "ApplePied", the issue will NOT exist as the 
file structure of the platform/ios will look like the following:

ApplePied-Info.plist <--- this file will get updated.
...
Plugins/com.starmicronics.printer/StarIO.framework/Resources/StarIOPort.Framework-Info.plist

----------------------------------------
For project named "ZZTop", the exist because the platform/ios structure look 
like the following:

Plugins/com.starmicronics.printer/StarIO.framework/Resources/StarIOPort.Framework-Info.plist
 <--- this file will get updated
...
ZZTop-Info.plist


I'm currently trying to craft the proper regex in the target to fix this 
problem.  

I think plugman will have to be smart enough not to update the -Info.plist of 
the platform/ios/$PROJECT_NAME/Plugins/*/Info-plist



> Properties defined in plugin.xml are not created in *-Info.plist
> ----------------------------------------------------------------
>
>                 Key: CB-5989
>                 URL: https://issues.apache.org/jira/browse/CB-5989
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI, Plugman
>    Affects Versions: 3.3.0
>         Environment: Mavericks 10.9.1; Xcode 5.0.2; Cordova 3.3.1-0.3.0
>            Reporter: Kelvin Dart
>              Labels: CLI, Plugin
>
> I have the following tag in my <platforms="ios"> tag, within plugin.xml:
> <config-file target="*-Info.plist" 
> parent="UISupportedExternalAccessoryProtocols">
>     <array>
>         <string>jp.star-m.starpro</string>
>     </array>
> </config-file>
> However, whenever I attempt to add in my plugin, this setting is not applied 
> to my project's plist file and I have to do it manually.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to