pod 'ObjectBox'
to the Podfile
in your Xcode project directory.pod install --repo-update
Pods/ObjectBox/setup.rb
.xcworkspace
in Xcode.dependencies
section:github "objectbox/objectbox-swift"
to your Cartfilecarthage update
to download ObjectBox.Carthage/Build/Mac/ObjectBox.framework
or Carthage/Build/iOS/ObjectBox.framework
to the appropriate targets of your projectgem install xcodeproj
and then run the ObjectBox setup script from Carthage/Build/Mac/OBXCodeGen.framework/setup.rb
in your project directory.'.../ObjectBox.framework/ObjectBox' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target.
sudo gem install cocoapods
in Terminal. If you don't have a Podfile
yet, cd
into your Xcode project folder and create one using pod init
as usual. Now find the # Pods for MyTargetName
comment for each target and add the following below it:Podfile
that will download the newest release of ObjectBox to your Pods
directory and install the pod in your Xcode workspace.setup.rb
will set up the ObjectBox preprocessor in your project for every target with an executable.pod install
fails)? Try updating CocoaPods related things using:brew install carthage
. If you do not have a Cartfile yet, create a text file named just Cartfile
(no .txt
suffix) in your project's folder and write the following text into itcd
into the folder containing your project and runsetup.rb
will set up the ObjectBox preprocessor in your project for every target with an executable. The gem install xcodeproj
line installs a helper tool needed by the setup script.Skipped installing objectbox-swift.framework binary due to the error:
"Incompatible Swift version - framework was built with 5.1.2 (swiftlang-1100.0.278 clang-1100.0.33.9) and the local version is 5.1 (swiftlang-1100.0.270.13 clang-1100.0.33.7)."
Carthage/Build/iOS/ObjectBox.framework
or Carthage/Build/Mac/ObjectBox.framework
(depending on whether your project is for iOS or macOS) to the "Frameworks, Libraries and Embedded Content" list of the "General" tab of your target's settings. Make sure you choose "Embed and Sign" to its right.OBXCodeGen.framework
that you'll also see in Carthage/Build
. It is not intended to be linked into your application and only exists to hold the code generator and setup script so you have them while you build.ld: warning: Could not find or use auto-linked framework 'ObjectBox'
Undefined symbols for architecture x86_64: "type metadata accessor for ObjectBox.ToManyProperty" ...