我正在尝试跳入 vue native 并开发一个 ios 兼容的应用程序。我安装了 expo 并浏览了安装指南等,但我运行 npm start 并获得 QR 码,我尝试选择该i
选项并收到此错误:
Opening on iOS...
(node:1257057) UnhandledPromiseRejectionWarning: Error: spawn osascript ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
(node:1257057) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 13)
我猜这是因为我需要 xcode 来运行 ios 模拟器……有没有办法解决这个问题?即使我使用的是 vue native 或 react native 之类的东西,我是否必须出去购买 mac 才能为 IOS 开发?
谢谢。