diff --git a/README.md b/README.md index 13c2f724..ee805f6a 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,8 @@ The ReactNative example project is in the `examples/ReactExample` directory. You ## ReactNative Project Setup - Create a new ReactNative project `react-native init ` and open the generated XCode project. - Drag `RealmJS.xcodeproj` into the `Libraries` folder in your project. -- Drag `RealmReact.framework` from the `Products` directory under `RealmJS.xcodeproj` into the `Embedded Binaries` section in the `General` tab for your app's target settings. This bundles the library with your app. -- In the `Build Phases` tab for your app's target settings, add `RealmReact.framework` in the `Target Dependencies` and `Link Binary with Library` build phases. +- Drag `RealmReact.framework` from the `Products` directory under `RealmJS.xcodeproj` into the `Embedded Binaries` section in the `General` tab for your app's target settings. Make sure the checkbox under `Code Sign On Copy` is **not checked** because having it checked will cause issues when trying to run your app on a device. +- In the `Build Phases` tab for your app's target settings, add `RealmReact.framework` to the `Link Binary with Library` build phases. - In your app's `package.json` file, add the `realm` dependency with a path to the `realm-js/lib` folder like this: `"realm": "file:path/to/realm-js/lib"` (symlinks are not yet supported by the React Native packager, see [issue #637](https://github.com/facebook/react-native/issues/637)). - You can now `require('realm')` in your app's JS to use Realm! diff --git a/RealmJS.mm b/RealmJS.mm new file mode 100644 index 00000000..ac19f0d0 --- /dev/null +++ b/RealmJS.mm @@ -0,0 +1,7 @@ +/* Copyright 2015 Realm Inc - All Rights Reserved + * Proprietary and Confidential + */ + +#import "RealmJS.h" + +// This file needs to exist for RealmJS.framework to build properly. diff --git a/RealmJS.xcodeproj/project.pbxproj b/RealmJS.xcodeproj/project.pbxproj index 9d4f8a60..5bb455e6 100644 --- a/RealmJS.xcodeproj/project.pbxproj +++ b/RealmJS.xcodeproj/project.pbxproj @@ -8,19 +8,13 @@ /* Begin PBXBuildFile section */ 02409DC21BCF11D6005F3B3E /* RealmJSCoreTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 02409DC11BCF11D6005F3B3E /* RealmJSCoreTests.m */; }; - 02601F081BA0F0CD007C91FF /* index_set.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 02601F051BA0F0CD007C91FF /* index_set.cpp */; }; 02601F091BA0F0CD007C91FF /* index_set.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 02601F061BA0F0CD007C91FF /* index_set.hpp */; }; - 02601F0D1BA0F3A7007C91FF /* schema.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 02601F0B1BA0F3A7007C91FF /* schema.cpp */; }; 02601F0E1BA0F3A7007C91FF /* schema.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 02601F0C1BA0F3A7007C91FF /* schema.hpp */; }; 0270BC681B7CFC1C00010E03 /* object_accessor.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 0270BC5D1B7CFC1C00010E03 /* object_accessor.hpp */; }; - 0270BC691B7CFC1C00010E03 /* object_schema.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0270BC5E1B7CFC1C00010E03 /* object_schema.cpp */; }; 0270BC6A1B7CFC1C00010E03 /* object_schema.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 0270BC5F1B7CFC1C00010E03 /* object_schema.hpp */; }; - 0270BC6B1B7CFC1C00010E03 /* object_store.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0270BC601B7CFC1C00010E03 /* object_store.cpp */; }; 0270BC6C1B7CFC1C00010E03 /* object_store.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 0270BC611B7CFC1C00010E03 /* object_store.hpp */; }; 0270BC6D1B7CFC1C00010E03 /* property.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 0270BC621B7CFC1C00010E03 /* property.hpp */; }; - 0270BC6E1B7CFC1C00010E03 /* results.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0270BC631B7CFC1C00010E03 /* results.cpp */; }; 0270BC6F1B7CFC1C00010E03 /* results.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 0270BC641B7CFC1C00010E03 /* results.hpp */; }; - 0270BC701B7CFC1C00010E03 /* shared_realm.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0270BC651B7CFC1C00010E03 /* shared_realm.cpp */; }; 0270BC711B7CFC1C00010E03 /* shared_realm.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 0270BC661B7CFC1C00010E03 /* shared_realm.hpp */; }; 0270BC811B7D020100010E03 /* ObjectTests.js in Resources */ = {isa = PBXBuildFile; fileRef = 0270BC791B7D020100010E03 /* ObjectTests.js */; }; 0270BC821B7D020100010E03 /* RealmJSTests.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0270BC7B1B7D020100010E03 /* RealmJSTests.mm */; }; @@ -30,40 +24,24 @@ 0270BC861B7D020100010E03 /* schemas.js in Resources */ = {isa = PBXBuildFile; fileRef = 0270BC7F1B7D020100010E03 /* schemas.js */; }; 0270BC871B7D023200010E03 /* RealmJS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 02B58CB11AE99CEC009B348C /* RealmJS.framework */; }; 0270BCD11B7D067300010E03 /* RealmReact.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0270BCD01B7D067300010E03 /* RealmReact.mm */; }; - 02786E331BF1065100937061 /* parser.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 02786E311BF1065000937061 /* parser.cpp */; }; 02786E341BF1065100937061 /* parser.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 02786E321BF1065000937061 /* parser.hpp */; }; - 029048111C0428DF00ABDED4 /* js_init.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 029048011C0428DF00ABDED4 /* js_init.cpp */; }; 029048121C0428DF00ABDED4 /* js_init.h in Headers */ = {isa = PBXBuildFile; fileRef = 029048021C0428DF00ABDED4 /* js_init.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 029048131C0428DF00ABDED4 /* js_list.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 029048031C0428DF00ABDED4 /* js_list.cpp */; }; 029048141C0428DF00ABDED4 /* js_list.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 029048041C0428DF00ABDED4 /* js_list.hpp */; }; - 029048151C0428DF00ABDED4 /* js_object.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 029048051C0428DF00ABDED4 /* js_object.cpp */; }; 029048161C0428DF00ABDED4 /* js_object.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 029048061C0428DF00ABDED4 /* js_object.hpp */; }; - 029048171C0428DF00ABDED4 /* js_realm.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 029048071C0428DF00ABDED4 /* js_realm.cpp */; }; 029048181C0428DF00ABDED4 /* js_realm.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 029048081C0428DF00ABDED4 /* js_realm.hpp */; }; - 029048191C0428DF00ABDED4 /* js_results.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 029048091C0428DF00ABDED4 /* js_results.cpp */; }; 0290481A1C0428DF00ABDED4 /* js_results.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 0290480A1C0428DF00ABDED4 /* js_results.hpp */; }; - 0290481B1C0428DF00ABDED4 /* js_schema.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0290480B1C0428DF00ABDED4 /* js_schema.cpp */; }; 0290481C1C0428DF00ABDED4 /* js_schema.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 0290480C1C0428DF00ABDED4 /* js_schema.hpp */; }; - 0290481D1C0428DF00ABDED4 /* js_util.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0290480D1C0428DF00ABDED4 /* js_util.cpp */; }; 0290481E1C0428DF00ABDED4 /* js_util.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 0290480E1C0428DF00ABDED4 /* js_util.hpp */; }; - 0290481F1C0428DF00ABDED4 /* rpc.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0290480F1C0428DF00ABDED4 /* rpc.cpp */; }; 029048201C0428DF00ABDED4 /* rpc.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 029048101C0428DF00ABDED4 /* rpc.hpp */; settings = {ATTRIBUTES = (Public, ); }; }; 029048371C042A3C00ABDED4 /* platform.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 029048351C042A3C00ABDED4 /* platform.hpp */; }; - 029048391C042A8F00ABDED4 /* platform.mm in Sources */ = {isa = PBXBuildFile; fileRef = 029048381C042A8F00ABDED4 /* platform.mm */; }; 0290483B1C042EE200ABDED4 /* RealmJS.h in Headers */ = {isa = PBXBuildFile; fileRef = 0290483A1C042EE200ABDED4 /* RealmJS.h */; settings = {ATTRIBUTES = (Public, ); }; }; 0291DBD21BD994F700E3852C /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 02B58CCD1AE99D4D009B348C /* JavaScriptCore.framework */; }; - 029445931BDEDF40006D1617 /* transact_log_handler.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 029445911BDEDF40006D1617 /* transact_log_handler.cpp */; }; 029445941BDEDF40006D1617 /* transact_log_handler.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 029445921BDEDF40006D1617 /* transact_log_handler.hpp */; }; - 029445971BDEDF46006D1617 /* external_commit_helper.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 029445951BDEDF46006D1617 /* external_commit_helper.cpp */; }; 029445981BDEDF46006D1617 /* external_commit_helper.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 029445961BDEDF46006D1617 /* external_commit_helper.hpp */; }; - 0294465E1BF27DE6006D1617 /* query_builder.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0294465C1BF27DE6006D1617 /* query_builder.cpp */; }; 0294465F1BF27DE6006D1617 /* query_builder.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 0294465D1BF27DE6006D1617 /* query_builder.hpp */; }; - 02B29A311B7CF86D008A7E6B /* RealmJS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 02B58CB11AE99CEC009B348C /* RealmJS.framework */; }; 02B58CCE1AE99D4D009B348C /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 02B58CCD1AE99D4D009B348C /* JavaScriptCore.framework */; }; - 02C0864E1BCDB27000942F9C /* list.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 02C0864C1BCDB27000942F9C /* list.cpp */; }; 02C0864F1BCDB27000942F9C /* list.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 02C0864D1BCDB27000942F9C /* list.hpp */; }; 02D0F23B1BF6C95200B4FC45 /* binding_context.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 02D0F23A1BF6C95200B4FC45 /* binding_context.hpp */; }; - 02D0F2D61C037C3400B4FC45 /* GCDWebServers.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 021CEA3C1BFD1BA000D69390 /* GCDWebServers.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 02D456DA1B7E59A500EE1299 /* ArrayTests.js in Resources */ = {isa = PBXBuildFile; fileRef = 02D456D91B7E59A500EE1299 /* ArrayTests.js */; }; 02D8D1F71B601984006DB49D /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 02B58CCD1AE99D4D009B348C /* JavaScriptCore.framework */; }; 02E9A9F11BFA84F100939F86 /* QueryTests.js in Resources */ = {isa = PBXBuildFile; fileRef = 02E9A9F01BFA84F100939F86 /* QueryTests.js */; }; @@ -71,51 +49,56 @@ 02EF76861BFFDE37000D5BAD /* test.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 02EF76851BFFDE37000D5BAD /* test.cpp */; }; 02EF76881BFFDE9E000D5BAD /* GrammarTests.mm in Sources */ = {isa = PBXBuildFile; fileRef = 02EF76871BFFDE9E000D5BAD /* GrammarTests.mm */; }; F636F6C81BCDB3570023F35C /* RealmReact.h in Headers */ = {isa = PBXBuildFile; fileRef = 0270BCCF1B7D067300010E03 /* RealmReact.h */; settings = {ATTRIBUTES = (Public, ); }; }; - F64426C51BCDB1E200A81210 /* RealmJS.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 02B58CB11AE99CEC009B348C /* RealmJS.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + F63FF2C61C12469E00B3B8E0 /* js_init.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 029048011C0428DF00ABDED4 /* js_init.cpp */; }; + F63FF2C71C12469E00B3B8E0 /* js_list.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 029048031C0428DF00ABDED4 /* js_list.cpp */; }; + F63FF2C81C12469E00B3B8E0 /* js_object.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 029048051C0428DF00ABDED4 /* js_object.cpp */; }; + F63FF2C91C12469E00B3B8E0 /* js_realm.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 029048071C0428DF00ABDED4 /* js_realm.cpp */; }; + F63FF2CA1C12469E00B3B8E0 /* js_results.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 029048091C0428DF00ABDED4 /* js_results.cpp */; }; + F63FF2CB1C12469E00B3B8E0 /* js_schema.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0290480B1C0428DF00ABDED4 /* js_schema.cpp */; }; + F63FF2CC1C12469E00B3B8E0 /* js_util.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0290480D1C0428DF00ABDED4 /* js_util.cpp */; }; + F63FF2CD1C12469E00B3B8E0 /* rpc.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0290480F1C0428DF00ABDED4 /* rpc.cpp */; }; + F63FF2CE1C12469E00B3B8E0 /* object_schema.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0270BC5E1B7CFC1C00010E03 /* object_schema.cpp */; }; + F63FF2CF1C12469E00B3B8E0 /* object_store.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0270BC601B7CFC1C00010E03 /* object_store.cpp */; }; + F63FF2D01C12469E00B3B8E0 /* results.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0270BC631B7CFC1C00010E03 /* results.cpp */; }; + F63FF2D11C12469E00B3B8E0 /* shared_realm.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0270BC651B7CFC1C00010E03 /* shared_realm.cpp */; }; + F63FF2D21C12469E00B3B8E0 /* index_set.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 02601F051BA0F0CD007C91FF /* index_set.cpp */; }; + F63FF2D31C12469E00B3B8E0 /* list.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 02C0864C1BCDB27000942F9C /* list.cpp */; }; + F63FF2D41C12469E00B3B8E0 /* schema.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 02601F0B1BA0F3A7007C91FF /* schema.cpp */; }; + F63FF2D51C12469E00B3B8E0 /* transact_log_handler.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 029445911BDEDF40006D1617 /* transact_log_handler.cpp */; }; + F63FF2D61C12469E00B3B8E0 /* external_commit_helper.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 029445951BDEDF46006D1617 /* external_commit_helper.cpp */; }; + F63FF2D71C12469E00B3B8E0 /* parser.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 02786E311BF1065000937061 /* parser.cpp */; }; + F63FF2D81C12469E00B3B8E0 /* query_builder.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0294465C1BF27DE6006D1617 /* query_builder.cpp */; }; + F63FF2DE1C1565EA00B3B8E0 /* RealmJS.mm in Sources */ = {isa = PBXBuildFile; fileRef = F63FF2DC1C15659A00B3B8E0 /* RealmJS.mm */; }; + F63FF2E11C1591EC00B3B8E0 /* libRealmJS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = F63FF2B11C1241E500B3B8E0 /* libRealmJS.a */; }; + F63FF2E21C15921A00B3B8E0 /* base64.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F6BB7DEF1BF681BC00D0A69E /* base64.cpp */; }; + F63FF2E81C159C4B00B3B8E0 /* platform.mm in Sources */ = {isa = PBXBuildFile; fileRef = 029048381C042A8F00ABDED4 /* platform.mm */; }; + F63FF2E91C159E9700B3B8E0 /* libRealmJS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = F63FF2B11C1241E500B3B8E0 /* libRealmJS.a */; }; + F63FF31B1C1642BB00B3B8E0 /* GCDWebServer.m in Sources */ = {isa = PBXBuildFile; fileRef = F63FF2FE1C1642BB00B3B8E0 /* GCDWebServer.m */; }; + F63FF31C1C1642BB00B3B8E0 /* GCDWebServerConnection.m in Sources */ = {isa = PBXBuildFile; fileRef = F63FF3001C1642BB00B3B8E0 /* GCDWebServerConnection.m */; }; + F63FF31D1C1642BB00B3B8E0 /* GCDWebServerFunctions.m in Sources */ = {isa = PBXBuildFile; fileRef = F63FF3021C1642BB00B3B8E0 /* GCDWebServerFunctions.m */; }; + F63FF31E1C1642BB00B3B8E0 /* GCDWebServerRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = F63FF3061C1642BB00B3B8E0 /* GCDWebServerRequest.m */; }; + F63FF31F1C1642BB00B3B8E0 /* GCDWebServerResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = F63FF3081C1642BB00B3B8E0 /* GCDWebServerResponse.m */; }; + F63FF3201C1642BB00B3B8E0 /* GCDWebServerDataRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = F63FF30B1C1642BB00B3B8E0 /* GCDWebServerDataRequest.m */; }; + F63FF3211C1642BB00B3B8E0 /* GCDWebServerFileRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = F63FF30D1C1642BB00B3B8E0 /* GCDWebServerFileRequest.m */; }; + F63FF3221C1642BB00B3B8E0 /* GCDWebServerMultiPartFormRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = F63FF30F1C1642BB00B3B8E0 /* GCDWebServerMultiPartFormRequest.m */; }; + F63FF3231C1642BB00B3B8E0 /* GCDWebServerURLEncodedFormRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = F63FF3111C1642BB00B3B8E0 /* GCDWebServerURLEncodedFormRequest.m */; }; + F63FF3241C1642BB00B3B8E0 /* GCDWebServerDataResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = F63FF3141C1642BB00B3B8E0 /* GCDWebServerDataResponse.m */; }; + F63FF3251C1642BB00B3B8E0 /* GCDWebServerErrorResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = F63FF3161C1642BB00B3B8E0 /* GCDWebServerErrorResponse.m */; }; + F63FF3261C1642BB00B3B8E0 /* GCDWebServerFileResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = F63FF3181C1642BB00B3B8E0 /* GCDWebServerFileResponse.m */; }; + F63FF3271C1642BB00B3B8E0 /* GCDWebServerStreamedResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = F63FF31A1C1642BB00B3B8E0 /* GCDWebServerStreamedResponse.m */; }; + F63FF3291C16430C00B3B8E0 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F63FF3281C16430C00B3B8E0 /* UIKit.framework */; }; + F63FF32B1C16432700B3B8E0 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F63FF32A1C16432700B3B8E0 /* MobileCoreServices.framework */; }; + F63FF32D1C16432E00B3B8E0 /* CFNetwork.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F63FF32C1C16432E00B3B8E0 /* CFNetwork.framework */; }; + F63FF32F1C16433900B3B8E0 /* libxml2.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = F63FF32E1C16433900B3B8E0 /* libxml2.tbd */; }; + F63FF3311C16434400B3B8E0 /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = F63FF3301C16434400B3B8E0 /* libz.tbd */; }; F64E1EF11BC3510E00E0E150 /* util.js in Resources */ = {isa = PBXBuildFile; fileRef = F64E1EF01BC3510E00E0E150 /* util.js */; }; F68A278C1BC2722A0063D40A /* RJSModuleLoader.m in Sources */ = {isa = PBXBuildFile; fileRef = F68A278B1BC2722A0063D40A /* RJSModuleLoader.m */; }; F68A278E1BC30F0A0063D40A /* index.js in Resources */ = {isa = PBXBuildFile; fileRef = F68A278D1BC30F0A0063D40A /* index.js */; }; - F6BB7DF11BF681BC00D0A69E /* base64.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F6BB7DEF1BF681BC00D0A69E /* base64.cpp */; }; F6BB7DF21BF681BC00D0A69E /* base64.hpp in Headers */ = {isa = PBXBuildFile; fileRef = F6BB7DF01BF681BC00D0A69E /* base64.hpp */; }; F6F405F81BCF0C1A00A1E24F /* base-test.js in Resources */ = {isa = PBXBuildFile; fileRef = F6F405F71BCF0C1A00A1E24F /* base-test.js */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ - 021CEA351BFD1BA000D69390 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 02A3C7841BC4317A00B1A7BE /* GCDWebServer.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 8DD76FB20486AB0100D96B5E; - remoteInfo = "GCDWebServer (Mac)"; - }; - 021CEA371BFD1BA000D69390 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 02A3C7841BC4317A00B1A7BE /* GCDWebServer.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = E221125A1690B4DE0048D2B2; - remoteInfo = "GCDWebServer (iOS)"; - }; - 021CEA391BFD1BA000D69390 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 02A3C7841BC4317A00B1A7BE /* GCDWebServer.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = CEE28CD11AE004D800F4023C; - remoteInfo = "GCDWebServers (Mac)"; - }; - 021CEA3B1BFD1BA000D69390 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 02A3C7841BC4317A00B1A7BE /* GCDWebServer.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = CEE28CEF1AE0051F00F4023C; - remoteInfo = "GCDWebServers (iOS)"; - }; - 021CEA3D1BFD1BA000D69390 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 02A3C7841BC4317A00B1A7BE /* GCDWebServer.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = E24039251BA09207000B7089; - remoteInfo = "Tests (Mac)"; - }; 022D59351C043341001E25FE /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 022D59301C043340001E25FE /* ReactTests.xcodeproj */; @@ -130,13 +113,6 @@ remoteGlobalIDString = 00E356EE1AD99517003FC87E; remoteInfo = RealmReactTests; }; - 02B29A2F1B7CF7ED008A7E6B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 02B58CA81AE99CEB009B348C /* Project object */; - proxyType = 1; - remoteGlobalIDString = 02B58CB01AE99CEC009B348C; - remoteInfo = RealmJS; - }; 02B58CBE1AE99CEC009B348C /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 02B58CA81AE99CEB009B348C /* Project object */; @@ -144,40 +120,37 @@ remoteGlobalIDString = 02B58CB01AE99CEC009B348C; remoteInfo = RealmJS; }; - 02D0F2A01C03775600B4FC45 /* PBXContainerItemProxy */ = { + F63FF2E41C159B2C00B3B8E0 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 02A3C7841BC4317A00B1A7BE /* GCDWebServer.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = E2DDD1C71BE698A8002CE867; - remoteInfo = "GCDWebServer (tvOS)"; - }; - 02D0F2A21C03775600B4FC45 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 02A3C7841BC4317A00B1A7BE /* GCDWebServer.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = E2DDD18B1BE69404002CE867; - remoteInfo = "GCDWebServers (tvOS)"; - }; - 02D0F2D41C037C1700B4FC45 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 02A3C7841BC4317A00B1A7BE /* GCDWebServer.xcodeproj */; + containerPortal = 02B58CA81AE99CEB009B348C /* Project object */; proxyType = 1; - remoteGlobalIDString = CEE28CEE1AE0051F00F4023C; - remoteInfo = "GCDWebServers (iOS)"; + remoteGlobalIDString = F63FF2B01C1241E500B3B8E0; + remoteInfo = "RealmJS static"; + }; + F63FF2EA1C159EAF00B3B8E0 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 02B58CA81AE99CEB009B348C /* Project object */; + proxyType = 1; + remoteGlobalIDString = F63FF2B01C1241E500B3B8E0; + remoteInfo = "RealmJS static"; + }; + F63FF3321C16435400B3B8E0 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 02B58CA81AE99CEB009B348C /* Project object */; + proxyType = 1; + remoteGlobalIDString = F63FF2EF1C16405C00B3B8E0; + remoteInfo = GCDWebServers; }; /* End PBXContainerItemProxy section */ /* Begin PBXCopyFilesBuildPhase section */ - F64426BF1BCDA3FE00A81210 /* Embed Frameworks */ = { + F63FF2EE1C16405C00B3B8E0 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; + dstPath = "include/$(PRODUCT_NAME)"; + dstSubfolderSpec = 16; files = ( - 02D0F2D61C037C3400B4FC45 /* GCDWebServers.framework in Embed Frameworks */, - F64426C51BCDB1E200A81210 /* RealmJS.framework in Embed Frameworks */, ); - name = "Embed Frameworks"; runOnlyForDeploymentPostprocessing = 0; }; /* End PBXCopyFilesBuildPhase section */ @@ -237,7 +210,6 @@ 029445961BDEDF46006D1617 /* external_commit_helper.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = external_commit_helper.hpp; path = "src/object-store/impl/apple/external_commit_helper.hpp"; sourceTree = ""; }; 0294465C1BF27DE6006D1617 /* query_builder.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = query_builder.cpp; path = "src/object-store/parser/query_builder.cpp"; sourceTree = ""; }; 0294465D1BF27DE6006D1617 /* query_builder.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = query_builder.hpp; path = "src/object-store/parser/query_builder.hpp"; sourceTree = ""; }; - 02A3C7841BC4317A00B1A7BE /* GCDWebServer.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = GCDWebServer.xcodeproj; path = GCDWebServer/GCDWebServer.xcodeproj; sourceTree = ""; }; 02A3C7A41BC4341500B1A7BE /* libc++.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = "libc++.tbd"; path = "usr/lib/libc++.tbd"; sourceTree = SDKROOT; }; 02B29A161B7CF7C9008A7E6B /* RealmReact.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = RealmReact.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 02B58CB11AE99CEC009B348C /* RealmJS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = RealmJS.framework; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -251,6 +223,42 @@ 02EF76751BFFD41F000D5BAD /* queryTests.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; name = queryTests.json; path = "src/object-store/parser/queryTests.json"; sourceTree = SOURCE_ROOT; }; 02EF76851BFFDE37000D5BAD /* test.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = test.cpp; path = "src/object-store/parser/test.cpp"; sourceTree = SOURCE_ROOT; }; 02EF76871BFFDE9E000D5BAD /* GrammarTests.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = GrammarTests.mm; path = tests/ios/GrammarTests.mm; sourceTree = SOURCE_ROOT; }; + F63FF2B11C1241E500B3B8E0 /* libRealmJS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRealmJS.a; sourceTree = BUILT_PRODUCTS_DIR; }; + F63FF2DC1C15659A00B3B8E0 /* RealmJS.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RealmJS.mm; sourceTree = ""; }; + F63FF2F01C16405C00B3B8E0 /* libGCDWebServers.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libGCDWebServers.a; sourceTree = BUILT_PRODUCTS_DIR; }; + F63FF2FD1C1642BB00B3B8E0 /* GCDWebServer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCDWebServer.h; sourceTree = ""; }; + F63FF2FE1C1642BB00B3B8E0 /* GCDWebServer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCDWebServer.m; sourceTree = ""; }; + F63FF2FF1C1642BB00B3B8E0 /* GCDWebServerConnection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCDWebServerConnection.h; sourceTree = ""; }; + F63FF3001C1642BB00B3B8E0 /* GCDWebServerConnection.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCDWebServerConnection.m; sourceTree = ""; }; + F63FF3011C1642BB00B3B8E0 /* GCDWebServerFunctions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCDWebServerFunctions.h; sourceTree = ""; }; + F63FF3021C1642BB00B3B8E0 /* GCDWebServerFunctions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCDWebServerFunctions.m; sourceTree = ""; }; + F63FF3031C1642BB00B3B8E0 /* GCDWebServerHTTPStatusCodes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCDWebServerHTTPStatusCodes.h; sourceTree = ""; }; + F63FF3041C1642BB00B3B8E0 /* GCDWebServerPrivate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCDWebServerPrivate.h; sourceTree = ""; }; + F63FF3051C1642BB00B3B8E0 /* GCDWebServerRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCDWebServerRequest.h; sourceTree = ""; }; + F63FF3061C1642BB00B3B8E0 /* GCDWebServerRequest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCDWebServerRequest.m; sourceTree = ""; }; + F63FF3071C1642BB00B3B8E0 /* GCDWebServerResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCDWebServerResponse.h; sourceTree = ""; }; + F63FF3081C1642BB00B3B8E0 /* GCDWebServerResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCDWebServerResponse.m; sourceTree = ""; }; + F63FF30A1C1642BB00B3B8E0 /* GCDWebServerDataRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCDWebServerDataRequest.h; sourceTree = ""; }; + F63FF30B1C1642BB00B3B8E0 /* GCDWebServerDataRequest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCDWebServerDataRequest.m; sourceTree = ""; }; + F63FF30C1C1642BB00B3B8E0 /* GCDWebServerFileRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCDWebServerFileRequest.h; sourceTree = ""; }; + F63FF30D1C1642BB00B3B8E0 /* GCDWebServerFileRequest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCDWebServerFileRequest.m; sourceTree = ""; }; + F63FF30E1C1642BB00B3B8E0 /* GCDWebServerMultiPartFormRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCDWebServerMultiPartFormRequest.h; sourceTree = ""; }; + F63FF30F1C1642BB00B3B8E0 /* GCDWebServerMultiPartFormRequest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCDWebServerMultiPartFormRequest.m; sourceTree = ""; }; + F63FF3101C1642BB00B3B8E0 /* GCDWebServerURLEncodedFormRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCDWebServerURLEncodedFormRequest.h; sourceTree = ""; }; + F63FF3111C1642BB00B3B8E0 /* GCDWebServerURLEncodedFormRequest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCDWebServerURLEncodedFormRequest.m; sourceTree = ""; }; + F63FF3131C1642BB00B3B8E0 /* GCDWebServerDataResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCDWebServerDataResponse.h; sourceTree = ""; }; + F63FF3141C1642BB00B3B8E0 /* GCDWebServerDataResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCDWebServerDataResponse.m; sourceTree = ""; }; + F63FF3151C1642BB00B3B8E0 /* GCDWebServerErrorResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCDWebServerErrorResponse.h; sourceTree = ""; }; + F63FF3161C1642BB00B3B8E0 /* GCDWebServerErrorResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCDWebServerErrorResponse.m; sourceTree = ""; }; + F63FF3171C1642BB00B3B8E0 /* GCDWebServerFileResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCDWebServerFileResponse.h; sourceTree = ""; }; + F63FF3181C1642BB00B3B8E0 /* GCDWebServerFileResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCDWebServerFileResponse.m; sourceTree = ""; }; + F63FF3191C1642BB00B3B8E0 /* GCDWebServerStreamedResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCDWebServerStreamedResponse.h; sourceTree = ""; }; + F63FF31A1C1642BB00B3B8E0 /* GCDWebServerStreamedResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCDWebServerStreamedResponse.m; sourceTree = ""; }; + F63FF3281C16430C00B3B8E0 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + F63FF32A1C16432700B3B8E0 /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; }; + F63FF32C1C16432E00B3B8E0 /* CFNetwork.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CFNetwork.framework; path = System/Library/Frameworks/CFNetwork.framework; sourceTree = SDKROOT; }; + F63FF32E1C16433900B3B8E0 /* libxml2.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libxml2.tbd; path = usr/lib/libxml2.tbd; sourceTree = SDKROOT; }; + F63FF3301C16434400B3B8E0 /* libz.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libz.tbd; path = usr/lib/libz.tbd; sourceTree = SDKROOT; }; F64E1EF01BC3510E00E0E150 /* util.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = util.js; path = tests/lib/util.js; sourceTree = SOURCE_ROOT; }; F68A278A1BC2722A0063D40A /* RJSModuleLoader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RJSModuleLoader.h; path = tests/ios/RJSModuleLoader.h; sourceTree = SOURCE_ROOT; }; F68A278B1BC2722A0063D40A /* RJSModuleLoader.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = RJSModuleLoader.m; path = tests/ios/RJSModuleLoader.m; sourceTree = SOURCE_ROOT; }; @@ -266,8 +274,13 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + F63FF2E91C159E9700B3B8E0 /* libRealmJS.a in Frameworks */, + F63FF32F1C16433900B3B8E0 /* libxml2.tbd in Frameworks */, + F63FF3311C16434400B3B8E0 /* libz.tbd in Frameworks */, + F63FF32D1C16432E00B3B8E0 /* CFNetwork.framework in Frameworks */, 0291DBD21BD994F700E3852C /* JavaScriptCore.framework in Frameworks */, - 02B29A311B7CF86D008A7E6B /* RealmJS.framework in Frameworks */, + F63FF32B1C16432700B3B8E0 /* MobileCoreServices.framework in Frameworks */, + F63FF3291C16430C00B3B8E0 /* UIKit.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -275,6 +288,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + F63FF2E11C1591EC00B3B8E0 /* libRealmJS.a in Frameworks */, 02B58CCE1AE99D4D009B348C /* JavaScriptCore.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; @@ -288,23 +302,16 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + F63FF2ED1C16405C00B3B8E0 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ - 021CEA2D1BFD1BA000D69390 /* Products */ = { - isa = PBXGroup; - children = ( - 021CEA361BFD1BA000D69390 /* GCDWebServer */, - 021CEA381BFD1BA000D69390 /* GCDWebServer.app */, - 02D0F2A11C03775600B4FC45 /* GCDWebServer.app */, - 021CEA3A1BFD1BA000D69390 /* GCDWebServers.framework */, - 021CEA3C1BFD1BA000D69390 /* GCDWebServers.framework */, - 02D0F2A31C03775600B4FC45 /* GCDWebServers.framework */, - 021CEA3E1BFD1BA000D69390 /* Tests.xctest */, - ); - name = Products; - sourceTree = ""; - }; 022D59311C043340001E25FE /* Products */ = { isa = PBXGroup; children = ( @@ -318,6 +325,7 @@ isa = PBXGroup; children = ( 0290483A1C042EE200ABDED4 /* RealmJS.h */, + F63FF2DC1C15659A00B3B8E0 /* RealmJS.mm */, 029048011C0428DF00ABDED4 /* js_init.cpp */, 029048021C0428DF00ABDED4 /* js_init.h */, 029048031C0428DF00ABDED4 /* js_list.cpp */, @@ -394,6 +402,8 @@ 02B58CB11AE99CEC009B348C /* RealmJS.framework */, 02B58CBC1AE99CEC009B348C /* RealmJSTests.xctest */, 02B29A161B7CF7C9008A7E6B /* RealmReact.framework */, + F63FF2B11C1241E500B3B8E0 /* libRealmJS.a */, + F63FF2F01C16405C00B3B8E0 /* libGCDWebServers.a */, ); name = Products; sourceTree = ""; @@ -428,15 +438,80 @@ isa = PBXGroup; children = ( 02A3C7A41BC4341500B1A7BE /* libc++.tbd */, + F63FF3301C16434400B3B8E0 /* libz.tbd */, + F63FF32E1C16433900B3B8E0 /* libxml2.tbd */, + F63FF32C1C16432E00B3B8E0 /* CFNetwork.framework */, + F63FF32A1C16432700B3B8E0 /* MobileCoreServices.framework */, + F63FF3281C16430C00B3B8E0 /* UIKit.framework */, 02B58CCD1AE99D4D009B348C /* JavaScriptCore.framework */, ); name = Frameworks; sourceTree = ""; }; + F63FF2FB1C1642BB00B3B8E0 /* GCDWebServer */ = { + isa = PBXGroup; + children = ( + F63FF2FC1C1642BB00B3B8E0 /* Core */, + F63FF3091C1642BB00B3B8E0 /* Requests */, + F63FF3121C1642BB00B3B8E0 /* Responses */, + ); + name = GCDWebServer; + path = GCDWebServer/GCDWebServer; + sourceTree = ""; + }; + F63FF2FC1C1642BB00B3B8E0 /* Core */ = { + isa = PBXGroup; + children = ( + F63FF2FD1C1642BB00B3B8E0 /* GCDWebServer.h */, + F63FF2FE1C1642BB00B3B8E0 /* GCDWebServer.m */, + F63FF2FF1C1642BB00B3B8E0 /* GCDWebServerConnection.h */, + F63FF3001C1642BB00B3B8E0 /* GCDWebServerConnection.m */, + F63FF3011C1642BB00B3B8E0 /* GCDWebServerFunctions.h */, + F63FF3021C1642BB00B3B8E0 /* GCDWebServerFunctions.m */, + F63FF3031C1642BB00B3B8E0 /* GCDWebServerHTTPStatusCodes.h */, + F63FF3041C1642BB00B3B8E0 /* GCDWebServerPrivate.h */, + F63FF3051C1642BB00B3B8E0 /* GCDWebServerRequest.h */, + F63FF3061C1642BB00B3B8E0 /* GCDWebServerRequest.m */, + F63FF3071C1642BB00B3B8E0 /* GCDWebServerResponse.h */, + F63FF3081C1642BB00B3B8E0 /* GCDWebServerResponse.m */, + ); + path = Core; + sourceTree = ""; + }; + F63FF3091C1642BB00B3B8E0 /* Requests */ = { + isa = PBXGroup; + children = ( + F63FF30A1C1642BB00B3B8E0 /* GCDWebServerDataRequest.h */, + F63FF30B1C1642BB00B3B8E0 /* GCDWebServerDataRequest.m */, + F63FF30C1C1642BB00B3B8E0 /* GCDWebServerFileRequest.h */, + F63FF30D1C1642BB00B3B8E0 /* GCDWebServerFileRequest.m */, + F63FF30E1C1642BB00B3B8E0 /* GCDWebServerMultiPartFormRequest.h */, + F63FF30F1C1642BB00B3B8E0 /* GCDWebServerMultiPartFormRequest.m */, + F63FF3101C1642BB00B3B8E0 /* GCDWebServerURLEncodedFormRequest.h */, + F63FF3111C1642BB00B3B8E0 /* GCDWebServerURLEncodedFormRequest.m */, + ); + path = Requests; + sourceTree = ""; + }; + F63FF3121C1642BB00B3B8E0 /* Responses */ = { + isa = PBXGroup; + children = ( + F63FF3131C1642BB00B3B8E0 /* GCDWebServerDataResponse.h */, + F63FF3141C1642BB00B3B8E0 /* GCDWebServerDataResponse.m */, + F63FF3151C1642BB00B3B8E0 /* GCDWebServerErrorResponse.h */, + F63FF3161C1642BB00B3B8E0 /* GCDWebServerErrorResponse.m */, + F63FF3171C1642BB00B3B8E0 /* GCDWebServerFileResponse.h */, + F63FF3181C1642BB00B3B8E0 /* GCDWebServerFileResponse.m */, + F63FF3191C1642BB00B3B8E0 /* GCDWebServerStreamedResponse.h */, + F63FF31A1C1642BB00B3B8E0 /* GCDWebServerStreamedResponse.m */, + ); + path = Responses; + sourceTree = ""; + }; F6C3FBB41BF680D000E6FFD4 /* Vendor */ = { isa = PBXGroup; children = ( - 02A3C7841BC4317A00B1A7BE /* GCDWebServer.xcodeproj */, + F63FF2FB1C1642BB00B3B8E0 /* GCDWebServer */, F6BB7DF01BF681BC00D0A69E /* base64.hpp */, F6BB7DEF1BF681BC00D0A69E /* base64.cpp */, F6C3FBBC1BF680EC00E6FFD4 /* json.hpp */, @@ -498,13 +573,12 @@ 02B29A121B7CF7C9008A7E6B /* Sources */, 02B29A131B7CF7C9008A7E6B /* Frameworks */, F64426BD1BCDA39000A81210 /* Headers */, - F64426BF1BCDA3FE00A81210 /* Embed Frameworks */, ); buildRules = ( ); dependencies = ( - 02D0F2D51C037C1700B4FC45 /* PBXTargetDependency */, - 02B29A301B7CF7ED008A7E6B /* PBXTargetDependency */, + F63FF3331C16435400B3B8E0 /* PBXTargetDependency */, + F63FF2EB1C159EAF00B3B8E0 /* PBXTargetDependency */, ); name = RealmReact; productName = RealmReact; @@ -515,15 +589,15 @@ isa = PBXNativeTarget; buildConfigurationList = 02B58CC71AE99CEC009B348C /* Build configuration list for PBXNativeTarget "RealmJS" */; buildPhases = ( - 02D8D1F61B5FFA75006DB49D /* Download Core */, - 02B58CAC1AE99CEC009B348C /* Sources */, 02B58CAD1AE99CEC009B348C /* Frameworks */, 02B58CAE1AE99CEC009B348C /* Headers */, + F63FF2DD1C1565DF00B3B8E0 /* Sources */, 02B58CAF1AE99CEC009B348C /* Resources */, ); buildRules = ( ); dependencies = ( + F63FF2E51C159B2C00B3B8E0 /* PBXTargetDependency */, ); name = RealmJS; productName = RealmJS; @@ -548,6 +622,39 @@ productReference = 02B58CBC1AE99CEC009B348C /* RealmJSTests.xctest */; productType = "com.apple.product-type.bundle.unit-test"; }; + F63FF2B01C1241E500B3B8E0 /* RealmJS static */ = { + isa = PBXNativeTarget; + buildConfigurationList = F63FF2C41C1241E500B3B8E0 /* Build configuration list for PBXNativeTarget "RealmJS static" */; + buildPhases = ( + F63FF2C51C12462600B3B8E0 /* Download Core */, + F63FF2AD1C1241E500B3B8E0 /* Sources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "RealmJS static"; + productName = libRealmJS; + productReference = F63FF2B11C1241E500B3B8E0 /* libRealmJS.a */; + productType = "com.apple.product-type.library.static"; + }; + F63FF2EF1C16405C00B3B8E0 /* GCDWebServers */ = { + isa = PBXNativeTarget; + buildConfigurationList = F63FF2F51C16405D00B3B8E0 /* Build configuration list for PBXNativeTarget "GCDWebServers" */; + buildPhases = ( + F63FF2EC1C16405C00B3B8E0 /* Sources */, + F63FF2ED1C16405C00B3B8E0 /* Frameworks */, + F63FF2EE1C16405C00B3B8E0 /* CopyFiles */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = GCDWebServers; + productName = GCDWebServers; + productReference = F63FF2F01C16405C00B3B8E0 /* libGCDWebServers.a */; + productType = "com.apple.product-type.library.static"; + }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ @@ -566,6 +673,12 @@ 02B58CBB1AE99CEC009B348C = { CreatedOnToolsVersion = 6.3.1; }; + F63FF2B01C1241E500B3B8E0 = { + CreatedOnToolsVersion = 7.1.1; + }; + F63FF2EF1C16405C00B3B8E0 = { + CreatedOnToolsVersion = 7.1.1; + }; }; }; buildConfigurationList = 02B58CAB1AE99CEB009B348C /* Build configuration list for PBXProject "RealmJS" */; @@ -579,10 +692,6 @@ productRefGroup = 02B58CB21AE99CEC009B348C /* Products */; projectDirPath = ""; projectReferences = ( - { - ProductGroup = 021CEA2D1BFD1BA000D69390 /* Products */; - ProjectRef = 02A3C7841BC4317A00B1A7BE /* GCDWebServer.xcodeproj */; - }, { ProductGroup = 022D59311C043340001E25FE /* Products */; ProjectRef = 022D59301C043340001E25FE /* ReactTests.xcodeproj */; @@ -590,6 +699,8 @@ ); projectRoot = ""; targets = ( + F63FF2EF1C16405C00B3B8E0 /* GCDWebServers */, + F63FF2B01C1241E500B3B8E0 /* RealmJS static */, 02B58CB01AE99CEC009B348C /* RealmJS */, 02B58CBB1AE99CEC009B348C /* RealmJSTests */, 02B29A151B7CF7C9008A7E6B /* RealmReact */, @@ -598,41 +709,6 @@ /* End PBXProject section */ /* Begin PBXReferenceProxy section */ - 021CEA361BFD1BA000D69390 /* GCDWebServer */ = { - isa = PBXReferenceProxy; - fileType = "compiled.mach-o.executable"; - path = GCDWebServer; - remoteRef = 021CEA351BFD1BA000D69390 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 021CEA381BFD1BA000D69390 /* GCDWebServer.app */ = { - isa = PBXReferenceProxy; - fileType = wrapper.application; - path = GCDWebServer.app; - remoteRef = 021CEA371BFD1BA000D69390 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 021CEA3A1BFD1BA000D69390 /* GCDWebServers.framework */ = { - isa = PBXReferenceProxy; - fileType = wrapper.framework; - path = GCDWebServers.framework; - remoteRef = 021CEA391BFD1BA000D69390 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 021CEA3C1BFD1BA000D69390 /* GCDWebServers.framework */ = { - isa = PBXReferenceProxy; - fileType = wrapper.framework; - path = GCDWebServers.framework; - remoteRef = 021CEA3B1BFD1BA000D69390 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 021CEA3E1BFD1BA000D69390 /* Tests.xctest */ = { - isa = PBXReferenceProxy; - fileType = wrapper.cfbundle; - path = Tests.xctest; - remoteRef = 021CEA3D1BFD1BA000D69390 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; 022D59361C043341001E25FE /* ReactTests.app */ = { isa = PBXReferenceProxy; fileType = wrapper.application; @@ -647,20 +723,6 @@ remoteRef = 022D59371C043341001E25FE /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; - 02D0F2A11C03775600B4FC45 /* GCDWebServer.app */ = { - isa = PBXReferenceProxy; - fileType = wrapper.application; - path = GCDWebServer.app; - remoteRef = 02D0F2A01C03775600B4FC45 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 02D0F2A31C03775600B4FC45 /* GCDWebServers.framework */ = { - isa = PBXReferenceProxy; - fileType = wrapper.framework; - path = GCDWebServers.framework; - remoteRef = 02D0F2A21C03775600B4FC45 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; /* End PBXReferenceProxy section */ /* Begin PBXResourcesBuildPhase section */ @@ -692,7 +754,7 @@ /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ - 02D8D1F61B5FFA75006DB49D /* Download Core */ = { + F63FF2C51C12462600B3B8E0 /* Download Core */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -704,7 +766,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = ": ${REALM_CORE_VERSION:=0.94.4} # set to \"current\" to always use the current build\n\necho \"Downloading dependency: core ${REALM_CORE_VERSION}\"\nTMP_DIR=\"$TMPDIR/core_bin\"\nmkdir -p \"${TMP_DIR}\"\nCORE_TMP_TAR=\"${TMP_DIR}/core-${REALM_CORE_VERSION}.tar.bz2.tmp\"\nCORE_TAR=\"${TMP_DIR}/core-${REALM_CORE_VERSION}.tar.bz2\"\nif [ ! -f \"${CORE_TAR}\" ]; then\ncurl -f -L -s \"http://static.realm.io/downloads/core/realm-core-${REALM_CORE_VERSION}.tar.bz2\" -o \"${CORE_TMP_TAR}\" ||\n(echo \"Downloading core failed. Please try again once you have an Internet connection.\" && exit 1)\nmv \"${CORE_TMP_TAR}\" \"${CORE_TAR}\"\nfi\n\n(\ncd \"${TMP_DIR}\"\nrm -rf core\ntar xjf \"${CORE_TAR}\"\nmv core core-${REALM_CORE_VERSION}\n)\n\nrm -rf core-${REALM_CORE_VERSION} core\nmv ${TMP_DIR}/core-${REALM_CORE_VERSION} .\nln -s core-${REALM_CORE_VERSION} core"; + shellScript = "scripts/download-core.sh"; }; /* End PBXShellScriptBuildPhase section */ @@ -717,34 +779,6 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 02B58CAC1AE99CEC009B348C /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 0270BC691B7CFC1C00010E03 /* object_schema.cpp in Sources */, - 0290481F1C0428DF00ABDED4 /* rpc.cpp in Sources */, - 02601F0D1BA0F3A7007C91FF /* schema.cpp in Sources */, - 0270BC6E1B7CFC1C00010E03 /* results.cpp in Sources */, - 02786E331BF1065100937061 /* parser.cpp in Sources */, - 02601F081BA0F0CD007C91FF /* index_set.cpp in Sources */, - 029445931BDEDF40006D1617 /* transact_log_handler.cpp in Sources */, - 029048391C042A8F00ABDED4 /* platform.mm in Sources */, - 029048131C0428DF00ABDED4 /* js_list.cpp in Sources */, - 02C0864E1BCDB27000942F9C /* list.cpp in Sources */, - 029048171C0428DF00ABDED4 /* js_realm.cpp in Sources */, - 0270BC6B1B7CFC1C00010E03 /* object_store.cpp in Sources */, - 0290481D1C0428DF00ABDED4 /* js_util.cpp in Sources */, - 0294465E1BF27DE6006D1617 /* query_builder.cpp in Sources */, - 029048111C0428DF00ABDED4 /* js_init.cpp in Sources */, - 0270BC701B7CFC1C00010E03 /* shared_realm.cpp in Sources */, - F6BB7DF11BF681BC00D0A69E /* base64.cpp in Sources */, - 029048191C0428DF00ABDED4 /* js_results.cpp in Sources */, - 029048151C0428DF00ABDED4 /* js_object.cpp in Sources */, - 029445971BDEDF46006D1617 /* external_commit_helper.cpp in Sources */, - 0290481B1C0428DF00ABDED4 /* js_schema.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; 02B58CB81AE99CEC009B348C /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; @@ -757,23 +791,84 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + F63FF2AD1C1241E500B3B8E0 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + F63FF2E81C159C4B00B3B8E0 /* platform.mm in Sources */, + F63FF2E21C15921A00B3B8E0 /* base64.cpp in Sources */, + F63FF2C61C12469E00B3B8E0 /* js_init.cpp in Sources */, + F63FF2C71C12469E00B3B8E0 /* js_list.cpp in Sources */, + F63FF2C81C12469E00B3B8E0 /* js_object.cpp in Sources */, + F63FF2C91C12469E00B3B8E0 /* js_realm.cpp in Sources */, + F63FF2CA1C12469E00B3B8E0 /* js_results.cpp in Sources */, + F63FF2CB1C12469E00B3B8E0 /* js_schema.cpp in Sources */, + F63FF2CC1C12469E00B3B8E0 /* js_util.cpp in Sources */, + F63FF2CD1C12469E00B3B8E0 /* rpc.cpp in Sources */, + F63FF2CE1C12469E00B3B8E0 /* object_schema.cpp in Sources */, + F63FF2CF1C12469E00B3B8E0 /* object_store.cpp in Sources */, + F63FF2D01C12469E00B3B8E0 /* results.cpp in Sources */, + F63FF2D11C12469E00B3B8E0 /* shared_realm.cpp in Sources */, + F63FF2D21C12469E00B3B8E0 /* index_set.cpp in Sources */, + F63FF2D31C12469E00B3B8E0 /* list.cpp in Sources */, + F63FF2D41C12469E00B3B8E0 /* schema.cpp in Sources */, + F63FF2D51C12469E00B3B8E0 /* transact_log_handler.cpp in Sources */, + F63FF2D61C12469E00B3B8E0 /* external_commit_helper.cpp in Sources */, + F63FF2D71C12469E00B3B8E0 /* parser.cpp in Sources */, + F63FF2D81C12469E00B3B8E0 /* query_builder.cpp in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + F63FF2DD1C1565DF00B3B8E0 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + F63FF2DE1C1565EA00B3B8E0 /* RealmJS.mm in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + F63FF2EC1C16405C00B3B8E0 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + F63FF31E1C1642BB00B3B8E0 /* GCDWebServerRequest.m in Sources */, + F63FF3231C1642BB00B3B8E0 /* GCDWebServerURLEncodedFormRequest.m in Sources */, + F63FF31C1C1642BB00B3B8E0 /* GCDWebServerConnection.m in Sources */, + F63FF3201C1642BB00B3B8E0 /* GCDWebServerDataRequest.m in Sources */, + F63FF3221C1642BB00B3B8E0 /* GCDWebServerMultiPartFormRequest.m in Sources */, + F63FF3211C1642BB00B3B8E0 /* GCDWebServerFileRequest.m in Sources */, + F63FF31F1C1642BB00B3B8E0 /* GCDWebServerResponse.m in Sources */, + F63FF3261C1642BB00B3B8E0 /* GCDWebServerFileResponse.m in Sources */, + F63FF3271C1642BB00B3B8E0 /* GCDWebServerStreamedResponse.m in Sources */, + F63FF3241C1642BB00B3B8E0 /* GCDWebServerDataResponse.m in Sources */, + F63FF31B1C1642BB00B3B8E0 /* GCDWebServer.m in Sources */, + F63FF31D1C1642BB00B3B8E0 /* GCDWebServerFunctions.m in Sources */, + F63FF3251C1642BB00B3B8E0 /* GCDWebServerErrorResponse.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ - 02B29A301B7CF7ED008A7E6B /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 02B58CB01AE99CEC009B348C /* RealmJS */; - targetProxy = 02B29A2F1B7CF7ED008A7E6B /* PBXContainerItemProxy */; - }; 02B58CBF1AE99CEC009B348C /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 02B58CB01AE99CEC009B348C /* RealmJS */; targetProxy = 02B58CBE1AE99CEC009B348C /* PBXContainerItemProxy */; }; - 02D0F2D51C037C1700B4FC45 /* PBXTargetDependency */ = { + F63FF2E51C159B2C00B3B8E0 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = "GCDWebServers (iOS)"; - targetProxy = 02D0F2D41C037C1700B4FC45 /* PBXContainerItemProxy */; + target = F63FF2B01C1241E500B3B8E0 /* RealmJS static */; + targetProxy = F63FF2E41C159B2C00B3B8E0 /* PBXContainerItemProxy */; + }; + F63FF2EB1C159EAF00B3B8E0 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = F63FF2B01C1241E500B3B8E0 /* RealmJS static */; + targetProxy = F63FF2EA1C159EAF00B3B8E0 /* PBXContainerItemProxy */; + }; + F63FF3331C16435400B3B8E0 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = F63FF2EF1C16405C00B3B8E0 /* GCDWebServers */; + targetProxy = F63FF3321C16435400B3B8E0 /* PBXContainerItemProxy */; }; /* End PBXTargetDependency section */ @@ -781,12 +876,10 @@ 02B29A281B7CF7C9008A7E6B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { - CLANG_CXX_LANGUAGE_STANDARD = "c++14"; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; - EXCLUDED_SOURCE_FILE_NAMES = ""; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)", @@ -806,16 +899,11 @@ ); INFOPLIST_FILE = src/ios/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @loader_path/Frameworks"; - OTHER_CPLUSPLUSFLAGS = ( - "$(OTHER_CFLAGS)", - "-isystem", - core/include, - ); OTHER_LDFLAGS = ( - "-framework", - GCDWebServers, + "-lGCDWebServers", + "-lrealm-ios-bitcode", + "-all_load", ); PRODUCT_BUNDLE_IDENTIFIER = "io.realm.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -826,12 +914,10 @@ 02B29A291B7CF7C9008A7E6B /* GCov_Build */ = { isa = XCBuildConfiguration; buildSettings = { - CLANG_CXX_LANGUAGE_STANDARD = "c++14"; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; - EXCLUDED_SOURCE_FILE_NAMES = ""; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)", @@ -847,14 +933,11 @@ ); INFOPLIST_FILE = src/ios/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @loader_path/Frameworks"; - OTHER_CPLUSPLUSFLAGS = ( - "$(OTHER_CFLAGS)", - "-isystem", - core/include, + OTHER_LDFLAGS = ( + "-lrealm-ios-bitcode", + "-all_load", ); - OTHER_LDFLAGS = ""; PRODUCT_BUNDLE_IDENTIFIER = "io.realm.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; @@ -864,12 +947,10 @@ 02B29A2A1B7CF7C9008A7E6B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { - CLANG_CXX_LANGUAGE_STANDARD = "c++14"; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; - EXCLUDED_SOURCE_FILE_NAMES = GCDWebServers.framework; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)", @@ -885,14 +966,11 @@ ); INFOPLIST_FILE = src/ios/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @loader_path/Frameworks"; - OTHER_CPLUSPLUSFLAGS = ( - "$(OTHER_CFLAGS)", - "-isystem", - core/include, + OTHER_LDFLAGS = ( + "-lrealm-ios-bitcode", + "-all_load", ); - OTHER_LDFLAGS = ""; PRODUCT_BUNDLE_IDENTIFIER = "io.realm.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; @@ -903,7 +981,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LANGUAGE_STANDARD = "c++14"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; @@ -938,9 +1016,15 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.3; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LIBRARY_SEARCH_PATHS = core; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; + OTHER_CPLUSPLUSFLAGS = ( + "$(OTHER_CFLAGS)", + "-isystem", + core/include, + ); SDKROOT = iphoneos; TARGETED_DEVICE_FAMILY = "1,2"; VERSIONING_SYSTEM = "apple-generic"; @@ -952,7 +1036,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LANGUAGE_STANDARD = "c++14"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; @@ -984,8 +1068,14 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.3; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LIBRARY_SEARCH_PATHS = core; MTL_ENABLE_DEBUG_INFO = NO; + OTHER_CPLUSPLUSFLAGS = ( + "$(OTHER_CFLAGS)", + "-isystem", + core/include, + ); SDKROOT = iphoneos; TARGETED_DEVICE_FAMILY = "1,2"; VALIDATE_PRODUCT = YES; @@ -998,36 +1088,17 @@ isa = XCBuildConfiguration; buildSettings = { APPLICATION_EXTENSION_API_ONLY = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++14"; DEFINES_MODULE = NO; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; - FRAMEWORK_SEARCH_PATHS = "$(PROJECT_DIR)"; - GCC_NO_COMMON_BLOCKS = NO; - GCC_PREPROCESSOR_DEFINITIONS = ( - REALM_HAVE_CONFIG, - "DEBUG=1", - __ASSERTMACROS__, - ); - HEADER_SEARCH_PATHS = ( - "$(inherited)", - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, - "$(SRCROOT)/vendor/PEGTL", - "$(SRCROOT)/vendor", - ); INFOPLIST_FILE = src/ios/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - LIBRARY_SEARCH_PATHS = core; - OTHER_CPLUSPLUSFLAGS = ( - "$(OTHER_CFLAGS)", - "-isystem", - core/include, + OTHER_LDFLAGS = ( + "-lrealm-ios-bitcode", + "-all_load", ); - OTHER_LDFLAGS = "-lrealm-ios-bitcode"; - OTHER_LIBTOOLFLAGS = ""; PRODUCT_BUNDLE_IDENTIFIER = "io.realm.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; @@ -1038,31 +1109,17 @@ isa = XCBuildConfiguration; buildSettings = { APPLICATION_EXTENSION_API_ONLY = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++14"; DEFINES_MODULE = NO; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; - FRAMEWORK_SEARCH_PATHS = "$(PROJECT_DIR)"; - GCC_NO_COMMON_BLOCKS = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, - "$(SRCROOT)/vendor/PEGTL", - "$(SRCROOT)/vendor", - ); INFOPLIST_FILE = src/ios/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - LIBRARY_SEARCH_PATHS = core; - OTHER_CPLUSPLUSFLAGS = ( - "$(OTHER_CFLAGS)", - "-isystem", - core/include, + OTHER_LDFLAGS = ( + "-lrealm-ios-bitcode", + "-all_load", ); - OTHER_LDFLAGS = "-lrealm-ios-bitcode"; - OTHER_LIBTOOLFLAGS = ""; PRODUCT_BUNDLE_IDENTIFIER = "io.realm.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; @@ -1113,7 +1170,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LANGUAGE_STANDARD = "c++14"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; @@ -1148,9 +1205,15 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.3; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LIBRARY_SEARCH_PATHS = core; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; + OTHER_CPLUSPLUSFLAGS = ( + "$(OTHER_CFLAGS)", + "-isystem", + core/include, + ); SDKROOT = iphoneos; TARGETED_DEVICE_FAMILY = "1,2"; VERSIONING_SYSTEM = "apple-generic"; @@ -1162,36 +1225,17 @@ isa = XCBuildConfiguration; buildSettings = { APPLICATION_EXTENSION_API_ONLY = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++14"; DEFINES_MODULE = NO; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; - FRAMEWORK_SEARCH_PATHS = "$(PROJECT_DIR)"; - GCC_NO_COMMON_BLOCKS = NO; - GCC_PREPROCESSOR_DEFINITIONS = ( - REALM_HAVE_CONFIG, - "DEBUG=1", - __ASSERTMACROS__, - ); - HEADER_SEARCH_PATHS = ( - "$(inherited)", - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, - "$(SRCROOT)/vendor/PEGTL", - "$(SRCROOT)/vendor", - ); INFOPLIST_FILE = src/ios/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - LIBRARY_SEARCH_PATHS = core; - OTHER_CPLUSPLUSFLAGS = ( - "$(OTHER_CFLAGS)", - "-isystem", - core/include, + OTHER_LDFLAGS = ( + "-lrealm-ios-bitcode", + "-all_load", ); - OTHER_LDFLAGS = "-lrealm-ios-bitcode"; - OTHER_LIBTOOLFLAGS = ""; PRODUCT_BUNDLE_IDENTIFIER = "io.realm.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; @@ -1220,6 +1264,85 @@ }; name = GCov_Build; }; + F63FF2B71C1241E500B3B8E0 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + DEBUG_INFORMATION_FORMAT = dwarf; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + HEADER_SEARCH_PATHS = ( + "$(inherited)", + "$(SRCROOT)/vendor/PEGTL", + "$(SRCROOT)/vendor", + ); + PRODUCT_NAME = RealmJS; + SKIP_INSTALL = YES; + VERSIONING_SYSTEM = ""; + }; + name = Debug; + }; + F63FF2B81C1241E500B3B8E0 /* GCov_Build */ = { + isa = XCBuildConfiguration; + buildSettings = { + HEADER_SEARCH_PATHS = ( + "$(inherited)", + "$(SRCROOT)/vendor/PEGTL", + "$(SRCROOT)/vendor", + ); + PRODUCT_NAME = RealmJS; + SKIP_INSTALL = YES; + VERSIONING_SYSTEM = ""; + }; + name = GCov_Build; + }; + F63FF2B91C1241E500B3B8E0 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + HEADER_SEARCH_PATHS = ( + "$(inherited)", + "$(SRCROOT)/vendor/PEGTL", + "$(SRCROOT)/vendor", + ); + PRODUCT_NAME = RealmJS; + SKIP_INSTALL = YES; + VERSIONING_SYSTEM = ""; + }; + name = Release; + }; + F63FF2F61C16405D00B3B8E0 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + DEBUG_INFORMATION_FORMAT = dwarf; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + }; + name = Debug; + }; + F63FF2F71C16405D00B3B8E0 /* GCov_Build */ = { + isa = XCBuildConfiguration; + buildSettings = { + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + }; + name = GCov_Build; + }; + F63FF2F81C16405D00B3B8E0 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + }; + name = Release; + }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ @@ -1263,6 +1386,24 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; + F63FF2C41C1241E500B3B8E0 /* Build configuration list for PBXNativeTarget "RealmJS static" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + F63FF2B71C1241E500B3B8E0 /* Debug */, + F63FF2B81C1241E500B3B8E0 /* GCov_Build */, + F63FF2B91C1241E500B3B8E0 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; + F63FF2F51C16405D00B3B8E0 /* Build configuration list for PBXNativeTarget "GCDWebServers" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + F63FF2F61C16405D00B3B8E0 /* Debug */, + F63FF2F71C16405D00B3B8E0 /* GCov_Build */, + F63FF2F81C16405D00B3B8E0 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; /* End XCConfigurationList section */ }; rootObject = 02B58CA81AE99CEB009B348C /* Project object */; diff --git a/RealmJS.xcodeproj/xcshareddata/xcschemes/GCDWebServers.xcscheme b/RealmJS.xcodeproj/xcshareddata/xcschemes/GCDWebServers.xcscheme new file mode 100644 index 00000000..4ab0063f --- /dev/null +++ b/RealmJS.xcodeproj/xcshareddata/xcschemes/GCDWebServers.xcscheme @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/RealmJS.xcodeproj/xcshareddata/xcschemes/RealmJS static.xcscheme b/RealmJS.xcodeproj/xcshareddata/xcschemes/RealmJS static.xcscheme new file mode 100644 index 00000000..bbad1ee2 --- /dev/null +++ b/RealmJS.xcodeproj/xcshareddata/xcschemes/RealmJS static.xcscheme @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/ReactExample/ReactExample.xcodeproj/project.pbxproj b/examples/ReactExample/ReactExample.xcodeproj/project.pbxproj index f4bec5bf..6a81162c 100644 --- a/examples/ReactExample/ReactExample.xcodeproj/project.pbxproj +++ b/examples/ReactExample/ReactExample.xcodeproj/project.pbxproj @@ -126,20 +126,6 @@ remoteGlobalIDString = 58B5119B1A9E6C1200147676; remoteInfo = RCTText; }; - F636F6E21BCDB72D0023F35C /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 0270BC9E1B7D04D700010E03 /* RealmJS.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = 02B29A151B7CF7C9008A7E6B; - remoteInfo = RealmReact; - }; - F6EA29001BDEEC4B00ECDC7B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = 83CBBA2D1A601D0E00E9B192; - remoteInfo = React; - }; /* End PBXContainerItemProxy section */ /* Begin PBXCopyFilesBuildPhase section */ @@ -396,8 +382,6 @@ buildRules = ( ); dependencies = ( - F6EA29011BDEEC4B00ECDC7B /* PBXTargetDependency */, - F636F6E31BCDB72D0023F35C /* PBXTargetDependency */, ); name = ReactExample; productName = "Hello World"; @@ -640,16 +624,6 @@ target = 13B07F861A680F5B00A75B9A /* ReactExample */; targetProxy = 0277984B1BBB2F1000C96559 /* PBXContainerItemProxy */; }; - F636F6E31BCDB72D0023F35C /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = RealmReact; - targetProxy = F636F6E21BCDB72D0023F35C /* PBXContainerItemProxy */; - }; - F6EA29011BDEEC4B00ECDC7B /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = React; - targetProxy = F6EA29001BDEEC4B00ECDC7B /* PBXContainerItemProxy */; - }; /* End PBXTargetDependency section */ /* Begin PBXVariantGroup section */ diff --git a/scripts/download-core.sh b/scripts/download-core.sh new file mode 100755 index 00000000..1058d6da --- /dev/null +++ b/scripts/download-core.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +set -e +set -o pipefail + +: ${REALM_CORE_VERSION:=0.94.4} # set to "current" to always use the current build + +echo "Downloading dependency: core ${REALM_CORE_VERSION}" + +TMP_DIR="$TMPDIR/core_bin" +mkdir -p "${TMP_DIR}" +CORE_TMP_TAR="${TMP_DIR}/core-${REALM_CORE_VERSION}.tar.bz2.tmp" +CORE_TAR="${TMP_DIR}/core-${REALM_CORE_VERSION}.tar.bz2" + +if [ ! -f "${CORE_TAR}" ]; then + curl -f -L -s "https://static.realm.io/downloads/core/realm-core-${REALM_CORE_VERSION}.tar.bz2" -o "${CORE_TMP_TAR}" || + (echo "Downloading core failed. Please try again once you have an Internet connection." && exit 1) + mv "${CORE_TMP_TAR}" "${CORE_TAR}" +fi + +( + cd "${TMP_DIR}" + rm -rf core + tar xjf "${CORE_TAR}" + mv core core-${REALM_CORE_VERSION} +) + +rm -rf core-${REALM_CORE_VERSION} core +mv ${TMP_DIR}/core-${REALM_CORE_VERSION} . +ln -s core-${REALM_CORE_VERSION} core diff --git a/tests/react-test-app/ios/ReactTests.xcodeproj/project.pbxproj b/tests/react-test-app/ios/ReactTests.xcodeproj/project.pbxproj index 530679b8..92a183aa 100644 --- a/tests/react-test-app/ios/ReactTests.xcodeproj/project.pbxproj +++ b/tests/react-test-app/ios/ReactTests.xcodeproj/project.pbxproj @@ -25,7 +25,7 @@ 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; - F6F405C71BCE566300A1E24F /* RealmReact.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 0277991B1BBF3BB700C96559 /* RealmReact.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + F6F405C71BCE566300A1E24F /* RealmReact.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 0277991B1BBF3BB700C96559 /* RealmReact.framework */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -127,13 +127,6 @@ remoteGlobalIDString = 58B5119B1A9E6C1200147676; remoteInfo = RCTText; }; - F6F405B71BCE55FB00A1E24F /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 027799061BBF3BB700C96559 /* RealmJS.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = 02B29A151B7CF7C9008A7E6B; - remoteInfo = RealmReact; - }; /* End PBXContainerItemProxy section */ /* Begin PBXCopyFilesBuildPhase section */ @@ -382,7 +375,6 @@ buildRules = ( ); dependencies = ( - F6F405B81BCE55FB00A1E24F /* PBXTargetDependency */, ); name = ReactTestApp; productName = "Hello World"; @@ -626,11 +618,6 @@ target = 13B07F861A680F5B00A75B9A /* ReactTestApp */; targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; }; - F6F405B81BCE55FB00A1E24F /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = RealmReact; - targetProxy = F6F405B71BCE55FB00A1E24F /* PBXContainerItemProxy */; - }; /* End PBXTargetDependency section */ /* Begin PBXVariantGroup section */