LoginSignup
1
0

More than 1 year has passed since last update.

【RealmSwift】Widget対応後に「Missing required modules: 'Realm.Private', 'Realm'」というエラーが出たら

Posted at

概要

RealmSwiftを入れたアプリを開発中にWidget対応を行った際、

Missing required modules: 'Realm.Private', 'Realm'

というエラーが発生するようになった場合についての対策です。

方法

Widgetのために追加したTARGETからRealmへの参照がなされていないのが原因のようです。

Navigatorから開いているプロジェクトを選択し、出てきた画面の「TARGETS」から追加したウィジェットを選択します。
上のタブの 「Build Phases」 を選択し、 「Link Binary With Libraries」 を開いて+ボタンを押し、一覧からRealmとRealmSwiftを追加すればエラーが解消されます。

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