最終確認日
SwiftPMでRealmSwiftを導入する時にSwift package target 'Realm' is linked as a static library〜と出た場合
環境
- Xcode 26.3
- RealmSwift v10.54.6 (branch master 指定)
エラー内容
Swift package target ‘Realm’ is linked as a static library by プロジェクト名 and ‘Realm’, but cannot be built dynamically because there is a package product with the same name.
解決
Realm は Add to Target を None に設定する。
Embed & Sign にすることも忘れずに。
参考
数年前からこうなっていたらしい。他のプロジェクトでも使っているので初めて出会うエラーではなさそうだけど特にメモを残していなかったので、この機会にメモ。
公開日
更新日
