cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wicky Hu (JIRA)" <>
Subject [jira] [Commented] (CB-5568) missing plugin features at config.xml on iOS
Date Thu, 05 Dec 2013 02:03:36 GMT


Wicky Hu commented on CB-5568:

I have same issue.

Environment: Xcode 5.0.1, Cordova 3.2.0-0.3.0

I have a cordova application with android platform, which is working ok.
Then I did below steps with CLI:
1) plugin add ios
2) prepare ios, here config.xml is generated properly, WITH plugin feature lines added
3) compile ios, here config.xml is generated again, WITHOUT plugin feature lines
4) all plugins are not working 

> missing plugin features at config.xml on iOS
> --------------------------------------------
>                 Key: CB-5568
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI, iOS, Plugins
>    Affects Versions: 3.2.0
>         Environment: - Mac OS X 10.8.5
> - XCode 5.0.2
>            Reporter: Orçun Topdağı
>            Priority: Blocker
> iOS config.xml has missing plugin related entries when cordova prepare is run on OS X.
> Here is the current situation as it gets interesting towards last steps:
> Project has two platforms, iOS and Android.
> I have added dialogs and vibration plugins using CLI.
> - I remove iOS platform and add it again using CLI, iOS config.xml has features added
back correctly.
> - I run cordova prepare now, everything is still working.
> - I run cordova emulate, emulator runs and plugins are working.
> - I run cordova prepare again (no changes what so ever) features are *removed* from iOS
config.xml once again.
> - I have tested exiting emulator before running prepare again.
> - I have tested adding and removing several other plugins before running emulator and
everything works until running cordova emulate.
> Looking at file changes, only difference is at pbxproj which has different unique identifiers
for removed and added files for plugin implementations.
> - Nothing works until I repeat removing and adding iOS platform.
> - I have tested removing and adding plugins after running emulator. BTW, Android config.xml
is correctly modified during these changes.
> - If I run cordova prepare on Windows, iOS config.xml is again corrected which is good
but not very useful.
> Background info:
> - installed cordova 3.1.0 on Windows,
> - created the project on Windows
> - added android platform on Windows
> - added above plugins on  Windows using CLI 3.1.0
> - updated cordova to 3.2.0 on Windows
> - updated project on Windows
> - installed cordova 3.2.0 on OSX
> - added iOS platform on OSX
> - i keep plugins and platforms directories under source control as I intend to make changes,
so adding and removing platforms before each build is not an option.

This message was sent by Atlassian JIRA

View raw message