Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RCOCOA-2343 Enable building RealmSwift as a dynamic framework with SPM #8561

Merged
merged 1 commit into from
Apr 30, 2024

Force Realm to be built as a dynamic library when installing via SPM

2ca5c82
Select commit
Loading
Failed to load commit list.
Merged

RCOCOA-2343 Enable building RealmSwift as a dynamic framework with SPM #8561

Force Realm to be built as a dynamic library when installing via SPM
2ca5c82
Select commit
Loading
Failed to load commit list.
Xcode Cloud / RealmSwift | tvos-swift-evolution_15.3 | Test - tvOS succeeded Apr 30, 2024 in 35m 5s

61 warnings

Report Summary
Errors 0
Test Failures 0
Analysis Issues 0
Warnings 61

Details

61 Warnings

Details

  RealmSwift/Tests/RealmTests.swift:1875
      Non-sendable type 'Realm' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary
  RealmSwift/Tests/RealmTests.swift:1697
      Non-sendable type 'Realm' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary
  RealmSwift/Tests/RealmTests.swift:1502
      Non-sendable type 'Realm' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary
  Realm/TestUtils/include/TestUtils.h:38
      Pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified)
  RealmSwift/Tests/MapTests.swift:1030
      Passing argument of non-sendable type 'XCTestCase' outside of main actor-isolated context may introduce data races
  RealmSwift/Tests/RealmTests.swift:1818
      Non-sendable type 'Realm' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary
  RealmSwift/Tests/RealmCollectionTypeTests.swift:798
      Passing argument of non-sendable type 'XCTestCase' outside of main actor-isolated context may introduce data races
  Realm/RLMAsyncTask_Private.h:21
      Double-quoted include "RLMRealm_Private.h" in framework header, expected angle-bracketed instead
  RealmSwift/Tests/MapTests.swift:999
      Passing argument of non-sendable type 'XCTestCase' outside of main actor-isolated context may introduce data races
  RealmSwift/Tests/ObjectTests.swift:1691
      Non-sendable type 'Realm' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary
  RealmSwift/Tests/ObjectTests.swift:1590
      Non-sendable type 'RealmPublishers.Value.Output?' (aka 'Optional') returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary
  RealmSwift/Tests/RealmTests.swift:1866
      Non-sendable type 'Realm' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary
  Realm/TestUtils/include/TestUtils.h:38
      pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified)
  Realm/TestUtils/include/TestUtils.h:24
      Pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified)
  not stripping binary because it is signed: /Volumes/workspace/DerivedData/Build/Products/Release-appletvsimulator/Realm.framework/Realm
  RealmSwift/Tests/RealmTests.swift:1708
      Non-sendable type 'Realm' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary
  RealmSwift/Tests/RealmTests.swift:1841
      Non-sendable type 'Realm' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary
  RealmSwift/Tests/RealmTests.swift:1886
      Passing argument of non-sendable type 'XCTestCase' outside of main actor-isolated context may introduce data races
  RealmSwift/Tests/ObjectTests.swift:1710
      Passing argument of non-sendable type 'inout TaskGroup' (aka 'inout TaskGroup') outside of main actor-isolated context may introduce data races
  RealmSwift/Tests/MapTests.swift:990
      Passing argument of non-sendable type 'XCTestCase' outside of main actor-isolated context may introduce data races
  Realm/RLMResults_Private.h:21
      Double-quoted include "RLMRealm_Private.h" in framework header, expected angle-bracketed instead
  RealmSwift/Realm.swift:1352
      Passing argument of non-sendable type 'RLMRealm' outside of actor-isolated context may introduce data races
  RealmSwift/Tests/ObjectTests.swift:1617
      Non-sendable type 'Realm' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary
  RealmSwift/Tests/RealmCollectionTypeTests.swift:778
      Passing argument of non-sendable type 'XCTestCase' outside of main actor-isolated context may introduce data races
  RealmSwift/Tests/RealmTests.swift:1846
      Non-sendable type 'Realm' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary
  RealmSwift/Realm.swift:1328
      Passing argument of non-sendable type 'Realm' into actor-isolated context may introduce data races
  RealmSwift/Tests/AnyRealmValueTests.swift:911
      Switch covers known cases, but 'AnyRealmValue' may have additional unknown values
  Realm/TestUtils/TestUtils.mm:176
      Unused function 'fakeJWT'
  RealmSwift/Tests/ObjectTests.swift:21
      Add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'RealmSwift'
  RealmSwift/Tests/RealmCollectionTypeTests.swift:707
      Non-sendable type 'Realm' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary
  Direct access in function 'realm::sync::InstructionApplier::operator()(realm::sync::instr::SetInsert const&)::SetInsertResolver::on_set(realm::SetBase&)' from file '/Volumes/workspace/DerivedData/Build/Products/Release-appletvsimulator/librealm-monorepo.a(instruction_applier.o)' to global weak symbol 'typeinfo for realm::Set' from file '/Volumes/workspace/DerivedData/Build/Products/Release-appletvsimulator/librealm-monorepo.a(set.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
  RealmSwift/Tests/RealmCollectionTypeTests.swift:790
      Passing argument of non-sendable type 'XCTestCase' outside of main actor-isolated context may introduce data races
  RealmSwift/Tests/RealmCollectionTypeTests.swift:720
      Passing argument of non-sendable type 'XCTestCase' outside of main actor-isolated context may introduce data races
  RealmSwift/Tests/RealmTests.swift:1856
      Passing argument of non-sendable type 'XCTestCase' outside of main actor-isolated context may introduce data races
  RealmSwift/Tests/ObjectTests.swift:1646
      Passing argument of non-sendable type 'XCTestCase' outside of main actor-isolated context may introduce data races
  RealmSwift/Tests/RealmTests.swift:1823
      Non-sendable type 'Realm' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary
  RealmSwift/Tests/ObjectTests.swift:1577
      Passing argument of non-sendable type 'XCTestCase' outside of main actor-isolated context may introduce data races
  RealmSwift/Tests/MapTests.swift:1021
      Passing argument of non-sendable type 'XCTestCase' outside of main actor-isolated context may introduce data races
  RealmSwift/Tests/RealmCollectionTypeTests.swift:22
      Add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'RealmSwift'
  RealmSwift/Tests/RealmTests.swift:1683
      Non-sendable type 'Realm' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary
  RealmSwift/Tests/RealmCollectionTypeTests.swift:770
      Passing argument of non-sendable type 'XCTestCase' outside of main actor-isolated context may introduce data races
  RealmSwift/Tests/AnyRealmValueTests.swift:615
      Switch covers known cases, but 'AnyRealmValue' may have additional unknown values
  RealmSwift/Tests/RealmTests.swift:1518
      Non-sendable type 'Realm' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary
  RealmSwift/Tests/ObjectTests.swift:1653
      Passing argument of non-sendable type 'XCTestCase' outside of main actor-isolated context may introduce data races
  RealmSwift/Tests/RealmTests.swift:1769
      Non-sendable type 'Realm' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary
  RealmSwift/Tests/RealmTests.swift:1829
      Passing argument of non-sendable type 'XCTestCase' outside of main actor-isolated context may introduce data races
  RealmSwift/Tests/ObjectAccessorTests.swift:71
      '16777217' is not exactly representable as 'Float'; it becomes '16777216'
  RealmSwift/Tests/ObjectTests.swift:1602
      Passing argument of non-sendable type 'XCTestCase' outside of main actor-isolated context may introduce data races
  RealmSwift/Tests/ObjectTests.swift:1620
      Non-sendable type 'RealmPublishers.ObjectChangeset.Output?' (aka 'Optional>') returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary
  RealmSwift/Tests/RealmCollectionTypeTests.swift:744
      Passing argument of non-sendable type 'XCTestCase' outside of main actor-isolated context may introduce data races
  not stripping binary because it is signed: /Volumes/workspace/DerivedData/Build/Products/Release-appletvsimulator/RealmSwift.framework/RealmSwift
  RealmSwift/Tests/RealmTests.swift:1722
      Non-sendable type 'Realm' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary
  RealmSwift/Tests/RealmCollectionTypeTests.swift:737
      Passing argument of non-sendable type 'XCTestCase' outside of main actor-isolated context may introduce data races
  RealmSwift/Tests/RealmTests.swift:1527
      Non-sendable type 'Realm' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary
  RealmSwift/Tests/RealmTests.swift:1752
      Non-sendable type 'Realm' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary
  RealmSwift/Tests/RealmCollectionTypeTests.swift:727
      Passing argument of non-sendable type 'XCTestCase' outside of main actor-isolated context may introduce data races
  Realm/TestUtils/include/TestUtils.h:24
      pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified)
  Direct access in function 'realm::sync::InstructionApplier::operator()(realm::sync::instr::SetErase const&)::SetEraseResolver::on_set(realm::SetBase&)' from file '/Volumes/workspace/DerivedData/Build/Products/Release-appletvsimulator/librealm-monorepo.a(instruction_applier.o)' to global weak symbol 'typeinfo for realm::Set' from file '/Volumes/workspace/DerivedData/Build/Products/Release-appletvsimulator/librealm-monorepo.a(set.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
  RealmSwift/Tests/RealmTests.swift:22
      Add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'RealmSwift'
  RealmSwift/Realm.swift:46
      Public struct 'RealmSwift.Realm' shadows module 'Realm', which may cause failures when importing 'RealmSwift' or its clients in some configurations; please rename either the struct 'RealmSwift.Realm' or the module 'Realm', or see https://github.com/apple/swift/issues/56573 for workarounds
  RealmSwift/Tests/RealmTests.swift:1734
      Non-sendable type 'Realm' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary