1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【Swift】dyld: Library not loaded: /usr/lib/libauto.dylib で古いSimulatorで実行出来ない

Posted at

概要

dyld: Library not loaded: /usr/lib/libauto.dylib
Referenced from: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation 
Reason: no suitable image found. Did find: /usr/lib/libauto.dylib: mach-o, but not built for iOS simulator

と言うエラーが出てきて古いSimulatorで実行出来ないと言うものだ。

環境

Xcode: 11.3
対象Simulator: iOS Simulator6S
対象OS: 9.3

解決方法

sudo mkdir '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift'

このコマンドを叩くだけ。

Simulatorはruntimeと言うルートを元に動作しているが、
そもそものruntimeがないため起こっているみたい。
だから、強制的に作ってやろうよみたいな感じですかね。

誰かのお役に立てば。

1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?