1
OSX 10.11, Swift 2.2, Realm 0.99
我已经使用迦太基安装了领域。斯威夫特领域:创造领域的实例抛出NSException
let realm = try! Realm()
抛出NSException
:
libc++abi.dylib
:与类型NSException
该项目编译,生成并运行,直到境界实例的未捕获的异常终止。 这两个Realm框架文件都在项目的嵌入式二进制文件和嵌入式框架中。 ,它们位于Carthage/Build/IOS文件夹中。 它们也出现在构建阶段的库链接二进制文件中。
帮助非常感谢。
境界安装:
Install Carthage 0.9.2 or later.
Add github "realm/realm-cocoa" to your Cartfile.
Run carthage update.
Drag RealmSwift.framework and Realm.framework from the appropriate platform directory in Carthage/Build/ to the “Embedded Binaries” section of your Xcode project’s “General” settings.
iOS/watchOS/tvOS: On your application targets’ “Build Phases” settings tab, click the “+” icon and choose “New Run Script Phase”.
Create a Run Script with the following contents:
/usr/local/bin/carthage copy-frameworks
and add the paths to the frameworks you want to use under “Input Files”, e.g.:
$(SRCROOT)/Carthage/Build/iOS/Realm.framework
$(SRCROOT)/Carthage/Build/iOS/RealmSwift.framework*