LoginSignup
7
7

More than 5 years have passed since last update.

Mac OS XでCordovaを使ってiOSアプリを開発するとき、tmux上でシミュレータを起動させるとエラーになる。

Last updated at Posted at 2014-09-07

Mac OS XでCordovaを使ったハイブリッドアプリを開発するとき、Terminal.appでtmuxを起動させた上で

> cordova emulate ios

コマンドを使いiOSシミュレータを起動させると、こんなかんじのエラーになる↓

Error: /Users/hoge/Desktop/hello/platforms/ios/cordova/run: Command failed with exit code 1
    at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:743:16)
    at Process.ChildProcess._handle.onexit (child_process.js:810:5)

どうやらPasteboard周りのtmuxのバグのようで、pbcopyとpbpasteがtmuxでうまく動かないことに起因するエラーらしい。

Simulator session timed out" error · Issue #15 · phonegap/ios-sim

この問題を回避するためのラッパープログラムを開発している方がいるので、そちらを利用すれば問題なく起動することができる。

ChrisJohnsen/tmux-MacOSX-pasteboard · GitHub

常にtmuxを使っているから、tmuxに起因することだなんて気付かなかった。まさかこんな罠があるとはね...

7
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
7