Issue run meteor ios-device

I have an issue with Meteor version 2.16 the issue is when I run this command :slight_smile:
meteor run ios-device --settings settings/settings-local.json --mobile-server=https://test.com

how to solve this issue ??

Errors executing Cordova commands:

While adding the iOS platform to Cordova project:
TypeError: fs.cpSync is not a function
at updatePathWithStats (~/Documents/zain-master/clip mobile/.meteor/local/cordova-build/node_modules/cordova-common/src/FileUpdater.js:106:12)
at /Users/test/Documents/zain-master/clip mobile/.meteor/local/cordova-build/node_modules/cordova-common/src/FileUpdater.js:272:16
at Array.map ()
at Object.mergeAndUpdateDir (/Users/test/Documents/zain-master/clip mobile/.meteor/local/cordova-build/node_modules/cordova-common/src/FileUpdater.js:270:40)
at updateWww (/Users/test/Documents/zain-master/clip mobile/.meteor/local/cordova-build/node_modules/cordova-ios/lib/prepare.js:157:17)
at Api.module.exports.prepare (/Users/test/Documents/zain-master/clip mobile/.meteor/local/cordova-build/node_modules/cordova-ios/lib/prepare.js:50:12)

Hi @yazeedsam,

I found an answer using Perplexity AI. Unlike other services, this is fully connected and โ€œtalkingโ€ to internet for free.

Here is the answer https://www.perplexity.ai/search/explain-this-error-while-addin-ixxx9c9qTcWYhc4uAIpzjg and as I read through it, it seems to be the same problem discussed here:
Error building cordova project

The fastest help you can get in this forum is to help yourself first in ways such as:

  • search the forum using the search tools.
  • Ask AI (on meteor.com page, answers limited to Meteor Documentation)
  • ask a public and connected AI engine such as Perplexity (or others)

Thanks for your response! It worked on my end. :slight_smile: