Migrating from v1.0.x to v1.1.x - mayant15/cordova-hot-code-push GitHub Wiki
In version 1.0.x local development mode was integrated in the plugin. Starting from v1.1.x it is moved to another plugin as an add-on. Since v1.0 of hot code push plugin does some tweaks to the iOS project file to activate Swift support - after updating to v1.1.x you need to disable it.
The easiest way is to reinstall iOS platform:
cordova platform remove ios
cordova platform add ios
When platform is added - all project's plugins will be installed automatically.
Harder approach - remove Swift support manually. For that you need to open your iOS project in Xcode, and then do the following:
- In the
Build Settings
setEmbedded Content Contains Swift Code
toNO
. - In the project files find
<YOUR_PROJECT_NAME>-Prefix.pch
file, open it and remove#import <YOUR_PROJECT_NAME>-Swift.h
. For example:
#ifdef __OBJC__
#import "TestProject-Swift.h"
#endif
- Build the project to check, if everything is fine.