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

后端 未结 3 1975
情话喂你
情话喂你 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条回答
  •  一向
    一向 (楼主)
    2021-01-04 17:25

    Very straightforward solution that worked for me: downgrade Cordova CLI version to earliest one that doesn't erase ios.json during build.

    My case: CLI version was 5.4.1, upgraded to 6.3.1 - fail. Downgraded to 6.2.0 - OK

    One downside is that you need to test CLI versions manually.

提交回复
热议问题