u_sho競プロぶろぐ

21歳。みゃーくぴとぅ。ゆる~く続けますたぶん。  デザイン変えました(2019/2/25)これでいきます

FSPathMakeRef ... failed with error -36.

Issue

I faced this error when I was going to open the Simulator(of Xcode) to run flutter.

FSPathMakeRef(/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app) failed with error -36.

Reason

I googled. So, I found a message.

One possible cause was the user's machine had two instances of Atom.app on it. (In this case, one was in the Downloads folder, the other in Applications. Delete one of them, try again.
https://gist.github.com/josh-works/ac68a974cb9e0d73d663ea6c8cf3e8d8#fspathmakeref-and-a-bunch-of-other-stuff

Maybe, the file path was collapsed when I execute `xcode-select --switch` command by flutter doctor's recommendation.

Resolve

Simple way is restarting your mac :p

日本語

シミュレータ起動しようとして

$ open -a Simulator

を実行したら下のようなエラーが出たけど再起動したら直りました()

FSPathMakeRef(/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app) failed with error -36.

flutter doctor に言われるがまま実行した `xcode-select --switch` でpathが変わったのが原因っぽいです。