我是第一次使用ios-sim
命令直接在模拟器中运行iOS应用程序文件。
我已经在this链接之后安装了ios-sim
。但是,当我触发以下命令以在模拟器中运行该应用程序时:ios-sim launch /Users/path/Desktop/myApp.es.app
模拟器启动,出现以下错误,然后模拟器停止:
Session could not be started: Error Domain=LaunchServicesError Code=0
"The operation couldn’t be completed. (LaunchServicesError error 0.)"
UserInfo=0x7fcd59506e90 {Error=ExecutableTwiddleFailed,
ErrorDescription=Failed to chmod
file:///Users/path/Library/Developer/CoreSimulator/Devices/88D95C8E-DE0E-4687-9FA5-
990A45E3BBB4/data/Library/Caches/com.apple.containermanagerd/Temp/Bundle/Application/B025F33F-F9F3-4273-9D72-
D824FCD2E508/myApp.es.app/myApp.es : No such file or directory}
我哪里错了?我该如何解决?
最佳答案
我只是遇到了这个问题。您可以使用Finder检查文件是否存在:
就我而言,我使用的是Cordova来构建我的项目。然后,当我应该使用位于platform / ios / build / emulator /中的构建时,尝试使用ios-sim运行位于platform / ios / build / Release-iphonesimulator下的构建。
关于ios - ios-sim launch Error = ExecutableTwiddleFailed,ErrorDescription =无法chmod文件-没有这样的文件或目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30183390/