将Realm从Swift 4转换为Swift 3

问题描述 投票:1回答:1

我使用Realm Database进行iOS应用程序开发,我已经在Xcode 9中打开了我的项目。所以每个模块都自动转换为Swift 4.当我在Xcode 8.2中打开我的项目时,我正在使用的领域模块给了我一个警告I just want to continue my work in Xcode 8.2 itself.any solution?

ios swift3 realm swift4
1个回答
0
投票

使用xcode-select找到老版本的Xcode,

如果您使用的是Carthage,则需要将Cartfile更改为elder版本并运行carthage update以使用旧版本重新编译Realm框架。

如果您使用的是CocoaPods,则需要将Pod更改为Podfile中的Xcode兼容版本并再次运行pod install

© www.soinside.com 2019 - 2024. All rights reserved.