0
0

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 1 year has passed since last update.

Xcode dyld: Library not loaded: /usr/lib/swift/libswiftWebKit.dylib Error

Posted at

実機iPhoneでのビルドエラーについて

アプリ開発中に、特定のiOSバージョンでのみで発生するビルドエラーについて解決策を共有します。

発生したエラー

実機iPhoneでアプリをビルドした際に以下のエラーが発生しました。

dyld: Library not loaded: /usr/lib/swift/libswiftWebKit.dylib
Referenced from: /private/var/containers/Bundle/Application/E769A0A2-3190-46BA-96D9-C09B62826EA3/Runner.app/Frameworks/flutter_inappwebview.framework/flutter_inappwebview
Reason: image not found
(lldb)

上記のビルドエラーが発生した、端末とバージョンは以下になります。

iPhone: 11
iOS: 13.6.1

・ 調査

Stack Overflowにて似た症状の報告を発見。

そこではiOS 13.1.2で同様の問題が発生していました。
さまざまな試行錯誤が報告されていましたが、根本的な解決には至っていない様子でした。
また、iOS 14ではこの問題が発生しないことも分かりました。

・ 解決策

最終的に、iOS 17を搭載した実機でビルドしたところ、エラーが解消されました。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?