私のイオンプロジェクトは、Cordovaビルド/実行コマンドで突然応答しません。
Macbooks-MBP:upost Kira$ cordova run ios
Error: variables.forEach is not a function
Macbooks-MBP:upost Kira$ cordova run android
Error: variables.forEach is not a function
Macbooks-MBP:upost Kira$ cordova build ios
Error: variables.forEach is not a function
Macbooks-MBP:upost Kira$ cordova build android
Error: variables.forEach is not a function
Macbooks-MBP:upost Kira$
ここには Cordova -d build ios
応答
Macbooks-MBP:upost Kira$ cordova -d build ios
No scripts found for hook "before_build".
No scripts found for hook "before_prepare".
Checking config.xml and package.json for saved platforms that haven"t been added to the project
Config.xml and package.json platforms are the same. No pkg.json modification.
Package.json and config.xml platforms are different. Updating config.xml with most current list of platforms.
PlatformApi successfully found for platform ios
Checking config.xml for saved plugins that haven"t been added to the project
Error: variables.forEach is not a function
私が試したステップ:
- 別の新しいプロジェクトのクローンを作成する
- すべてのノード、npm、Cordova、ionicを再インストールします
- サンプルプロジェクトで試してみてください、それは動作します
- 他の人からプロジェクトをコピーします。
- iOSとAndroidの両方のCordovaプラットフォームを削除/追加します
コンポーネントバージョン:
- コルドバv7.0.1
- イオンv3.5.0
- ノードv6.11.1
- npm v3.10.10
回答:
回答№1は0除去する ios-sim
下 platforms/cordova/node_modules/
コマンドを入力します npm i -g install ios-sim@latest
また、 npm i -g install ios-deploy@latest
次に Cordova build ios
または Cordova run ios
働くでしょう