Cordova iOS Plugins fail after building, unless I remove platform and plugin JSON first

后端 未结 3 1974
情话喂你
情话喂你 2021-01-04 16:34

I have a Cordova 3.2.0 project, and I\'m testing using the XCode emulator and an iPhone 4S over USB.

When I execute the following, the app runs without error:

<
3条回答
  •  萌比男神i
    2021-01-04 17:05

    I seem to have resolved this by modifying the config.xml file that exists in the "www" subdirectory of the project.

    With a clean build from scratch, Cordova seems to generate the config.xml file under "platforms/ios" with the plugin feature tags (perhaps inferring their use from the presence of the plugin files themselves), but on rebuilding then those get lost.

    By having them explicitly defined in the www/config.xml path, the rebuilds work fine.

提交回复
热议问题