Xcode更新至v12.3后MOJi辞書编译报错

报错信息:

Building for iOS, but the linked and embedded framework ‘Realm.framework’ was built for iOS + iOS Simulator.

可以尝试使用以下方法解决:

选择Targets(MOJiDict)-Build Settings-Validate Workspace 选择YES,然后重新编译运行成功。