Realm.frameworkfrom the appropriate Swift-versioned directory for your project in
ios/, osx/, tvos/or
watchos/directory to the “Embedded Binaries” section. Make sure Copy items if needed is selected (except if using Realm on multiple platforms in your project) and click Finish.
RealmSwift.frameworkin the “Framework Search Paths” section.
This step is required to work around an App Store submission bug when archiving universal binaries.
pod repo updateto make CocoaPods aware of the latest available Realm versions.
pod 'RealmSwift'to your main and test targets.
post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['SWIFT_VERSION'] = '3.0' end end end
.xcworkspacefile generated by CocoaPods to work on your project!
github "realm/realm-cocoa"to your Cartfile.
Realm.frameworkfrom the appropriate platform directory in
Carthage/Build/to the “Linked Frameworks and Libraries” section of your Xcode project’s “General” settings.
and add the paths to the frameworks you want to use under “Input Files”, e.g.:
This script works around an App Store submission bug triggered by universal binaries.