RealmSwift.framework
and Realm.framework
from 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.framework
in the “Framework Search Paths” section. bash "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/Realm.framework/strip-frameworks.sh"
This step is required to work around an App Store submission bug when archiving universal binaries.
pod repo update
to make CocoaPods aware of the latest available Realm versions.use_frameworks!
and 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
pod install
..xcworkspace
file generated by CocoaPods to work on your project!github "realm/realm-cocoa"
to your Cartfile.carthage update
.RealmSwift.framework
and Realm.framework
from the appropriate platform directory in Carthage/Build/
to the “Linked Frameworks and Libraries” section of your Xcode project’s “General” settings./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
This script works around an App Store submission bug triggered by universal binaries.