Coder Social home page Coder Social logo

objectbox / objectbox-swift Goto Github PK

View Code? Open in Web Editor NEW
416.0 22.0 31.0 1.1 MB

Swift database - fast, simple and lightweight (iOS, macOS)

Home Page: https://swift.objectbox.io

License: Apache License 2.0

Swift 81.49% Ruby 1.23% Makefile 0.18% Shell 2.04% Objective-C 0.53% Objective-C++ 0.13% C 12.54% C++ 0.69% JavaScript 0.08% SCSS 0.71% Mustache 0.37%
ios database edge embedded mobile nosql swift local offline-first storage sustainable sync

objectbox-swift's People

Contributors

dependabot[bot] avatar greenrobot avatar greenrobot-team avatar ivahnenkoanna avatar obx-vivien avatar uli-objectbox avatar vahid1919 avatar vaind avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

objectbox-swift's Issues

Link error with Xcode 12.3

The following error is generated when building ObjectBox projects with Xcode 12.3. I do not see this error when building with previous releases of Xcode.

error: Building for iOS, but the linked and embedded framework 'ObjectBox.framework' was built for iOS + iOS Simulator. …

Basic info:

  • ObjectBox version - 1.4.1 - Manual setup, no CocoaPods or Carthage
  • Reproducibility - Always in Xcode 12.3, never in previous releases
  • Device: iPad Pro 12.9 3rd Gen, x86 Simulator
  • OS: iOS 14.3, macOS 11.1

Steps to reproduce the behavior:

  1. Build project with Xcode 12.2
  2. Note success
  3. Build project with Xcode 12.3
  4. Note error

Expected behavior:
Expect successful build (link) in Xcode 12.3 as with previous Xcode releases.

Logs, stack traces:

Showing All Messages

Prepare build
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Using build description from memory

Build target … with configuration Debug
error: Building for iOS, but the linked and embedded framework 'ObjectBox.framework' was built for iOS + iOS Simulator.…

Build failed    12/15/20, 8:51 AM    0.1 seconds

Additional context:

  • I have reinstalled Xcode 12.2 under macOS 11.1 and confirmed that my project builds as expected. This appears to be specific to Xcode 12.3.
  • Note that I am NOT using either CocoaPods or Carthage. This was a 'manual' setup of ObjectBox.

Inability to setParameter or ordered by Id field

This is pretty coming scenario to execute queries on Id field

// objectbox: entity
class MyEntity {
    var id: Id = 0
//more fields
}

let box: Box<MyEntity> = ...
let query = box.query {
     MyEntity.id.isEquals(to: 0)
}.ordered(by: MyEntity.id) --> COMPILATION ERROR here
.build()

query.setParameter(MyEntity.id, 0) --> COMPILATION ERROR here

Example(s) won't work

I use ObjectBox in Java and it worked like a charm. Swift doesn't work at all...

This is the first issue: return try Store(directoryPath: directory.path).
I get the following error: Missing argument for parameter 'model'.

I can't find anything about this on the internet or in the docs. So what do I have to do there? And please update your examples. I'm using the latest versions of everything.

After update from 0.8.0 to 0.9 Storage error code 78

After upgrade from 0.8.0 to 0.9 and run simulator ios well but in real iphone.

2019-08-12 15:30:27 /Users/jrjohn/Documents/projects/tester/mvvm/mvvm/dao/impl/ObjectBoxDatabase.swift:19 Info: ObjectBoxDatabase init.../var/mobile/Containers/Data/Application/76315A46-D295-4BF4-B95B-EA5A239CAC0A/Documents
001-07:33:37.8837 [ERROR] Storage error code 78

extension ObjectBox.Store {
/// A store with a fully configured model. Created by the code generator with your model's metadata in place.
///
/// - Parameters:
/// - directoryPath: Directory path to store database files in.
/// - maxDbSizeInKByte: Limit of on-disk space for the database files. Default is 1024 * 1024 (1 GiB).
/// - fileMode: UNIX-style bit mask used for the database files; default is 0o755.
/// - maxReaders: Maximum amount of concurrent readers, tailored to your use case. Default is 0 (unlimited).
internal convenience init(directoryPath: String, maxDbSizeInKByte: UInt64 = 1024 * 1024, fileMode: UInt32 = 0o755, maxReaders: UInt32 = 0) throws {
try self.init( <=== Thread 1: signal SIGSYS . hang
model: try cModel(),
directory: directoryPath,
maxDbSizeInKByte: maxDbSizeInKByte,
fileMode: fileMode,
maxReaders: maxReaders)
}
}

Can't compile project with version 0.6.0

Issue Basics

App can't compile after upgradin ObjectBox version to 0.6.0

  • ObjectBox version (are using the latest version?): 0.6.0
  • Reproducibility: occurs always

Reproducing the bug

Description

I have just update to version 0.6.0 and it doesn't compile the project.

Error:Cannot find Sourcery in the expected location at '/Users/username/Developer/Xcode Projects/MyProjectName/Pods/Sourcery/bin/sourcery'

And if I add Sourcery to my podsfile it shows another error:

Error:'/Users/username/Developer/Xcode Projects/MyProjectName/Pods/ObjectBox/templates' does not exist or is not readable.

Tree structures aren't automatically persisted when using custom ids

Describe the bug
I have a basic model hierarchy built up of ToMany & ToOne relations:

  • Favourites with ToMany<Product>
    • Product with 3 different ToOne<ProductMetaData>
      • ProductMetaData no further relations

The Favourites object uses ObjectBox auto id, but the Product and ProductMetaData come from a remote database so I am manually assigning the Id property using:

objectbox: id = { "assignable": true }

According to this documentation you don't have to manually add the child objects, the tree will automatically be put:

You can persist whole trees of object relations at once: If the customer object does not yet exist in the database, the ToOne will put() it. If it already exists, the ToOne will only create the relation (but not put() it).

This doesn't appear to be happening with my structure because I am using manually assigned Ids (is this by design?). The tree does get populated if I use the auto id, but then I quickly end up with duplicate objects in the local store each time new data is fetched from the remote database. I can put a unique constraint on the database id & use ObjectBox auto id, but then I run into this long running issue.

Basic info:

  • ObjectBox version 1.4.1
  • Reproducibility: always
  • Device: iPhone X
  • OS: iOS 14.3

To Reproduce

  1. Define an object structure similar to the one described above
  2. Create a Favourites object and assign it a list of Product (none of which has been put into the store so far)
  3. objectStore.box(for: Favourites.self).put(myFavouritesInstance)
  4. The Favourites object is stored, but none of its child relations are

Expected behavior
Based on the documentation I would expend the child tree to be auto populated.

Update a record cause duplicate of data

// objectbox: entity
struct Author {
    let id: Id
    let name: String
    let age: Int
}

let exampleEntityBox = store.box(for: Author.self)
var exampleEntity = Author(id: 0, name: "Nnedi Okorafor", age: 45)

exampleEntity.id = try exampleEntityBox.put(exampleEntity)

// update record
exampleEntity.age = 50
try exampleEntityBox.put(exampleEntity)


exampleEntityBox.subscribe { records, _ in
      //--> duplicate records
}
Environment:
Xcode 11 GM seed 2
ObjectBox: 1.0.0-rc.10

Revise constant names

We have some constants like CASE_SENSITIVE that should really be caseSensitive. I'm working on a rework of generate_ObjectBoxC_header.rb that should fix these.

Make PropertyQuery consider the Query order

Version : v1.3.1

Description:
When I use the PropertyQuery method to query, the sorting is incorrect

// objectbox: entity
final class Item {
    var id: Id = 0
    var data: Int64 = 0
    var created: Int64 = 0
}

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view.
        let store = try! createStore()
        let box: Box<Item> = store.box()
        putData(box: box)
        let build = try! box.query().ordered(by: Item.created).build()
        let values = try! build.property(Item.data).find()
        let times = try! build.property(Item.created).find()
        
        print(values)
        print(times)
        
    }
    
    private func putData(box: Box<Item>) {
        let value: [Int64] = [64087, 56654, 427, 95156, 75358]
        let times: [Int64] = [1596884723268, 1596884598790, 1596883589545, 1596880357258, 1596878457071]
        for i in 0..<value.count {
            let item = Item()
            item.created = times[i]
            item.data = value[i]
            try! box.put(item)
        }
    }
}

private func createStore() throws -> Store {
    let directory = try FileManager.default.url(
        for: .applicationSupportDirectory,
        in: .userDomainMask,
        appropriateFor: nil,
        create: true
    ).appendingPathComponent("Test")
    try? FileManager.default.createDirectory(at: directory, withIntermediateDirectories: false, attributes: nil)
    return try Store(directoryPath: directory.path)
}

Output:

[64087, 56654, 427, 95156, 75358]

[1596884723268, 1596884598790, 1596883589545, 1596880357258, 1596878457071]

Exception updating ToMany relations

I'm seeing an exception when updating ToMany relationships. I have replicated it in the following trivial example.

The exception occurs somewhat randomly after several iterations but once it occurs it appears the database is in a bad state.

class Teacher: Entity {
    var id: Id = 0
    // objectbox: backlink = "teachers"
    var students: ToMany<Student> = nil
}

class Student: Entity {
    var id: Id = 0
    var teachers: ToMany<Teacher> = nil
}

func test() {
        do {
            //Boilerplate… create store and open box
            let databaseName = "test"
            let appSupport = try FileManager.default.url(for: .applicationSupportDirectory,
                                                         in: .userDomainMask,
                                                         appropriateFor: nil,
                                                         create: true)
                .appendingPathComponent(Bundle.main.bundleIdentifier!)
            let directory = appSupport.appendingPathComponent(databaseName)
            try FileManager.default.createDirectory(at: directory,
                                                    withIntermediateDirectories: true,
                                                    attributes: nil)
            let store = try Store(directoryPath: directory.path)
            let teacherBox = store.box(for: Teacher.self)
            let studentBox = store.box(for: Student.self)
            
            //populate db if necessary
            if try teacherBox.count() == 0 || studentBox.count() == 0 {
                print(Store.versionFullInfo)
                
                print("Creating teachers")
                let teacher1 = Teacher()
                let teacher2 = Teacher()
                
                print("Creating students")
                let student1 = Student()
                let student2 = Student()
                
                print("Putting teachers and students")
                try teacherBox.put([teacher1, teacher2])
                try studentBox.put([student1, student2])
                
                print("Setting teachers on students")
                student1.teachers.append(teacher1)
                student1.teachers.append(teacher2)
                
                student2.teachers.append(teacher2)
                
                print("Applying teachers on students")
                try student1.teachers.applyToDb()
                try student2.teachers.applyToDb()
            }
            
            //Update student2 with random teacher
            guard let student2 = try studentBox.get(2), let newTeacher = try teacherBox.all().randomElement() else {
                print("Failed to get student/teacher")
                return
            }
            
            print("Teachers on student2 was: \(student2.teachers.map {$0.id}), replacing with: [\(newTeacher.id)]")
            
            student2.teachers.replace([newTeacher])
            try student2.teachers.applyToDb()
        } catch {
            print("===> Exception Caught:", error)
        }
    }

Here is sample output from one of my test runs. Note that it fails on iteration 3 in this particular test. The database appears to be in a bad state once the issue occurs.


Running test: 1
ObjectBox Swift 1.3.0 (lib: 0.8.2, core: 2.6.0-2020-04-30 (32 bit mode))
Creating teachers
Creating students
Putting teachers and students
Setting teachers on students
Applying teachers on students
Teachers on student2 was: [2], replacing with: [1]

Running test: 2
Teachers on student2 was: [1], replacing with: [2]

Running test: 3
Teachers on student2 was: [1, 2], replacing with: [2]
===> Exception Caught: notFound(message: "")

Running test: 4
Teachers on student2 was: [1, 2], replacing with: [1]
===> Exception Caught: notFound(message: "")

Running test: 5
Teachers on student2 was: [1, 2], replacing with: [2]
===> Exception Caught: notFound(message: "")

Running test: 6
Teachers on student2 was: [1, 2], replacing with: [2]
===> Exception Caught: notFound(message: "")

Running test: 7
Teachers on student2 was: [1, 2], replacing with: [1]
===> Exception Caught: notFound(message: "")

Running test: 8
Teachers on student2 was: [1, 2], replacing with: [2]
===> Exception Caught: notFound(message: "")

Running test: 9
Teachers on student2 was: [1, 2], replacing with: [2]
===> Exception Caught: notFound(message: "")

Running test: 10
Teachers on student2 was: [1, 2], replacing with: [1]
===> Exception Caught: notFound(message: "")

Demo project not compiling

Hi,

This issue was resolved because the following output was generated.

Robs-iMac:Example robertnash$ pod install
Analyzing dependencies
Downloading dependencies
Installing ObjectBox (0.5.2)
Installing Sourcery (0.15.0)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There is 1 dependency from the Podfile and 2 total pods installed.

However, the project doesn't run.

screenshot 2018-11-25 at 09 01 13

screenshot 2018-11-25 at 10 26 33

error: /Users/robertnash/Downloads/objectbox-swift-master/Example/Pods/Pods/Target Support Files/Pods-NotesExample-iOS/Pods-NotesExample-iOS.debug.xcconfig: unable to open file (in target "NotesExample-iOS" in project "NotesExample") (in target 'NotesExample-iOS')

I have performed a clean build and I have purged the Xcode build folder but rebuilding produces the same error.

Side-note: I don't have a great relationship with the Cocapods team.

Setup script fails for project with framework target

I have a single workspace with multiple nested projects. One of those projects is just a framework that is embedded in multiple other subprojects. The structure looks something like this:

/Root
  /Framework
  /Project1
  /Project2
  /Pods

When I try to run the generator from the Framework subdirectory I get no generated files:

../Pods/ObjectBox/setup.rb
 ObjectBox Project Setup

🔸 Looking for project files in the current directory ...
🔸 Found a single project.
🔸 Using "Root/Framework/Framework.xcodeproj"

 🔸 No changes made to project.

 💬 Please remember to use the .xcworkspace CocoaPods created from now on instead of your project.

When I try to run it from the root directory I see this:

./Pods/ObjectBox/setup.rb ./Framework Framework
 ObjectBox Project Setup

🔸 Using "./Framework"
Traceback (most recent call last):
	3: from ./Pods/ObjectBox/setup.rb:191:in `<main>'
	2: from /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.15.0/lib/xcodeproj/project.rb:112:in `open'
	1: from /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.15.0/lib/xcodeproj/project.rb:210:in `initialize_from_file'
/Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.15.0/lib/xcodeproj/plist.rb:17:in `read_from_path': [!] The plist file at path `/Root/Framework/project.pbxproj` doesn't exist. (Xcodeproj::Informative)

Is this configuration supported?

Example Project Cocoapods

Just tried running Pod Install on Example folder and got this. Not sure if I should raise it with Cocoapods or you guys ?

Robs-iMac:~ robertnash$ cd ~/Downloads/objectbox-swift-master/Example/
Robs-iMac:Example robertnash$ pod install
Analyzing dependencies

――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

### Command

/usr/local/bin/pod install

### Report

* What did you do?

* What did you expect to happen?

* What happened instead?

### Stack

   CocoaPods : 1.4.0
        Ruby : ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin17]
    RubyGems : 2.7.6
        Host : Mac OS X 10.14 (18A389)
       Xcode : 10.1 (10B61)
         Git : git version 2.17.2 (Apple Git-113)
Ruby lib dir : /usr/local/Cellar/ruby/2.5.1/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 8e1637b9541bf0d3c0f4cbc7db8dcada9fa95064

### Plugins

cocoapods-deintegrate : 1.0.2
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.0.0
cocoapods-trunk       : 1.3.0
cocoapods-try         : 1.1.0

### Podfile

use_frameworks!

target 'NotesExample-iOS' do
  platform :ios, :deployment_target => '11.0'
  pod 'ObjectBox'
end

target 'NotesExample-macOS' do
  platform :osx, :deployment_target => '10.10'
  pod 'ObjectBox'
end

### Error

RuntimeError - [!] Xcodeproj doesn't know about the following attributes {"inputFileListPaths"=>[], "outputFileListPaths"=>[]} for the 'PBXShellScriptBuildPhase' isa.
If this attribute was generated by Xcode please file an issue: https://github.com/CocoaPods/Xcodeproj/issues/new
/usr/local/lib/ruby/gems/2.5.0/gems/xcodeproj-1.5.6/lib/xcodeproj/project/object.rb:321:in `configure_with_plist'
/usr/local/lib/ruby/gems/2.5.0/gems/xcodeproj-1.5.6/lib/xcodeproj/project.rb:262:in `new_from_plist'
/usr/local/lib/ruby/gems/2.5.0/gems/xcodeproj-1.5.6/lib/xcodeproj/project/object.rb:350:in `object_with_uuid'
/usr/local/lib/ruby/gems/2.5.0/gems/xcodeproj-1.5.6/lib/xcodeproj/project/object.rb:300:in `block (2 levels) in configure_with_plist'
/usr/local/lib/ruby/gems/2.5.0/gems/xcodeproj-1.5.6/lib/xcodeproj/project/object.rb:299:in `each'
/usr/local/lib/ruby/gems/2.5.0/gems/xcodeproj-1.5.6/lib/xcodeproj/project/object.rb:299:in `block in configure_with_plist'
/usr/local/lib/ruby/gems/2.5.0/gems/xcodeproj-1.5.6/lib/xcodeproj/project/object.rb:296:in `each'
/usr/local/lib/ruby/gems/2.5.0/gems/xcodeproj-1.5.6/lib/xcodeproj/project/object.rb:296:in `configure_with_plist'
/usr/local/lib/ruby/gems/2.5.0/gems/xcodeproj-1.5.6/lib/xcodeproj/project.rb:262:in `new_from_plist'
/usr/local/lib/ruby/gems/2.5.0/gems/xcodeproj-1.5.6/lib/xcodeproj/project/object.rb:350:in `object_with_uuid'
/usr/local/lib/ruby/gems/2.5.0/gems/xcodeproj-1.5.6/lib/xcodeproj/project/object.rb:300:in `block (2 levels) in configure_with_plist'
/usr/local/lib/ruby/gems/2.5.0/gems/xcodeproj-1.5.6/lib/xcodeproj/project/object.rb:299:in `each'
/usr/local/lib/ruby/gems/2.5.0/gems/xcodeproj-1.5.6/lib/xcodeproj/project/object.rb:299:in `block in configure_with_plist'
/usr/local/lib/ruby/gems/2.5.0/gems/xcodeproj-1.5.6/lib/xcodeproj/project/object.rb:296:in `each'
/usr/local/lib/ruby/gems/2.5.0/gems/xcodeproj-1.5.6/lib/xcodeproj/project/object.rb:296:in `configure_with_plist'
/usr/local/lib/ruby/gems/2.5.0/gems/xcodeproj-1.5.6/lib/xcodeproj/project.rb:262:in `new_from_plist'
/usr/local/lib/ruby/gems/2.5.0/gems/xcodeproj-1.5.6/lib/xcodeproj/project.rb:203:in `initialize_from_file'
/usr/local/lib/ruby/gems/2.5.0/gems/xcodeproj-1.5.6/lib/xcodeproj/project.rb:103:in `open'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/lib/cocoapods/installer/analyzer.rb:907:in `block (2 levels) in inspect_targets_to_integrate'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/lib/cocoapods/installer/analyzer.rb:906:in `each'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/lib/cocoapods/installer/analyzer.rb:906:in `block in inspect_targets_to_integrate'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/lib/cocoapods/user_interface.rb:64:in `section'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/lib/cocoapods/installer/analyzer.rb:901:in `inspect_targets_to_integrate'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/lib/cocoapods/installer/analyzer.rb:75:in `analyze'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/lib/cocoapods/installer.rb:243:in `analyze'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/lib/cocoapods/installer.rb:154:in `block in resolve_dependencies'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/lib/cocoapods/user_interface.rb:64:in `section'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/lib/cocoapods/installer.rb:153:in `resolve_dependencies'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/lib/cocoapods/installer.rb:116:in `install!'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/lib/cocoapods/command/install.rb:41:in `run'
/usr/local/lib/ruby/gems/2.5.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/lib/cocoapods/command.rb:52:in `run'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'

――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

[!] Oh no, an error occurred.

Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=%5B%21%5D+Xcodeproj+doesn%27t+know+about+the+following+attributes+%7B%22inputFileListPaths%22%3D%3E%5B%5D%2C+%22outputFileListPaths%22%3D%3E%5B%5D%7D+for+the+%27PBXShellScriptBuildPhase%27+isa.%0AIf+this+attribute+was+generated+by+Xcode+please+file+an+issue%3A+https%3A%2F%2Fgithub.com%2FCocoaPods%2FXcodeproj%2Fissues%2Fnew&type=Issues

If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new

Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md

Don't forget to anonymize any private data!

Looking for related issues on cocoapods/cocoapods...
Traceback (most recent call last):
	12: from /usr/local/bin/pod:23:in `<main>'
	11: from /usr/local/bin/pod:23:in `load'
	10: from /usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/bin/pod:55:in `<top (required)>'
	 9: from /usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/lib/cocoapods/command.rb:52:in `run'
	 8: from /usr/local/lib/ruby/gems/2.5.0/gems/claide-1.0.2/lib/claide/command.rb:324:in `run'
	 7: from /usr/local/lib/ruby/gems/2.5.0/gems/claide-1.0.2/lib/claide/command.rb:337:in `rescue in run'
	 6: from /usr/local/lib/ruby/gems/2.5.0/gems/claide-1.0.2/lib/claide/command.rb:396:in `handle_exception'
	 5: from /usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/lib/cocoapods/command.rb:67:in `report_error'
	 4: from /usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.4.0/lib/cocoapods/user_interface/error_report.rb:119:in `search_for_exceptions'
	 3: from /usr/local/lib/ruby/gems/2.5.0/gems/gh_inspector-1.1.1/lib/gh_inspector/inspector.rb:59:in `search_exception'
	 2: from /usr/local/lib/ruby/gems/2.5.0/gems/gh_inspector-1.1.1/lib/gh_inspector/inspector.rb:65:in `search_query'
	 1: from /usr/local/lib/ruby/gems/2.5.0/gems/gh_inspector-1.1.1/lib/gh_inspector/sidekick.rb:33:in `search'
/usr/local/lib/ruby/gems/2.5.0/gems/gh_inspector-1.1.1/lib/gh_inspector/sidekick.rb:92:in `parse_results': undefined method `map' for nil:NilClass (NoMethodError)
Robs-iMac:Example robertnash$ 

Not support deployment ios 9.0 ?

Why is not available deployment target 9.0 in CocoaPods?

use_frameworks!

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'

pod 'ObjectBox'

run command^

pod install

error in terminal:

Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "ObjectBox":
  In Podfile:
    ObjectBox

Specs satisfying the `ObjectBox` dependency were found, but they required a higher minimum deployment target.

What is the reason for this? Is it possible to downgrade version?
I am developing an application with support for iOS 9.0 ((

Inability to query true|false for Bool properties

Found when using ObjectBox-swift v1.1.1
Given the following model:

struct Foo: Entity {
     let id: Id
     let isAnAwesomeMooFoo: Bool
}

one would expect that it would be possible to query for only those Foo entities that have isAnAwesomeMooFoo set to true, but the following query fails to compile:

let box: Box<Foo> = ...
box.query {
     Foo.isAnAwesomeMooFoo == true <-- Does not compile
}.build()

It appears that the relevant functions for 'isEqual' / == overrides for the Bool type are missing from the Swift implementation.
Notably, the 'equal' API for boolean is available within ObjectBox Java
https://objectbox.io/files/objectbox-java/current/io/objectbox/query/QueryBuilder.html#equal(io.objectbox.Property,boolean)

SwiftUI-based example app

Would be neat to have an example for ObjectBox that uses SwiftUI. Could share some code with the existing Example.

error: upgrade from v1.0.1 to v1.1

Xcode 11.2.1
After run pod update

/Users/daoan/Desktop/click-and-see-mobile/ios/ClickAndSee/Pods/ObjectBox/generate_sources.sh:5: command not found: realpath
Command PhaseScriptExecution failed with a nonzero exit code

=== Full Logs ==

PhaseScriptExecution [OBX]\ Update\ Sourcery\ Generated\ Files /Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Intermediates.noindex/ClickAndSee.build/Debug-iphonesimulator/ClickAndSee.build/Script-F78F90BE476A6FB52D0A09F1.sh (in target 'ClickAndSee' from project 'ClickAndSee')
cd /Users/daoan/Desktop/click-and-see-mobile/ios/ClickAndSee
export ACTION=build
export AD_HOC_CODE_SIGNING_ALLOWED=YES
export ALTERNATE_GROUP=staff
export ALTERNATE_MODE=u+w,go-w,a+rX
export ALTERNATE_OWNER=daoan
export ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=YES
export ALWAYS_SEARCH_USER_PATHS=NO
export ALWAYS_USE_SEPARATE_HEADERMAPS=NO
export APPLE_INTERNAL_DEVELOPER_DIR=/AppleInternal/Developer
export APPLE_INTERNAL_DIR=/AppleInternal
export APPLE_INTERNAL_DOCUMENTATION_DIR=/AppleInternal/Documentation
export APPLE_INTERNAL_LIBRARY_DIR=/AppleInternal/Library
export APPLE_INTERNAL_TOOLS=/AppleInternal/Developer/Tools
export APPLICATION_EXTENSION_API_ONLY=NO
export APPLY_RULES_IN_COPY_FILES=NO
export APPLY_RULES_IN_COPY_HEADERS=NO
export ARCHS=x86_64
export ARCHS_STANDARD=x86_64
export ARCHS_STANDARD_32_64_BIT="i386 x86_64"
export ARCHS_STANDARD_32_BIT=i386
export ARCHS_STANDARD_64_BIT=x86_64
export ARCHS_STANDARD_INCLUDING_64_BIT=x86_64
export ARCHS_UNIVERSAL_IPHONE_OS="i386 x86_64"
export ASSETCATALOG_COMPILER_APPICON_NAME=AppIcon
export AVAILABLE_PLATFORMS="appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator"
export AppIdentifierPrefix=4YPW79D5GL.
export BITCODE_GENERATION_MODE=marker
export BUILD_ACTIVE_RESOURCES_ONLY=YES
export BUILD_COMPONENTS="headers build"
export BUILD_DIR=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products
export BUILD_LIBRARY_FOR_DISTRIBUTION=NO
export BUILD_ROOT=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products
export BUILD_STYLE=
export BUILD_VARIANTS=normal
export BUILT_PRODUCTS_DIR=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator
export CACHE_ROOT=/var/folders/z2/0skw0bn57b7922f_h0h2kddh0000gn/C/com.apple.DeveloperTools/11.2.1-11B500/Xcode
export CCHROOT=/var/folders/z2/0skw0bn57b7922f_h0h2kddh0000gn/C/com.apple.DeveloperTools/11.2.1-11B500/Xcode
export CHMOD=/bin/chmod
export CHOWN=/usr/sbin/chown
export CLANG_ANALYZER_NONNULL=YES
export CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION=YES_AGGRESSIVE
export CLANG_CXX_LANGUAGE_STANDARD=gnu++14
export CLANG_CXX_LIBRARY=libc++
export CLANG_ENABLE_MODULES=YES
export CLANG_ENABLE_OBJC_ARC=YES
export CLANG_ENABLE_OBJC_WEAK=YES
export CLANG_MODULES_BUILD_SESSION_FILE=/Users/daoan/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation
export CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING=YES
export CLANG_WARN_BOOL_CONVERSION=YES
export CLANG_WARN_COMMA=YES
export CLANG_WARN_CONSTANT_CONVERSION=YES
export CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS=YES
export CLANG_WARN_DIRECT_OBJC_ISA_USAGE=YES_ERROR
export CLANG_WARN_DOCUMENTATION_COMMENTS=YES
export CLANG_WARN_EMPTY_BODY=YES
export CLANG_WARN_ENUM_CONVERSION=YES
export CLANG_WARN_INFINITE_RECURSION=YES
export CLANG_WARN_INT_CONVERSION=YES
export CLANG_WARN_NON_LITERAL_NULL_CONVERSION=YES
export CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF=YES
export CLANG_WARN_OBJC_LITERAL_CONVERSION=YES
export CLANG_WARN_OBJC_ROOT_CLASS=YES_ERROR
export CLANG_WARN_RANGE_LOOP_ANALYSIS=YES
export CLANG_WARN_STRICT_PROTOTYPES=YES
export CLANG_WARN_SUSPICIOUS_MOVE=YES
export CLANG_WARN_UNGUARDED_AVAILABILITY=YES_AGGRESSIVE
export CLANG_WARN_UNREACHABLE_CODE=YES
export CLANG_WARN__DUPLICATE_METHOD_MATCH=YES
export CLASS_FILE_DIR=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Intermediates.noindex/ClickAndSee.build/Debug-iphonesimulator/ClickAndSee.build/JavaClasses
export CLEAN_PRECOMPS=YES
export CLONE_HEADERS=NO
export CODESIGNING_FOLDER_PATH=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/ClickAndSee.app
export CODE_SIGNING_ALLOWED=YES
export CODE_SIGNING_REQUIRED=YES
export CODE_SIGN_CONTEXT_CLASS=XCiPhoneSimulatorCodeSignContext
export CODE_SIGN_IDENTITY="iPhone Developer"
export CODE_SIGN_INJECT_BASE_ENTITLEMENTS=YES
export CODE_SIGN_STYLE=Automatic
export COLOR_DIAGNOSTICS=NO
export COMBINE_HIDPI_IMAGES=NO
export COMPILER_INDEX_STORE_ENABLE=Default
export COMPOSITE_SDK_DIRS=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Intermediates.noindex/CompositeSDKs
export COMPRESS_PNG_FILES=YES
export CONFIGURATION=Debug
export CONFIGURATION_BUILD_DIR=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator
export CONFIGURATION_TEMP_DIR=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Intermediates.noindex/ClickAndSee.build/Debug-iphonesimulator
export CONTENTS_FOLDER_PATH=ClickAndSee.app
export COPYING_PRESERVES_HFS_DATA=NO
export COPY_HEADERS_RUN_UNIFDEF=NO
export COPY_PHASE_STRIP=NO
export COPY_RESOURCES_FROM_STATIC_FRAMEWORKS=YES
export CORRESPONDING_DEVICE_PLATFORM_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
export CORRESPONDING_DEVICE_PLATFORM_NAME=iphoneos
export CORRESPONDING_DEVICE_SDK_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk
export CORRESPONDING_DEVICE_SDK_NAME=iphoneos13.2
export CP=/bin/cp
export CREATE_INFOPLIST_SECTION_IN_BINARY=NO
export CURRENT_ARCH=undefined_arch
export CURRENT_VARIANT=normal
export DEAD_CODE_STRIPPING=YES
export DEBUGGING_SYMBOLS=YES
export DEBUG_INFORMATION_FORMAT=dwarf
export DEFAULT_COMPILER=com.apple.compilers.llvm.clang.1_0
export DEFAULT_DEXT_INSTALL_PATH=/System/Library/DriverExtensions
export DEFAULT_KEXT_INSTALL_PATH=/System/Library/Extensions
export DEFINES_MODULE=NO
export DEPLOYMENT_LOCATION=NO
export DEPLOYMENT_POSTPROCESSING=NO
export DEPLOYMENT_TARGET_CLANG_ENV_NAME=IPHONEOS_DEPLOYMENT_TARGET
export DEPLOYMENT_TARGET_CLANG_FLAG_NAME=mios-simulator-version-min
export DEPLOYMENT_TARGET_CLANG_FLAG_PREFIX=-mios-simulator-version-min=
export DEPLOYMENT_TARGET_LD_ENV_NAME=IPHONEOS_DEPLOYMENT_TARGET
export DEPLOYMENT_TARGET_LD_FLAG_NAME=ios_simulator_version_min
export DEPLOYMENT_TARGET_SETTING_NAME=IPHONEOS_DEPLOYMENT_TARGET
export DEPLOYMENT_TARGET_SUGGESTED_VALUES="8.0 8.1 8.2 8.3 8.4 9.0 9.1 9.2 9.3 10.0 10.1 10.2 10.3 11.0 11.1 11.2 11.3 11.4 12.0 12.1 12.2 12.3 12.4 13.0 13.1 13.2"
export DERIVED_FILES_DIR=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Intermediates.noindex/ClickAndSee.build/Debug-iphonesimulator/ClickAndSee.build/DerivedSources
export DERIVED_FILE_DIR=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Intermediates.noindex/ClickAndSee.build/Debug-iphonesimulator/ClickAndSee.build/DerivedSources
export DERIVED_SOURCES_DIR=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Intermediates.noindex/ClickAndSee.build/Debug-iphonesimulator/ClickAndSee.build/DerivedSources
export DEVELOPER_APPLICATIONS_DIR=/Applications/Xcode.app/Contents/Developer/Applications
export DEVELOPER_BIN_DIR=/Applications/Xcode.app/Contents/Developer/usr/bin
export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
export DEVELOPER_FRAMEWORKS_DIR=/Applications/Xcode.app/Contents/Developer/Library/Frameworks
export DEVELOPER_FRAMEWORKS_DIR_QUOTED=/Applications/Xcode.app/Contents/Developer/Library/Frameworks
export DEVELOPER_LIBRARY_DIR=/Applications/Xcode.app/Contents/Developer/Library
export DEVELOPER_SDK_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
export DEVELOPER_TOOLS_DIR=/Applications/Xcode.app/Contents/Developer/Tools
export DEVELOPER_USR_DIR=/Applications/Xcode.app/Contents/Developer/usr
export DEVELOPMENT_LANGUAGE=en
export DEVELOPMENT_TEAM=4YPW79D5GL
export DOCUMENTATION_FOLDER_PATH=ClickAndSee.app/en.lproj/Documentation
export DONT_GENERATE_INFOPLIST_FILE=NO
export DO_HEADER_SCANNING_IN_JAM=NO
export DSTROOT=/tmp/ClickAndSee.dst
export DT_TOOLCHAIN_DIR=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
export DWARF_DSYM_FILE_NAME=ClickAndSee.app.dSYM
export DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT=NO
export DWARF_DSYM_FOLDER_PATH=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator
export EFFECTIVE_PLATFORM_NAME=-iphonesimulator
export EMBEDDED_CONTENT_CONTAINS_SWIFT=NO
export EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE=NO
export ENABLE_BITCODE=NO
export ENABLE_DEFAULT_HEADER_SEARCH_PATHS=YES
export ENABLE_HARDENED_RUNTIME=NO
export ENABLE_HEADER_DEPENDENCIES=YES
export ENABLE_ON_DEMAND_RESOURCES=YES
export ENABLE_PREVIEWS=NO
export ENABLE_STRICT_OBJC_MSGSEND=YES
export ENABLE_TESTABILITY=YES
export ENTITLEMENTS_DESTINATION=__entitlements
export ENTITLEMENTS_REQUIRED=YES
export EXCLUDED_INSTALLSRC_SUBDIRECTORY_PATTERNS=".DS_Store .svn .git .hg CVS"
export EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES="*.nib *.lproj *.framework *.gch .xcode .xcassets () .DS_Store CVS .svn .git .hg *.pbproj *.pbxproj"
export EXECUTABLES_FOLDER_PATH=ClickAndSee.app/Executables
export EXECUTABLE_FOLDER_PATH=ClickAndSee.app
export EXECUTABLE_NAME=ClickAndSee
export EXECUTABLE_PATH=ClickAndSee.app/ClickAndSee
export EXPANDED_CODE_SIGN_IDENTITY=-
export EXPANDED_CODE_SIGN_IDENTITY_NAME=-
export FILE_LIST=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Intermediates.noindex/ClickAndSee.build/Debug-iphonesimulator/ClickAndSee.build/Objects/LinkFileList
export FIXED_FILES_DIR=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Intermediates.noindex/ClickAndSee.build/Debug-iphonesimulator/ClickAndSee.build/FixedFiles
export FRAMEWORKS_FOLDER_PATH=ClickAndSee.app/Frameworks
export FRAMEWORK_FLAG_PREFIX=-framework
export FRAMEWORK_SEARCH_PATHS="/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/Action" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/AutoInsetter" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/CLTokenInputView" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/Defaults" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/DifferenceKit" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/ESPullToRefresh" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/Eureka" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/GCDWebServer" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/Kingfisher" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/MDFInternationalization" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/MDFTextAccessibility" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/MaterialComponents" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/MotionAnimator" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/MotionInterchange" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/NSObject+Rx" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/Pageboy" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/Popover" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/ReSwift" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/ReSwiftThunk" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/ReusableKit" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/RxCocoa" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/RxGesture" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/RxRelay" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/RxSwift" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/SnapKit" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/SwiftEventBus" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/SwiftIconFont" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/SwiftMoment" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/SwiftSoup" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/Swinject" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/Tabman" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/TextAttributes" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/Then" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/TokenRow" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/TouchAreaInsets" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/URLNavigator" "/Users/daoan/Desktop/click-and-see-mobile/ios/ClickAndSee/Pods/ObjectBox/Carthage/Build/iOS""
export FRAMEWORK_VERSION=A
export FULL_PRODUCT_NAME=ClickAndSee.app
export GCC3_VERSION=3.3
export GCC_C_LANGUAGE_STANDARD=gnu11
export GCC_DYNAMIC_NO_PIC=NO
export GCC_INLINES_ARE_PRIVATE_EXTERN=YES
export GCC_NO_COMMON_BLOCKS=YES
export GCC_OBJC_LEGACY_DISPATCH=YES
export GCC_OPTIMIZATION_LEVEL=0
export GCC_PFE_FILE_C_DIALECTS="c objective-c c++ objective-c++"
export GCC_PREPROCESSOR_DEFINITIONS="DEBUG=1 COCOAPODS=1"
export GCC_SYMBOLS_PRIVATE_EXTERN=NO
export GCC_TREAT_WARNINGS_AS_ERRORS=NO
export GCC_VERSION=com.apple.compilers.llvm.clang.1_0
export GCC_VERSION_IDENTIFIER=com_apple_compilers_llvm_clang_1_0
export GCC_WARN_64_TO_32_BIT_CONVERSION=YES
export GCC_WARN_ABOUT_RETURN_TYPE=YES_ERROR
export GCC_WARN_UNDECLARED_SELECTOR=YES
export GCC_WARN_UNINITIALIZED_AUTOS=YES_AGGRESSIVE
export GCC_WARN_UNUSED_FUNCTION=YES
export GCC_WARN_UNUSED_VARIABLE=YES
export GENERATE_MASTER_OBJECT_FILE=NO
export GENERATE_PKGINFO_FILE=YES
export GENERATE_PROFILING_CODE=NO
export GENERATE_TEXT_BASED_STUBS=NO
export GID=20
export GROUP=staff
export HEADERMAP_INCLUDES_FLAT_ENTRIES_FOR_TARGET_BEING_BUILT=YES
export HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES=YES
export HEADERMAP_INCLUDES_NONPUBLIC_NONPRIVATE_HEADERS=YES
export HEADERMAP_INCLUDES_PROJECT_HEADERS=YES
export HEADERMAP_USES_FRAMEWORK_PREFIX_ENTRIES=YES
export HEADERMAP_USES_VFS=NO
export HEADER_SEARCH_PATHS="/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/include "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/Action/Action.framework/Headers" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/AutoInsetter/AutoInsetter.framework/Headers" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/CLTokenInputView/CLTokenInputView.framework/Headers" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/Defaults/Defaults.framework/Headers" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/DifferenceKit/DifferenceKit.framework/Headers" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/ESPullToRefresh/ESPullToRefresh.framework/Headers" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/Eureka/Eureka.framework/Headers" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/GCDWebServer/GCDWebServer.framework/Headers" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Headers" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/MDFInternationalization/MDFInternationalization.framework/Headers" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/MDFTextAccessibility/MDFTextAccessibility.framework/Headers" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/MaterialComponents/MaterialComponents.framework/Headers" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/MotionAnimator/MotionAnimator.framework/Headers" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/MotionInterchange/MotionInterchange.framework/Headers" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/NSObject+Rx/NSObject_Rx.framework/Headers" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/Pageboy/Pageboy.framework/Headers" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/Popover/Popover.framework/Headers" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/ReSwift/ReSwift.framework/Headers" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/ReSwiftThunk/ReSwiftThunk.framework/Headers" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/ReusableKit/ReusableKit.framework/Headers" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/RxGesture/RxGesture.framework/Headers" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/RxRelay/RxRelay.framework/Headers" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/RxSwift/RxSwift.framework/Headers" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/SnapKit/SnapKit.framework/Headers" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/SwiftEventBus/SwiftEventBus.framework/Headers" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/SwiftIconFont/SwiftIconFont.framework/Headers" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/SwiftMoment/SwiftMoment.framework/Headers" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/SwiftSoup/SwiftSoup.framework/Headers" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/Swinject/Swinject.framework/Headers" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/Tabman/Tabman.framework/Headers" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/TextAttributes/TextAttributes.framework/Headers" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/Then/Then.framework/Headers" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/TokenRow/TokenRow.framework/Headers" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/TouchAreaInsets/TouchAreaInsets.framework/Headers" "/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/URLNavigator/URLNavigator.framework/Headers""
export HIDE_BITCODE_SYMBOLS=YES
export HOME=/Users/daoan
export ICONV=/usr/bin/iconv
export INFOPLIST_EXPAND_BUILD_SETTINGS=YES
export INFOPLIST_FILE=ClickAndSee/Info.plist
export INFOPLIST_OUTPUT_FORMAT=binary
export INFOPLIST_PATH=ClickAndSee.app/Info.plist
export INFOPLIST_PREPROCESS=NO
export INFOSTRINGS_PATH=ClickAndSee.app/en.lproj/InfoPlist.strings
export INLINE_PRIVATE_FRAMEWORKS=NO
export INSTALLHDRS_COPY_PHASE=NO
export INSTALLHDRS_SCRIPT_PHASE=NO
export INSTALL_DIR=/tmp/ClickAndSee.dst/Applications
export INSTALL_GROUP=staff
export INSTALL_MODE_FLAG=u+w,go-w,a+rX
export INSTALL_OWNER=daoan
export INSTALL_PATH=/Applications
export INSTALL_ROOT=/tmp/ClickAndSee.dst
export IPHONEOS_DEPLOYMENT_TARGET=11.0
export JAVAC_DEFAULT_FLAGS="-J-Xms64m -J-XX:NewSize=4M -J-Dfile.encoding=UTF8"
export JAVA_APP_STUB=/System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub
export JAVA_ARCHIVE_CLASSES=YES
export JAVA_ARCHIVE_TYPE=JAR
export JAVA_COMPILER=/usr/bin/javac
export JAVA_FOLDER_PATH=ClickAndSee.app/Java
export JAVA_FRAMEWORK_RESOURCES_DIRS=Resources
export JAVA_JAR_FLAGS=cv
export JAVA_SOURCE_SUBDIR=.
export JAVA_USE_DEPENDENCIES=YES
export JAVA_ZIP_FLAGS=-urg
export JIKES_DEFAULT_FLAGS="+E +OLDCSO"
export KEEP_PRIVATE_EXTERNS=NO
export LD_DEPENDENCY_INFO_FILE=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Intermediates.noindex/ClickAndSee.build/Debug-iphonesimulator/ClickAndSee.build/Objects-normal/undefined_arch/ClickAndSee_dependency_info.dat
export LD_ENTITLEMENTS_SECTION=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Intermediates.noindex/ClickAndSee.build/Debug-iphonesimulator/ClickAndSee.build/ClickAndSee.app-Simulated.xcent
export LD_GENERATE_MAP_FILE=NO
export LD_MAP_FILE_PATH=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Intermediates.noindex/ClickAndSee.build/Debug-iphonesimulator/ClickAndSee.build/ClickAndSee-LinkMap-normal-undefined_arch.txt
export LD_NO_PIE=NO
export LD_QUOTE_LINKER_ARGUMENTS_FOR_COMPILER_DRIVER=YES
export LD_RUNPATH_SEARCH_PATHS=" '@executable_path/Frameworks' '@loader_path/Frameworks' @executable_path/Frameworks"
export LEGACY_DEVELOPER_DIR=/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer
export LEX=lex
export LIBRARY_DEXT_INSTALL_PATH=/Library/DriverExtensions
export LIBRARY_FLAG_NOSPACE=YES
export LIBRARY_FLAG_PREFIX=-l
export LIBRARY_KEXT_INSTALL_PATH=/Library/Extensions
export LIBRARY_SEARCH_PATHS="/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator "/Users/daoan/Desktop/click-and-see-mobile/ios/ClickAndSee/Pods/Realm/core" /Users/daoan/Desktop/click-and-see-mobile/ios/ClickAndSee/../../rust/target/universal/release"
export LINKER_DISPLAYS_MANGLED_NAMES=NO
export LINK_FILE_LIST_normal_x86_64=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Intermediates.noindex/ClickAndSee.build/Debug-iphonesimulator/ClickAndSee.build/Objects-normal/x86_64/ClickAndSee.LinkFileList
export LINK_WITH_STANDARD_LIBRARIES=YES
export LLVM_TARGET_TRIPLE_OS_VERSION=ios11.0
export LLVM_TARGET_TRIPLE_SUFFIX=-simulator
export LLVM_TARGET_TRIPLE_VENDOR=apple
export LOCALIZED_RESOURCES_FOLDER_PATH=ClickAndSee.app/en.lproj
export LOCALIZED_STRING_MACRO_NAMES="NSLocalizedString CFCopyLocalizedString"
export LOCALIZED_STRING_SWIFTUI_SUPPORT=YES
export LOCAL_ADMIN_APPS_DIR=/Applications/Utilities
export LOCAL_APPS_DIR=/Applications
export LOCAL_DEVELOPER_DIR=/Library/Developer
export LOCAL_LIBRARY_DIR=/Library
export LOCROOT=/Users/daoan/Desktop/click-and-see-mobile/ios/ClickAndSee
export LOCSYMROOT=/Users/daoan/Desktop/click-and-see-mobile/ios/ClickAndSee
export MACH_O_TYPE=mh_execute
export MAC_OS_X_PRODUCT_BUILD_VERSION=18G103
export MAC_OS_X_VERSION_ACTUAL=101406
export MAC_OS_X_VERSION_MAJOR=101400
export MAC_OS_X_VERSION_MINOR=1406
export METAL_LIBRARY_FILE_BASE=default
export METAL_LIBRARY_OUTPUT_DIR=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/ClickAndSee.app
export MODULES_FOLDER_PATH=ClickAndSee.app/Modules
export MODULE_CACHE_DIR=/Users/daoan/Library/Developer/Xcode/DerivedData/ModuleCache.noindex
export MTL_ENABLE_DEBUG_INFO=INCLUDE_SOURCE
export MTL_FAST_MATH=YES
export NATIVE_ARCH=i386
export NATIVE_ARCH_32_BIT=i386
export NATIVE_ARCH_64_BIT=x86_64
export NATIVE_ARCH_ACTUAL=x86_64
export NO_COMMON=YES
export OBJC_ABI_VERSION=2
export OBJECT_FILE_DIR=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Intermediates.noindex/ClickAndSee.build/Debug-iphonesimulator/ClickAndSee.build/Objects
export OBJECT_FILE_DIR_normal=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Intermediates.noindex/ClickAndSee.build/Debug-iphonesimulator/ClickAndSee.build/Objects-normal
export OBJROOT=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Intermediates.noindex
export ONLY_ACTIVE_ARCH=YES
export OS=MACOS
export OSAC=/usr/bin/osacompile
export OTHER_LDFLAGS=" -l"z" -framework "Accelerate" -framework "Action" -framework "AutoInsetter" -framework "CFNetwork" -framework "CLTokenInputView" -framework "Defaults" -framework "DifferenceKit" -framework "ESPullToRefresh" -framework "Eureka" -framework "Foundation" -framework "GCDWebServer" -framework "Kingfisher" -framework "MDFInternationalization" -framework "MDFTextAccessibility" -framework "MaterialComponents" -framework "MobileCoreServices" -framework "MotionAnimator" -framework "MotionInterchange" -framework "NSObject_Rx" -framework "ObjectBox" -framework "Pageboy" -framework "Popover" -framework "ReSwift" -framework "ReSwiftThunk" -framework "ReusableKit" -framework "RxCocoa" -framework "RxGesture" -framework "RxRelay" -framework "RxSwift" -framework "SnapKit" -framework "SwiftEventBus" -framework "SwiftIconFont" -framework "SwiftMoment" -framework "SwiftSoup" -framework "Swinject" -framework "Tabman" -framework "TextAttributes" -framework "Then" -framework "TokenRow" -framework "TouchAreaInsets" -framework "UIKit" -framework "URLNavigator""
export OTHER_SWIFT_FLAGS=" -D COCOAPODS"
export PACKAGE_TYPE=com.apple.package-type.wrapper.application
export PASCAL_STRINGS=YES
export PATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
export PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES="/usr/include /usr/local/include /System/Library/Frameworks /System/Library/PrivateFrameworks /Applications/Xcode.app/Contents/Developer/Headers /Applications/Xcode.app/Contents/Developer/SDKs /Applications/Xcode.app/Contents/Developer/Platforms"
export PBDEVELOPMENTPLIST_PATH=ClickAndSee.app/pbdevelopment.plist
export PER_ARCH_OBJECT_FILE_DIR=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Intermediates.noindex/ClickAndSee.build/Debug-iphonesimulator/ClickAndSee.build/Objects-normal/undefined_arch
export PER_VARIANT_OBJECT_FILE_DIR=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Intermediates.noindex/ClickAndSee.build/Debug-iphonesimulator/ClickAndSee.build/Objects-normal
export PKGINFO_FILE_PATH=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Intermediates.noindex/ClickAndSee.build/Debug-iphonesimulator/ClickAndSee.build/PkgInfo
export PKGINFO_PATH=ClickAndSee.app/PkgInfo
export PLATFORM_DEVELOPER_APPLICATIONS_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications
export PLATFORM_DEVELOPER_BIN_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin
export PLATFORM_DEVELOPER_LIBRARY_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library
export PLATFORM_DEVELOPER_SDK_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs
export PLATFORM_DEVELOPER_TOOLS_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Tools
export PLATFORM_DEVELOPER_USR_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr
export PLATFORM_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform
export PLATFORM_DISPLAY_NAME="iOS Simulator"
export PLATFORM_NAME=iphonesimulator
export PLATFORM_PREFERRED_ARCH=x86_64
export PLATFORM_PRODUCT_BUILD_VERSION=17B102
export PLIST_FILE_OUTPUT_FORMAT=binary
export PLUGINS_FOLDER_PATH=ClickAndSee.app/PlugIns
export PODS_BUILD_DIR=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products
export PODS_CONFIGURATION_BUILD_DIR=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator
export PODS_PODFILE_DIR_PATH=/Users/daoan/Desktop/click-and-see-mobile/ios/ClickAndSee/.
export PODS_ROOT=/Users/daoan/Desktop/click-and-see-mobile/ios/ClickAndSee/Pods
export PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR=YES
export PRECOMP_DESTINATION_DIR=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Intermediates.noindex/ClickAndSee.build/Debug-iphonesimulator/ClickAndSee.build/PrefixHeaders
export PRESERVE_DEAD_CODE_INITS_AND_TERMS=NO
export PRIVATE_HEADERS_FOLDER_PATH=ClickAndSee.app/PrivateHeaders
export PRODUCT_BUNDLE_IDENTIFIER=clickandsee.daoan.1412
export PRODUCT_BUNDLE_PACKAGE_TYPE=APPL
export PRODUCT_MODULE_NAME=ClickAndSee
export PRODUCT_NAME=ClickAndSee
export PRODUCT_SETTINGS_PATH=/Users/daoan/Desktop/click-and-see-mobile/ios/ClickAndSee/ClickAndSee/Info.plist
export PRODUCT_TYPE=com.apple.product-type.application
export PROFILING_CODE=NO
export PROJECT=ClickAndSee
export PROJECT_DERIVED_FILE_DIR=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Intermediates.noindex/ClickAndSee.build/DerivedSources
export PROJECT_DIR=/Users/daoan/Desktop/click-and-see-mobile/ios/ClickAndSee
export PROJECT_FILE_PATH=/Users/daoan/Desktop/click-and-see-mobile/ios/ClickAndSee/ClickAndSee.xcodeproj
export PROJECT_NAME=ClickAndSee
export PROJECT_TEMP_DIR=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Intermediates.noindex/ClickAndSee.build
export PROJECT_TEMP_ROOT=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Intermediates.noindex
export PUBLIC_HEADERS_FOLDER_PATH=ClickAndSee.app/Headers
export RECURSIVE_SEARCH_PATHS_FOLLOW_SYMLINKS=YES
export REMOVE_CVS_FROM_RESOURCES=YES
export REMOVE_GIT_FROM_RESOURCES=YES
export REMOVE_HEADERS_FROM_EMBEDDED_BUNDLES=YES
export REMOVE_HG_FROM_RESOURCES=YES
export REMOVE_SVN_FROM_RESOURCES=YES
export REZ_COLLECTOR_DIR=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Intermediates.noindex/ClickAndSee.build/Debug-iphonesimulator/ClickAndSee.build/ResourceManagerResources
export REZ_OBJECTS_DIR=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Intermediates.noindex/ClickAndSee.build/Debug-iphonesimulator/ClickAndSee.build/ResourceManagerResources/Objects
export REZ_SEARCH_PATHS="/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator "
export SCAN_ALL_SOURCE_FILES_FOR_INCLUDES=NO
export SCRIPTS_FOLDER_PATH=ClickAndSee.app/Scripts
export SCRIPT_INPUT_FILE_COUNT=0
export SCRIPT_INPUT_FILE_LIST_COUNT=0
export SCRIPT_OUTPUT_FILE_COUNT=0
export SCRIPT_OUTPUT_FILE_LIST_COUNT=0
export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk
export SDK_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk
export SDK_DIR_iphonesimulator13_2=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk
export SDK_NAME=iphonesimulator13.2
export SDK_NAMES=iphonesimulator13.2
export SDK_PRODUCT_BUILD_VERSION=17B102
export SDK_VERSION=13.2
export SDK_VERSION_ACTUAL=130200
export SDK_VERSION_MAJOR=130000
export SDK_VERSION_MINOR=200
export SED=/usr/bin/sed
export SEPARATE_STRIP=NO
export SEPARATE_SYMBOL_EDIT=NO
export SET_DIR_MODE_OWNER_GROUP=YES
export SET_FILE_MODE_OWNER_GROUP=NO
export SHALLOW_BUNDLE=YES
export SHARED_DERIVED_FILE_DIR=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator/DerivedSources
export SHARED_FRAMEWORKS_FOLDER_PATH=ClickAndSee.app/SharedFrameworks
export SHARED_PRECOMPS_DIR=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Intermediates.noindex/PrecompiledHeaders
export SHARED_SUPPORT_FOLDER_PATH=ClickAndSee.app/SharedSupport
export SKIP_INSTALL=NO
export SOURCE_ROOT=/Users/daoan/Desktop/click-and-see-mobile/ios/ClickAndSee
export SRCROOT=/Users/daoan/Desktop/click-and-see-mobile/ios/ClickAndSee
export STRINGS_FILE_OUTPUT_ENCODING=binary
export STRIP_BITCODE_FROM_COPIED_FILES=NO
export STRIP_INSTALLED_PRODUCT=YES
export STRIP_STYLE=all
export STRIP_SWIFT_SYMBOLS=YES
export SUPPORTED_DEVICE_FAMILIES=1,2
export SUPPORTED_PLATFORMS="iphoneos iphonesimulator"
export SUPPORTS_TEXT_BASED_API=NO
export SWIFT_ACTIVE_COMPILATION_CONDITIONS=DEBUG
export SWIFT_OBJC_BRIDGING_HEADER=/Users/daoan/Desktop/click-and-see-mobile/ios/ClickAndSee/ClickAndSee/Shared/ClickAndSee-Bridging-Header.h
export SWIFT_OPTIMIZATION_LEVEL=-Onone
export SWIFT_PLATFORM_TARGET_PREFIX=ios
export SWIFT_RESPONSE_FILE_PATH_normal_x86_64=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Intermediates.noindex/ClickAndSee.build/Debug-iphonesimulator/ClickAndSee.build/Objects-normal/x86_64/ClickAndSee.SwiftFileList
export SWIFT_VERSION=5.0
export SYMROOT=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products
export SYSTEM_ADMIN_APPS_DIR=/Applications/Utilities
export SYSTEM_APPS_DIR=/Applications
export SYSTEM_CORE_SERVICES_DIR=/System/Library/CoreServices
export SYSTEM_DEMOS_DIR=/Applications/Extras
export SYSTEM_DEVELOPER_APPS_DIR=/Applications/Xcode.app/Contents/Developer/Applications
export SYSTEM_DEVELOPER_BIN_DIR=/Applications/Xcode.app/Contents/Developer/usr/bin
export SYSTEM_DEVELOPER_DEMOS_DIR="/Applications/Xcode.app/Contents/Developer/Applications/Utilities/Built Examples"
export SYSTEM_DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
export SYSTEM_DEVELOPER_DOC_DIR="/Applications/Xcode.app/Contents/Developer/ADC Reference Library"
export SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR="/Applications/Xcode.app/Contents/Developer/Applications/Graphics Tools"
export SYSTEM_DEVELOPER_JAVA_TOOLS_DIR="/Applications/Xcode.app/Contents/Developer/Applications/Java Tools"
export SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR="/Applications/Xcode.app/Contents/Developer/Applications/Performance Tools"
export SYSTEM_DEVELOPER_RELEASENOTES_DIR="/Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes"
export SYSTEM_DEVELOPER_TOOLS=/Applications/Xcode.app/Contents/Developer/Tools
export SYSTEM_DEVELOPER_TOOLS_DOC_DIR="/Applications/Xcode.app/Contents/Developer/ADC Reference Library/documentation/DeveloperTools"
export SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR="/Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes/DeveloperTools"
export SYSTEM_DEVELOPER_USR_DIR=/Applications/Xcode.app/Contents/Developer/usr
export SYSTEM_DEVELOPER_UTILITIES_DIR=/Applications/Xcode.app/Contents/Developer/Applications/Utilities
export SYSTEM_DEXT_INSTALL_PATH=/System/Library/DriverExtensions
export SYSTEM_DOCUMENTATION_DIR=/Library/Documentation
export SYSTEM_KEXT_INSTALL_PATH=/System/Library/Extensions
export SYSTEM_LIBRARY_DIR=/System/Library
export TAPI_VERIFY_MODE=ErrorsOnly
export TARGETED_DEVICE_FAMILY=1,2
export TARGETNAME=ClickAndSee
export TARGET_BUILD_DIR=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Products/Debug-iphonesimulator
export TARGET_DEVICE_IDENTIFIER=0E10DD23-E471-4048-9E4B-A1D3E641626C
export TARGET_DEVICE_MODEL=iPhone11,8
export TARGET_DEVICE_OS_VERSION=12.2
export TARGET_NAME=ClickAndSee
export TARGET_TEMP_DIR=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Intermediates.noindex/ClickAndSee.build/Debug-iphonesimulator/ClickAndSee.build
export TEMP_DIR=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Intermediates.noindex/ClickAndSee.build/Debug-iphonesimulator/ClickAndSee.build
export TEMP_FILES_DIR=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Intermediates.noindex/ClickAndSee.build/Debug-iphonesimulator/ClickAndSee.build
export TEMP_FILE_DIR=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Intermediates.noindex/ClickAndSee.build/Debug-iphonesimulator/ClickAndSee.build
export TEMP_ROOT=/Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Intermediates.noindex
export TOOLCHAINS=com.apple.dt.toolchain.XcodeDefault
export TOOLCHAIN_DIR=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
export TREAT_MISSING_BASELINES_AS_TEST_FAILURES=NO
export TeamIdentifierPrefix=4YPW79D5GL.
export UID=501
export UNLOCALIZED_RESOURCES_FOLDER_PATH=ClickAndSee.app
export UNSTRIPPED_PRODUCT=NO
export USER=daoan
export USER_APPS_DIR=/Users/daoan/Applications
export USER_LIBRARY_DIR=/Users/daoan/Library
export USE_DYNAMIC_NO_PIC=YES
export USE_HEADERMAP=YES
export USE_HEADER_SYMLINKS=NO
export USE_LLVM_TARGET_TRIPLES=YES
export USE_LLVM_TARGET_TRIPLES_FOR_CLANG=YES
export USE_LLVM_TARGET_TRIPLES_FOR_LD=YES
export USE_LLVM_TARGET_TRIPLES_FOR_TAPI=YES
export USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES=YES
export VALIDATE_DEVELOPMENT_ASSET_PATHS=YES_ERROR
export VALIDATE_PRODUCT=NO
export VALIDATE_WORKSPACE=NO
export VALID_ARCHS="i386 x86_64"
export VERBOSE_PBXCP=NO
export VERSIONPLIST_PATH=ClickAndSee.app/version.plist
export VERSION_INFO_BUILDER=daoan
export VERSION_INFO_FILE=ClickAndSee_vers.c
export VERSION_INFO_STRING=""@(#)PROGRAM:ClickAndSee PROJECT:ClickAndSee-""
export WRAPPER_EXTENSION=app
export WRAPPER_NAME=ClickAndSee.app
export WRAPPER_SUFFIX=.app
export WRAP_ASSET_PACKS_IN_SEPARATE_DIRECTORIES=NO
export XCODE_APP_SUPPORT_DIR=/Applications/Xcode.app/Contents/Developer/Library/Xcode
export XCODE_PRODUCT_BUILD_VERSION=11B500
export XCODE_VERSION_ACTUAL=1120
export XCODE_VERSION_MAJOR=1100
export XCODE_VERSION_MINOR=1120
export XPCSERVICES_FOLDER_PATH=ClickAndSee.app/XPCServices
export YACC=yacc
export arch=undefined_arch
export variant=normal
/bin/sh -c /Users/daoan/Library/Developer/Xcode/DerivedData/ClickAndSee-ftuzcxgnirdpkdfuhtapcstnrhyc/Build/Intermediates.noindex/ClickAndSee.build/Debug-iphonesimulator/ClickAndSee.build/Script-F78F90BE476A6FB52D0A09F1.sh

Missing required module 'ObjectBoxC'

Issue Basics

App can't compile after upgradin ObjectBox version to 0.8.0

  • ObjectBox version (are using the latest version?): 0.8.0

Reproducing the bug

Description

I have just updated to version 0.8.0, and it doesn't compile the project.

Error: missing required module 'ObjectBoxC'

Can't compile after upgrading to version 1.1.0

Issue Basics

App can't compile after upgradin ObjectBox from version 1.0.0 to 1.1.0

  • ObjectBox version (are using the latest version?): 1.1.0

Reproducing the bug

Description

I have just updated to version 1.1.0, and it doesn't compile the project.

/Projects/Pods/ObjectBox/generate_sources.sh:5: command not found: realpath

I have also run the command Pods/ObjectBox/setup.rb but it shows this message:

🔸 No changes made to project.

POLL: Platform Support

According to the README this project only supports iOS and macOS. It would be awesome to see this expanded to other platforms, mainly tvOS and watchOS. For me personally lower priority, but I'm sure others would also like to see Linux support as well.

Size of database file

Hi,

I have just tested your database library, it looks very promising.

However, the DB file size is 65% larger than our sqlite database (which contains indexes, unlike the Objectbox test db).
Is it because of the beta? Or is it because of the internal format of the DB ?

And, what is the max file size ? in the previous version, the app was crashing when DB file size > 1GB, but with the last release, the size seem to don't get higher than 1GB (and don't crash anymore).

Edit: Just tested again with multiple add/delete and finally, i still got the crash when i launch the app again:
[ERROR] Storage error "Cannot allocate memory" (code 12)

Thanks

Crash on property/distinct query

Xcode 11.4.1, Swift 5.x, iOS 13.4.1

I'm seeing a general protection fault when attempting a property/distinct query. This is occurring both on hardware and in the simulator.

I've replicated this crash in the following trivial example.

class ExampleEntity: Entity {
    var id: Id = 0

    // objectbox: index
    var test: String = ""
}

func test() {
    do {
        //Boilerplate… create store and open box
        let databaseName = "notes"
        let appSupport = try FileManager.default.url(for: .applicationSupportDirectory,
                                                     in: .userDomainMask,
                                                     appropriateFor: nil,
                                                     create: true)
            .appendingPathComponent(Bundle.main.bundleIdentifier!)
        let directory = appSupport.appendingPathComponent(databaseName)
        try FileManager.default.createDirectory(at: directory,
                                                withIntermediateDirectories: true,
                                                attributes: nil)
        let store = try Store(directoryPath: directory.path)
        let exampleEntityBox = store.box(for: ExampleEntity.self)

        //if box is empty add some random values
        var boxCount = try exampleEntityBox.count()
        if boxCount == 0 {
            let testCases = ["foo", "bar", "foobar", "barfoo"];
            for _ in 1...100 {
                let exampleEntity = ExampleEntity()
                exampleEntity.test = testCases.randomElement() ?? "default"
                try exampleEntityBox.put(exampleEntity)
            }
            boxCount = try exampleEntityBox.count()
        }

        assert(boxCount > 0)

        //get distinct values the hard way
        let all = try exampleEntityBox.all()
        let testSet = Set(all.map { $0.test })
        print(testSet)

        //MARK: Crash - general protection fault
        //get distinct values the objectbox way
        let distinct: [String] = try exampleEntityBox.query().build()
            .property(ExampleEntity.test)
            .distinct(caseSensitiveCompare: false)
            .findStrings()

        print(distinct)

    } catch {
        print("error")
    }
}

Am I doing something incorrectly? Is this a known issue?

Generated entity metadata extensions triggers SwiftLint error

Screen Shot 2019-06-07 at 19 29 00

Nitpick: Nice to see that // swiftlint:disable all is added to the top of the generated file, but the two lines above trigger a vertical_whitespace warning.

I can add this folder to the excluded in the .swiftlint.yml file, but would be even better if ObjectBox can avoid adding that extra line.

ObjectBox does not contain bitcode

Issue Basics

App can't be deployed to physical device.

  • ObjectBox version (are using the latest version?): 1.0.1
  • Reproducibility: occurs always

Reproducing the bug

Description

I have just updated to version 1.0.1 and I can't deploy the app to my iPhone XS.

Error:'/Users/user/Developer/Xcode Projects/Project/Pods/ObjectBox/Carthage/Build/iOS/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. file '/Users/user/Developer/Xcode Projects/Project/Pods/ObjectBox/Carthage/Build/iOS/ObjectBox.framework/ObjectBox' for architecture arm64

Xcode 12

Any ETA to when objectbox will be available on the new xcode especially via carthage? Or did anyone manage to get it to build and run properly?

Support for Swift Package Manager

It would be great if the repository contained a Package.swift manifest to allow using objectbox-swift as a dependency with Swift Package Manager.

With Xcode 11, Swift Packages can be added and managed very easily directly in the GUI and without any external requirements (e.g. CocoaPods).

Crash on ObjectBox initialization: Duplicate index ID 1 found for property EntityD.group

Issue Basics

App crashes when we initialize ObjectBox

  • ObjectBox version (are using the latest version?): 0.5.0
  • Reproducibility: occurs always

Reproducing the bug

Description

I'm initializing the BoxStore on app start during the initialization of the Swinject graph.

Code

extension Store {
	static func createStore() throws -> Store {
		let directory = try FileManager.default.url(
			for: .documentDirectory,
			in: .userDomainMask,
			appropriateFor: nil,
			create: true)
		return try Store(directoryPath: directory.path)
	}
}

DBUtils

class DBUtils {
	static var sharedInstance = DBUtils()
	var store : Store!
	
	init() {
		store = try! Store.createStore()
		
		store.register(entity: EntityA.self)
		store.register(entity: EntityB.self)
		store.register(entity: EntityC.self)
		store.register(entity: EntityD.self)
	}
}

Swinject code

container.register(Store.self) { _ in
			DBUtils.sharedInstance.store }.inObjectScope(.container)

Entities

class EntityA: Entity {
	var id : Id<EntityA> = 0
	var name = ""
	var played = 0
	var won = 0
	
	var group: ToOne<EntityC> = nil

	required init() {
	}
}

class EntityB: Entity {
	var id : Id<EntityB> = 0
	var name = ""
	var matches : ToMany<EntityD, EntityB> = nil
	
	required init() {
	}
}

class EntityC: Entity {
	var id : Id<EntityC> = 0
	var name = ""
	var entitiesA: ToMany<EntityA, EntityC> = nil
	
	required init() {
	}
}

class EntityD: Entity {
	var id : Id<EntityD> = 0
    var day : Int?
	var date: Date?
	var isPlayed : Bool = false
	var localPoints: Int?
	var foreignPoints: Int?
	
	var group: ToOne<EntityC> = nil
	var fase: ToOne<EntityB> = nil
	var local: ToOne<EntityA> = nil
	var foreign: ToOne<EntityA> = nil
	
	required init() {
	}
}

Stacktrace

Terminating app due to uncaught exception 'Unhandled ObjectBox C++ Exception', reason: 'Duplicate index ID 1 found for property EntityD.group
*** First throw call stack:
(
	0   CoreFoundation                      0x0000000106cbb1e6 __exceptionPreprocess + 294
	1   libobjc.A.dylib                     0x000000010586b031 objc_exception_throw + 48
	2   ObjectBox                           0x0000000104d13086 _Z24runWithExceptionHandlingPU15__autoreleasingP7NSErrorU13block_pointerFvvE + 2401
	3   ObjectBox                           0x0000000104d1384a _Z24runWithExceptionHandlingPU15__autoreleasingP7NSErrorU13block_pointerFvvE + 4389
	4   MyApp                   0x00000001046c9140 $SSo8OBXStoreC17MyAppE13directoryPath16maxDbSizeInKByte8fileMode0G7ReadersABSS_s6UInt64Vs6UInt32VAKtKcfc + 256
	5   MyApp                   0x00000001046c8fe7 $SSo8OBXStoreC17MyAppE13directoryPath16maxDbSizeInKByte8fileMode0G7ReadersABSS_s6UInt64Vs6UInt32VAKtKcfC + 87
	6   MyApp                   0x00000001046ca76b $SSo8OBXStoreC17MyAppE11createStoreAByKFZ + 411
	7   MyApp                   0x00000001046ca09d $S17MyApp7DBUtilsCACycfc + 173
	8   MyApp                   0x00000001046c9d10 $S17MyApp7DBUtilsCACycfC + 64
	9   MyApp                   0x00000001046c9cbc globalinit_33_9CDCCD402CC08FC843F21FD87EBB68C2_func0 + 28
	10  libdispatch.dylib                   0x000000010b12c848 _dispatch_client_callout + 8
	11  libdispatch.dylib                   0x000000010b12ddc0 dispatch_once_f + 285
	12  libswiftCore.dylib                  0x00000001063feea9 swift_once + 25
	13  MyApp                   0x00000001046c9d94 $S17MyApp7DBUtilsC14sharedInstanceACvau + 36
	14  MyApp                   0x00000001046c1b7f $S17MyApp16ContainerFactoryCACycfcSo8OBXStoreC8Swinject8Resolver_pcfU_ + 15
	15  MyApp                   0x00000001046c1c70 $S8Swinject8Resolver_pSo8OBXStoreCIegno_AaB_pADIegnr_TR + 16
	16  MyApp                   0x00000001046c1cd1 $S8Swinject8Resolver_pSo8OBXStoreCIegno_AaB_pADIegnr_TRTA + 17
	17  Swinject                            0x0000000105084e1f $S8Swinject8Resolver_pxIegnr_AaB_pypIegnr_lTR + 63
	18  Swinject                            0x0000000105084ebd $S8Swinject8Resolver_pxIegnr_AaB_pypIegnr_lTRTA + 29
	19  Swinject                            0x0000000105089428 $S8Swinject9ContainerC7resolve_4namexSgxm_SSSgtlFypypAA8Resolver_pXEcfU_ + 120
	20  Swinject                            0x000000010508944c $S8Swinject9ContainerC7resolve_4namexSgxm_SSSgtlFypypAA8Resolver_pXEcfU_TA + 12
	21  Swinject                            0x000000010508668b $Sq_ypIgnr_ypIegyr_q_ypIegnr_ypIeggr_r0_lTR + 75
	22  Swinject                            0x000000010508854d $Sq_ypIgnr_ypIegyr_q_ypIegnr_ypIeggr_r0_lTRTA + 61
	23  Swinject                            0x00000001050866d4 $Sq_ypIegnr_ypIggr_q_ypIegnr_ypIegnr_r0_lTR + 52
	24  Swinject                            0x00000001050885d2 $Sq_ypIegnr_ypIggr_q_ypIegnr_ypIegnr_r0_lTRTA + 50
	25  Swinject                            0x0000000105086c8e $S8Swinject9ContainerC7resolve33_B0248D9BB4D17AC900F06660C57FEB11LL5entry7invokerxSgAA20ServiceEntryProtocol_p_ypq_XEtr0_lF + 1454
	26  Swinject                            0x0000000105085eaf $S8Swinject9ContainerC8_resolve4name6option7invokerxSgSSSg_AA16ServiceKeyOption_pSgypypq_XEctr0_lF + 959
	27  Swinject                            0x0000000105089389 $S8Swinject9ContainerC7resolve_4namexSgxm_SSSgtlF + 201
	28  Swinject                            0x00000001050892b8 $S8Swinject9ContainerC7resolveyxSgxmlF + 56
	29  Swinject                            0x0000000105089574 $S8Swinject9ContainerCAA8ResolverA2aDP7resolveyqd__Sgqd__mlFTW + 20
	30  SwinjectAutoregistration            0x00000001051dbf44 $S8Swinject8ResolverP0A16AutoregistrationE7resolveqd__SgylF + 68
	31  SwinjectAutoregistration            0x00000001050f88d8 $S8Swinject9ContainerC0A16AutoregistrationE12autoregister_4name11initializerAA12ServiceEntryCyxGxm_SSSgxq_ctr0_lFxAA8Resolver_pcfU_ + 232
	32  SwinjectAutoregistration            0x00000001050f8ad2 $S8Swinject9ContainerC0A16AutoregistrationE12autoregister_4name11initializerAA12ServiceEntryCyxGxm_SSSgxq_ctr0_lFxAA8Resolver_pcfU_TA + 50
	33  Swinject                            0x0000000105084e1f $S8Swinject8Resolver_pxIegnr_AaB_pypIegnr_lTR + 63
	34  Swinject                            0x0000000105084ebd $S8Swinject8Resolver_pxIegnr_AaB_pypIegnr_lTRTA + 29
	35  Swinject                            0x0000000105089428 $S8Swinject9ContainerC7resolve_4namexSgxm_SSSgtlFypypAA8Resolver_pXEcfU_ + 120
	36  Swinject                            0x000000010508944c $S8Swinject9ContainerC7resolve_4namexSgxm_SSSgtlFypypAA8Resolver_pXEcfU_TA + 12
	37  Swinject                            0x000000010508668b $Sq_ypIgnr_ypIegyr_q_ypIegnr_ypIeggr_r0_lTR + 75
	38  Swinject                            0x000000010508854d $Sq_ypIgnr_ypIegyr_q_ypIegnr_ypIeggr_r0_lTRTA + 61
	39  Swinject                            0x00000001050866d4 $Sq_ypIegnr_ypIggr_q_ypIegnr_ypIegnr_r0_lTR + 52
	40  Swinject                            0x00000001050885d2 $Sq_ypIegnr_ypIggr_q_ypIegnr_ypIegnr_r0_lTRTA + 50
	41  Swinject                            0x0000000105086c8e $S8Swinject9ContainerC7resolve33_B0248D9BB4D17AC900F06660C57FEB11LL5entry7invokerxSgAA20ServiceEntryProtocol_p_ypq_XEtr0_lF + 1454
	42  Swinject                            0x0000000105085eaf $S8Swinject9ContainerC8_resolve4name6option7invokerxSgSSSg_AA16ServiceKeyOption_pSgypypq_XEctr0_lF + 959
	43  Swinject                            0x0000000105089389 $S8Swinject9ContainerC7resolve_4namexSgxm_SSSgtlF + 201
	44  Swinject                            0x00000001050892b8 $S8Swinject9ContainerC7resolveyxSgxmlF + 56
	45  Swinject                            0x0000000105089574 $S8Swinject9ContainerCAA8ResolverA2aDP7resolveyqd__Sgqd__mlFTW + 20
	46  SwinjectAutoregistration            0x00000001051dbf44 $S8Swinject8ResolverP0A16AutoregistrationE7resolveqd__SgylF + 68
	47  SwinjectAutoregistration            0x00000001050f9186 $S8Swinject9ContainerC0A16AutoregistrationE12autoregister_4name11initializerAA12ServiceEntryCyxGxm_SSSgxq__q0_t_tctr1_lFxAA8Resolver_pcfU_ + 342
	48  SwinjectAutoregistration            0x00000001050f9535 $S8Swinject9ContainerC0A16AutoregistrationE12autoregister_4name11initializerAA12ServiceEntryCyxGxm_SSSgxq__q0_t_tctr1_lFxAA8Resolver_pcfU_TA + 69
	49  Swinject                            0x0000000105084e1f $S8Swinject8Resolver_pxIegnr_AaB_pypIegnr_lTR + 63
	50  Swinject                            0x0000000105084ebd $S8Swinject8Resolver_pxIegnr_AaB_pypIegnr_lTRTA + 29
	51  Swinject                            0x0000000105089428 $S8Swinject9ContainerC7resolve_4namexSgxm_SSSgtlFypypAA8Resolver_pXEcfU_ + 120
	52  Swinject                            0x000000010508944c $S8Swinject9ContainerC7resolve_4namexSgxm_SSSgtlFypypAA8Resolver_pXEcfU_TA + 12
	53  Swinject                            0x000000010508668b $Sq_ypIgnr_ypIegyr_q_ypIegnr_ypIeggr_r0_lTR + 75
	54  Swinject                            0x000000010508854d $Sq_ypIgnr_ypIegyr_q_ypIegnr_ypIeggr_r0_lTRTA + 61
	55  Swinject                            0x00000001050866d4 $Sq_ypIegnr_ypIggr_q_ypIegnr_ypIegnr_r0_lTR + 52
	56  Swinject                            0x00000001050885d2 $Sq_ypIegnr_ypIggr_q_ypIegnr_ypIegnr_r0_lTRTA + 50
	57  Swinject                            0x0000000105086c8e $S8Swinject9ContainerC7resolve33_B0248D9BB4D17AC900F06660C57FEB11LL5entry7invokerxSgAA20ServiceEntryProtocol_p_ypq_XEtr0_lF + 1454
	58  Swinject                            0x0000000105085eaf $S8Swinject9ContainerC8_resolve4name6option7invokerxSgSSSg_AA16ServiceKeyOption_pSgypypq_XEctr0_lF + 959
	59  Swinject                            0x0000000105089389 $S8Swinject9ContainerC7resolve_4namexSgxm_SSSgtlF + 201
	60  Swinject                            0x00000001050892b8 $S8Swinject9ContainerC7resolveyxSgxmlF + 56
	61  Swinject                            0x0000000105089574 $S8Swinject9ContainerCAA8ResolverA2aDP7resolveyqd__Sgqd__mlFTW + 20
	62  SwinjectAutoregistration            0x00000001051dbf44 $S8Swinject8ResolverP0A16AutoregistrationE7resolveqd__SgylF + 68
	63  SwinjectAutoregistration            0x0000000105100ff0 $S8Swinject9ContainerC0A16AutoregistrationE12autoregister_4name11initializerAA12ServiceEntryCyxGxm_SSSgxq__q0_q1_q2_q3_t_tctr4_lFxAA8Resolver_pcfU_ + 688
	64  SwinjectAutoregistration            0x000000010510192c $S8Swinject9ContainerC0A16AutoregistrationE12autoregister_4name11initializerAA12ServiceEntryCyxGxm_SSSgxq__q0_q1_q2_q3_t_tctr4_lFxAA8Resolver_pcfU_TA + 108
	65  Swinject                            0x0000000105084e1f $S8Swinject8Resolver_pxIegnr_AaB_pypIegnr_lTR + 63
	66  Swinject                            0x0000000105084ebd $S8Swinject8Resolver_pxIegnr_AaB_pypIegnr_lTRTA + 29
	67  Swinject                            0x0000000105089428 $S8Swinject9ContainerC7resolve_4namexSgxm_SSSgtlFypypAA8Resolver_pXEcfU_ + 120
	68  Swinject                            0x000000010508944c $S8Swinject9ContainerC7resolve_4namexSgxm_SSSgtlFypypAA8Resolver_pXEcfU_TA + 12
	69  Swinject                            0x000000010508668b $Sq_ypIgnr_ypIegyr_q_ypIegnr_ypIeggr_r0_lTR + 75
	70  Swinject                            0x000000010508854d $Sq_ypIgnr_ypIegyr_q_ypIegnr_ypIeggr_r0_lTRTA + 61
	71  Swinject                            0x00000001050866d4 $Sq_ypIegnr_ypIggr_q_ypIegnr_ypIegnr_r0_lTR + 52
	72  Swinject                            0x00000001050885d2 $Sq_ypIegnr_ypIggr_q_ypIegnr_ypIegnr_r0_lTRTA + 50
	73  Swinject                            0x0000000105086c8e $S8Swinject9ContainerC7resolve33_B0248D9BB4D17AC900F06660C57FEB11LL5entry7invokerxSgAA20ServiceEntryProtocol_p_ypq_XEtr0_lF + 1454
	74  Swinject                            0x0000000105085eaf $S8Swinject9ContainerC8_resolve4name6option7invokerxSgSSSg_AA16ServiceKeyOption_pSgypypq_XEctr0_lF + 959
	75  Swinject                            0x0000000105089389 $S8Swinject9ContainerC7resolve_4namexSgxm_SSSgtlF + 201
	76  Swinject                            0x00000001050892b8 $S8Swinject9ContainerC7resolveyxSgxmlF + 56
	77  Swinject                            0x0000000105089574 $S8Swinject9ContainerCAA8ResolverA2aDP7resolveyqd__Sgqd__mlFTW + 20
	78  SwinjectAutoregistration            0x00000001051dbf44 $S8Swinject8ResolverP0A16AutoregistrationE7resolveqd__SgylF + 68
	79  SwinjectAutoregistration            0x00000001050fa9d4 $S8Swinject9ContainerC0A16AutoregistrationE12autoregister_4name11initializerAA12ServiceEntryCyxGxm_SSSgxq__q0_q1_t_tctr2_lFxAA8Resolver_pcfU_ + 452
	80  SwinjectAutoregistration            0x00000001050faf43 $S8Swinject9ContainerC0A16AutoregistrationE12autoregister_4name11initializerAA12ServiceEntryCyxGxm_SSSgxq__q0_q1_t_tctr2_lFxAA8Resolver_pcfU_TA + 83
	81  Swinject                            0x0000000105084e1f $S8Swinject8Resolver_pxIegnr_AaB_pypIegnr_lTR + 63
	82  Swinject                            0x0000000105084ebd $S8Swinject8Resolver_pxIegnr_AaB_pypIegnr_lTRTA + 29
	83  Swinject                            0x0000000105089428 $S8Swinject9ContainerC7resolve_4namexSgxm_SSSgtlFypypAA8Resolver_pXEcfU_ + 120
	84  Swinject                            0x000000010508944c $S8Swinject9ContainerC7resolve_4namexSgxm_SSSgtlFypypAA8Resolver_pXEcfU_TA + 12
	85  Swinject                            0x000000010508668b $Sq_ypIgnr_ypIegyr_q_ypIegnr_ypIeggr_r0_lTR + 75
	86  Swinject                            0x000000010508854d $Sq_ypIgnr_ypIegyr_q_ypIegnr_ypIeggr_r0_lTRTA + 61
	87  Swinject                            0x00000001050866d4 $Sq_ypIegnr_ypIggr_q_ypIegnr_ypIegnr_r0_lTR + 52
	88  Swinject                            0x00000001050885d2 $Sq_ypIegnr_ypIggr_q_ypIegnr_ypIegnr_r0_lTRTA + 50
	89  Swinject                            0x0000000105086c8e $S8Swinject9ContainerC7resolve33_B0248D9BB4D17AC900F06660C57FEB11LL5entry7invokerxSgAA20ServiceEntryProtocol_p_ypq_XEtr0_lF + 1454
	90  Swinject                            0x0000000105085eaf $S8Swinject9ContainerC8_resolve4name6option7invokerxSgSSSg_AA16ServiceKeyOption_pSgypypq_XEctr0_lF + 959
	91  Swinject                            0x0000000105089389 $S8Swinject9ContainerC7resolve_4namexSgxm_SSSgtlF + 201
	92  Swinject                            0x00000001050892b8 $S8Swinject9ContainerC7resolveyxSgxmlF + 56
	93  MyApp                   0x00000001046a081d $S17MyApp11AppDelegateC11application_29didFinishLaunchingWithOptionsSbSo13UIApplicationC_SDySo0l6LaunchK3KeyaypGSgtFyycfU_ + 189
	94  MyApp                   0x00000001046a0941 $S17MyApp11AppDelegateC11application_29didFinishLaunchingWithOptionsSbSo13UIApplicationC_SDySo0l6LaunchK3KeyaypGSgtFyycfU_TA + 17
	95  MyApp                   0x00000001046a09ad $SIeg_IeyB_TR + 45
	96  libdispatch.dylib                   0x000000010b12c848 _dispatch_client_callout + 8
	97  libdispatch.dylib                   0x000000010b132b35 _dispatch_continuation_pop + 967
	98  libdispatch.dylib                   0x000000010b13dfa6 _dispatch_source_invoke + 1635
	99  libdispatch.dylib                   0x000000010b137b9e _dispatch_main_queue_callback_4CF + 1255
	100 CoreFoundation                      0x0000000106c7dc99 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
	101 CoreFoundation                      0x0000000106c41ea6 __CFRunLoopRun + 2342
	102 CoreFoundation                      0x0000000106c4130b CFRunLoopRunSpecific + 635
	103 GraphicsServices                    0x000000010d633a73 GSEventRunModal + 62
	104 UIKit                               0x00000001080f20b7 UIApplicationMain + 159
	105 MyApp                   0x00000001046a2057 main + 71
	106 libdyld.dylib                       0x000000010b1a9955 start + 1
)

I also tried without Swinject with the same results. I got the same classes and relationships on Android and it works.

Proposal: change code generation a bit, to support more expressive and easy syntax

I've skipped implementation details, in order to focus on API impact.

Here is the usage example

class TestEntity {
    var test: Int = 0
    var str: String = ""
}

// The key point is how we generate props descriptors
extension Prop where E == TestEntity {
    static let test: Prop<TestEntity, Int> = .init(name: "test")
    static let str: Prop<TestEntity, String> = .init(name: "str")
}

let box = Box<TestEntity>()
let objects = box.query(.test >= 5 && .test <= 10 || .str == "test")

And here is how it can be achieved:

struct Prop<E, V> {
    let name: String
}

struct Query<E> {
}

extension Query {
    static func equals<V>(prop: Prop<E, V>, with: V) -> Query {
        return Query()
    }

    static func starts<V>(prop: Prop<E, V>, with: V) -> Query {
        return Query()
    }

    static func ends<V>(prop: Prop<E, V>, with: V) -> Query {
        return Query()
    }
}

struct Box<E> {
    func query(builder: () -> Query<E>) -> [E] {
        return []
    }

    func query(_ query: Query<E>) -> [E] {
        return []
    }
}

func == <E, V>(lhs: Prop<E, V>, rhs: V) -> Query<E> {
    return .equals(prop: lhs, with: rhs)
}

func >= <E, V>(lhs: Prop<E, V>, rhs: V) -> Query<E> {
    return .starts(prop: lhs, with: rhs)
}

func <= <E, V>(lhs: Prop<E, V>, rhs: V) -> Query<E> {
    return .ends(prop: lhs, with: rhs)
}

func && <E>(lhs: Query<E>, rhs: Query<E>) -> Query<E> {
    return .init()
}

func || <E>(lhs: Query<E>, rhs: Query<E>) -> Query<E> {
    return .init()
}

Question: Generated Entity Info to include framework models

This is more of a specific question than an overall issue. I am wondering if there is a way for the generate_sources script to also include models included in a framework, In this case, a cocoapod. I am working on a project that has two apps with an internal pod used within both apps. Both apps shared most of the models so they are included within the core framework.

Is there a way I can have Sourcery also generate entity info for the models included in a different module?

Documentation not up-to-date?

A store should be created in the following way according to the getting started guide:
let store = Store(directoryPath: "/path/to/the/store")

Note though that Store throws so Xcode will correctly show the following error:
Call can throw, but it is not marked with 'try' and the error is not handled

It would also be great to provide a real directory path suggestion for the Store constructor.

"Could not open env for DB (12)"

Hi,

I have experienced some issue with ObjectBox, I am using the latest release v1.2.0 and running on iOS 13.4.

My app sometimes crashes when I call "try Store(directoryPath: directory.path)", therefore I downloaded this repo to run the example and the issues can still be reproduced.

Please see the full error message as following:
Fatal error: 'try!' expression unexpectedly raised an error: ObjectBox.ObjectBoxError.storageGeneral(message: "Could not open env for DB (12)"): file /Users/garylin/Documents/objectbox-swift-master/Example/NotesExample-iOS/Services.swift, line 13

Thanks.

ToMany removeAll bug

if I call
toMany.removeAll()

then later on, whenever I try to save new items in toMany
toMany.append(obj)
toMany.applyToDb()

=> raise an exception

I think
toMany.removeAll()
toMany.append(obj)

should be equivalent to

toMany.replace([obj])
(which works)

but its not

toMany.removeAll() seems to erase its "referencedBox" inner state which makes subsequent call to applyToDb crash

Preferred C API

You said "let us know what you think", but not sure of the best place to do that. Really looking forward to trying this out, but not sure how or if I should yet.

Ideally, no Objective-C, and you can just have the C++ version back swift (C++ wrapped in a standard C api). This will allow the library to take full advantage of swift optimizations. Otherwise, it's just using the Objective-C runtime, and is an ergonomic choice.

Code generation doesn't work

Describe the bug
It used to work several months ago when I was using version 1.1 but now the code for the entities won't get generated on build anymore.

Basic info (please complete the following information):

  • ObjectBox version 1.3.1
  • Reproducibility: always
  • Device: iPhone 11 (simulator)
  • OS: iOS 13

To Reproduce
Steps to reproduce the behavior:

  1. Follow instructions on https://swift.objectbox.io/install
  2. run Pods/ObjectBox/setup.rb and got "🔸 No changes made to project. "
MacBook-Pro:CoreIOS HaiNguyen$ pod install
Analyzing dependencies
Downloading dependencies
Installing Alamofire (5.0.2)
Installing ColorThiefSwift (0.4.0)
Installing Crashlytics (3.14.0)
Installing Fabric (1.10.2)
Installing Firebase (6.19.0)
Installing FirebaseAnalytics (6.3.1)
Installing FirebaseAuth (6.4.3)
Installing FirebaseAuthInterop (1.1.0)
Installing FirebaseCore (6.6.4)
Installing FirebaseCoreDiagnostics (1.2.2)
Installing FirebaseCoreDiagnosticsInterop (1.2.0)
Installing FirebaseDatabase (6.1.4)
Installing FirebaseInstallations (1.1.0)
Installing GTMSessionFetcher (1.3.1)
Installing GoogleAppMeasurement (6.3.1)
Installing GoogleDataTransport (5.0.0)
Installing GoogleDataTransportCCTSupport (2.0.0)
Installing GoogleUtilities (6.5.1)
Installing ObjectBox (1.3.1)
Installing PromisesObjC (1.2.8)
Installing leveldb-library (1.22)
Installing nanopb (0.3.9011)
Generating Pods project
Integrating client project
Pod installation complete! There are 10 dependencies from the Podfile and 22 total pods installed.
MacBook-Pro:CoreIOS HaiNguyen$ Pods/ObjectBox/setup.rb
 ObjectBox Project Setup 

🔸 Looking for project files in the current directory ...
🔸 Found a single project.
🔸 Using "/Users/HaiNguyen/Documents/githubProject/JournalIt/journal_it/ios/CoreIOS/CoreIOS.xcodeproj"

 🔸 No changes made to project. 

 💬 Please remember to use the .xcworkspace CocoaPods created from now on instead of your project.
  1. Comment the test function (below) -> build -> uncomment the test function -> "Type 'User' does not conform to protocol 'EntityInspectable'"

Code

import Foundation
import ObjectBox
// objectbox: entity
 class User {
    var id: Id = 0

    var name: String = "fdf"
    
    init() {
        
    }
    
 static func test(box: Box<User>){
 }
 }

Additional context

  • It's in a Swift module that shared to another iOS project
  • No file was generated in the generated folder

No example for how to use 0.9 Store() constructor

Documentation shows:
/// Create a new store.
/// - Parameter model: A model description generated using ObjectBox.modelBuilder
/// - Parameter directory: The path to thedirectory in which ObjectBox is to save the files related to the database.
/// - Parameter maxDbSizeInKByte: Maximum size the database may take up on disk.
/// - Parameter fileMode: The unix permissions (like 0o755) to use for creating the database files.
/// - Parameter maxReaders: How many threads may be reading at the same time at once.

but no examples of how to use ObjectBox.modelBuilder

Example Error

"Type 'Author' does not conform to protocol 'EntityInspectable'
"Type 'Note' does not conform to protocol 'EntityInspectable'"
....
Please fix error help me
Screen Shot 2021-01-07 at 10 03 25 AM
Xcode 12.2, iOS 14.2

Inheritance Support

Is there any plan to support inheritance in entities? If it is currently supported, is there any example that shows such usage?

Crash at launch after upgrading to 1.4

Describe the bug
I was using 1.3.1 but then encounter the issue "Could not open env for DB (12)". I try to upgrade to 1.4.1 and 1.4.0 but the app crash at launch with:

dyld: symbol '_$s9ObjectBox13EntityBindingP09generatorD7VersionSiyFTq' not found, expected in '/private/var/containers/Bundle/Application/4D3A6114-9D36-4C10-856E-9FD825083863/Journal it!.app/Frameworks/ObjectBox.framework/ObjectBox', needed by '/private/var/containers/Bundle/Application/4D3A6114-9D36-4C10-856E-9FD825083863/Journal it!.app/Frameworks/CoreIOS.framework/CoreIOS'

ObjectBox is used in the common module CoreIOS. The generator script seems to work:
"$PODS_ROOT/ObjectBox/generate_sources.sh" -- --output "$PROJECT_DIR/generated/EntityInfo-CoreIOS.generated.swift" --model-json "$PROJECT_DIR/model-CoreIOS.json" # add this parameter to make entities exportable: --visibility public

Basic info (please complete the following information):

  • ObjectBox version 1.4.1/1.4.0
  • Reproducibility: always
  • Device: iPhone 6s
  • OS: iOS 14.2

To Reproduce
Steps to reproduce the behavior:

  1. Upgrade Objectbox following https://swift.objectbox.io/install
  2. Build
  3. Crash at launch

ObjectBox bitcode support

I have an error when trying to compile the project:

'Pods/ObjectBox/Carthage/Build/iOS/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. file 'Pods/ObjectBox/Carthage/Build/iOS/ObjectBox.framework/ObjectBox' for architecture arm64

ObjectBox was added via CocoaPods. The issue is related to 1.0.1 and 1.0 version (I didn't check the previous ones).

When compiling ObjectBox.framework you need to enable bitcode for your project and all dependencies.

Can you fix this issue? I would like to use ObjectBox in my future projects, but because of that, I need to disable bitcode in the whole project.

dbFull(message: "Remove failed"): && ObjectBox.ObjectBoxError.dbFull(message: "Could not put")

Issue Basics

ObjectBoxSwift Version :- v1.3.0

Description:-

My scenario is to store a large amount of data to the DB. I got an Exception when I try to put data into the database and delete data from DB(Happened after a few days).

Issue 1:- dbFull(message: "Remove failed")
Log:-
[ERROR] Storage error code -30792
Error occurred: Remove failed (10101)
Fatal error: Unexpected error creating query: dbFull(message: "Remove failed"): file /Users/markus/dev/objectbox-swift/ios-framework/CommonSource/Query/Box+Query.swift, line 58

Issue 2:- ObjectBox.ObjectBoxError.dbFull(message: "Could not put")
Log:-
[ERROR] Storage error code -30792
Error occurred: Could not put (10101)
ObjectBox.ObjectBoxError.dbFull(message: "Could not put")

Please advice the solution for this

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.