Skip to content

Fix another race condition that leads to a memory error

31b86a5
Select commit
Loading
Failed to load commit list.
Closed

WIP local relay model #3203

Fix another race condition that leads to a memory error
31b86a5
Select commit
Loading
Failed to load commit list.
Xcode Cloud / damus | Default | Test - iOS cancelled Aug 19, 2025 in 6m 17s

729 warnings

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

Details

729 Warnings

Details

  damus/damusApp.swift:130
      Main actor-isolated property 'orientation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  nostrdb/mdb.c:5783
      Implicit conversion loses integer precision: 'pgno_t' (aka 'unsigned long') to 'unsigned int'
  damus/Shared/Extensions/OffsetExtension.swift:70
      Main actor-isolated property 'windows' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  nostrdb/mdb.c:3940
      Implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int'
  nostrdb/src/block.c:31
      Implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'enum nostr_bech32_type'
  nostrdb/src/nostrdb.c:5981
      Implicit conversion loses integer precision: 'long' to 'int'
  damus/Shared/Utilities/Router.swift:74
      Sending 'damusState' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Media/Camera/Models/PhotoCaptureProcessor.swift:63
      Capture of 'self' with non-sendable type 'PhotoCaptureProcessor' in a '@Sendable' closure
  nostrdb/src/nostrdb.c:2460
      Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
  damus/Features/Timeline/Models/HomeModel.swift:274
      No 'async' operations occur within 'await' expression
  damus/Features/Posting/Views/PostView.swift:108
      Sending 'damus_state.drafts' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/DMs/Views/DirectMessagesView.swift:118
      'onChange(of:perform:)' was deprecated in iOS 17.0: Use `onChange` with a two or zero parameter action closure instead.
  nostrdb/Ndb.swift:782
      Initialization of immutable value 'timeoutTask' was never used; consider replacing with assignment to '_' or removing it
  Cannot form key path that captures non-sendable type 'KeyPath'; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:237
      Immutable value 'followers' was never used; consider replacing with '_' or removing it
  damus/ContentView.swift:506
      Sending 'self.damus_state.purple' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:94
      Sending 'settings' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/EventCache.swift:433
      Capture of 'ts' with non-sendable type 'TranslateStatus?' in a '@Sendable' closure
  damus/Features/DMs/Views/DMChatView.swift:36
      'onChange(of:perform:)' was deprecated in iOS 17.0: Use `onChange` with a two or zero parameter action closure instead.
  nostrdb/src/nostrdb.c:4996
      Unused function 'ndb_queue_write_version'
  damus/Shared/Media/Camera/Models/PhotoCaptureProcessor.swift:57
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Purple/Models/Extensions/DamusPurpleNotificationManagement.swift:29
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Theme.swift:15
      Main actor-isolated property 'connectedScenes' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  nostrdb/Ndb.swift:692
      Capture of 'filtersPointer' with non-sendable type 'UnsafeMutablePointer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
  damus/Features/Translations/Views/TranslateView.swift:76
      Sending 'self.event' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:139
      Sending 'followPack' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/src/nostrdb.c:6900
      Implicit conversion loses integer precision: 'unsigned long' to 'int'
  damus/Shared/Media/CoreSVG.swift:22
      Var 'ImageWithCGSVGDocumentSEL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  damus/Features/Events/EventLoaderView.swift:34
      Non-sendable result type 'NostrNetworkManager.StreamItem?' cannot be sent from nonisolated context in call to instance method 'next()'; this is an error in the Swift 6 language mode
  nostrdb/Ndb.swift:665
      Capture of 'self' with non-sendable type 'Ndb' in an isolated closure; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Theme.swift:16
      Main actor-isolated property 'windows' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  damus/Features/Posting/Models/PostBox.swift:63
      Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
  damus/Features/Onboarding/SuggestedUsersViewModel.swift:192
      Non-sendable result type 'NostrNetworkManager.StreamItem?' cannot be sent from nonisolated context in call to instance method 'next()'; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:131
      Sending 'followers' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Media/Camera/Models/PhotoCaptureProcessor.swift:49
      Capture of 'self' with non-sendable type 'PhotoCaptureProcessor' in a '@Sendable' closure
  nostrdb/mdb.c:3597
      Implicit conversion loses integer precision: 'MDB_ID' (aka 'unsigned long') to 'unsigned int'
  Cannot form key path that captures non-sendable type 'KeyPath'; this is an error in the Swift 6 language mode
  damus/Features/Posting/Views/PostView.swift:306
      Main actor-isolated property 'current_placeholder_index' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
  nostrdb/Ndb.swift:665
      Reference to captured var 'subid' in concurrently-executing code; this is an error in the Swift 6 language mode
  damus/Features/Settings/Views/NotificationSettingsView.swift:92
      Sending 'self.damus_state.push_notification_client' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Posting/Views/PostView.swift:753
      Main actor-isolated property 'scale' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  nostrdb/src/cursor.h:717
      Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
  damus/ContentView.swift:361
      Sending 'self.damus_state' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/src/nostrdb.c:3772
      Implicit conversion loses integer precision: 'long' to 'int'
  damus/Features/Purple/Models/DamusPurple.swift:116
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Settings/Views/NotificationSettingsView.swift:109
      Sending 'self.damus_state.push_notification_client' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Search/Models/SearchHomeModel.swift:56
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/src/content_parser.c:597
      Implicit conversion loses integer precision: 'long' to 'uint32_t' (aka 'unsigned int')
  nostrdb/src/nostrdb.c:3529
      Unused function 'ndb_query_plan_name'
  damus/Features/FollowPack/Views/FollowPackPreview.swift:213
      Let 'test_follow_list_event' is not concurrency-safe because non-'Sendable' type 'FollowPackEvent' may have shared mutable state; this is an error in the Swift 6 language mode
  nostrdb/Ndb.swift:803
      Sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Media/Video/DamusVideoPlayer.swift:215
      Non-sendable result type '[AVAssetTrack]' cannot be sent from nonisolated context in call to instance method 'load'; this is an error in the Swift 6 language mode
  nostrdb/src/nostrdb.c:674
      Implicit conversion loses integer precision: 'const uint64_t' (aka 'const unsigned long long') to 'int'
  damus/Features/Relays/Views/RelayView.swift:128
      No 'async' operations occur within 'await' expression
  damus/Features/Events/Models/NoteContent.swift:91
      Initialization of immutable value 'result' was never used; consider replacing with assignment to '_' or removing it
  nostrdb/Ndb.swift:690
      Capture of 'self' with non-sendable type 'Ndb' in a '@Sendable' closure; this is an error in the Swift 6 language mode
  damus/Features/FollowPack/Models/FollowPackModel.swift:28
      Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
  nostrdb/ccan/ccan/mem/mem.h:71
      '@c' command has no word arguments, expected 1
  damus/Features/Profile/Views/ProfileActionSheetView.swift:286
      Sending 'self.damus_state' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:131
      Call to main actor-isolated initializer 'init(damus_state:friended_followers:followers:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
  damus/TestData.swift:51
      Let 'test_repost_1' is not concurrency-safe because non-'Sendable' type 'NostrEvent' (aka 'NdbNote') may have shared mutable state; this is an error in the Swift 6 language mode
  nostrdb/mdb.c:2607
      '@return' command used in a comment that is attached to a function returning void
  damus/Features/Profile/Models/ProfileModel.swift:205
      No 'async' operations occur within 'await' expression
  damus/Shared/Utilities/Router.swift:60
      Sending 'followers' risks causing data races; this is an error in the Swift 6 language mode
  nostrscript/NostrScript.swift:348
      Sending 'script' risks causing data races; this is an error in the Swift 6 language mode
  damus/Core/Nostr/RelayConnection.swift:181
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Purple/Views/DamusPurpleView.swift:196
      Main actor-isolated instance method 'product_was_purchased(product:)' cannot be used to satisfy nonisolated requirement from protocol 'DamusPurpleStoreKitManagerDelegate'; this is an error in the Swift 6 language mode
  damus/Core/Networking/NostrNetworkManager/UserRelayListManager.swift:129
      Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:64
      Sending 'damusState' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/mdb.c:3728
      Implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int'
  damus/Shared/Utilities/Router.swift:249
      Immutable value 'followPackModel' was never used; consider replacing with '_' or removing it
  damus/Features/Timeline/Models/HomeModel.swift:263
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Core/Storage/DamusState.swift:103
      Initialization of immutable value 'bootstrap_relays' was never used; consider replacing with assignment to '_' or removing it
  DamusNotificationService/NotificationFormatter.swift:99
      Non-sendable result type 'Zap?' cannot be sent from main actor-isolated context in call to global function 'get_zap(from:state:)'; this is an error in the Swift 6 language mode
  damus/TestData.swift:25
      Let 'test_note' is not concurrency-safe because non-'Sendable' type 'NostrEvent' (aka 'NdbNote') may have shared mutable state; this is an error in the Swift 6 language mode
  damus/Features/Profile/Models/ProfileModel.swift:204
      Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
  damus/Features/Search/Views/SearchResultsView.swift:192
      'onChange(of:perform:)' was deprecated in iOS 17.0: Use `onChange` with a two or zero parameter action closure instead.
  nostrdb/Ndb.swift:689
      Mutation of captured var 'streaming' in concurrently-executing code; this is an error in the Swift 6 language mode
  nostrdb/mdb.c:3920
      Implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int'
  damus/Features/Profile/Models/ProfileModel.swift:130
      Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:127
      Call to main actor-isolated initializer 'init(damus_state:model:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
  damus/Features/Purple/Models/StoreObserver.swift:12
      Static property 'standard' is not concurrency-safe because non-'Sendable' type 'StoreObserver' may have shared mutable state; this is an error in the Swift 6 language mode
  damus/Core/Networking/NostrNetworkManager/UserRelayListManager.swift:302
      Sending 'pool' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:80
      Call to main actor-isolated initializer 'init(damus_state:dms:colorScheme:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
  DamusNotificationService/NotificationFormatter.swift:12
      Static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  nostrdb/src/protected_queue.h:94
      Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
  damus/Shared/Utilities/Router.swift:107
      Call to main actor-isolated initializer 'init(damus_state:model:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
  Skipping duplicate build file in Compile Sources build phase: /Volumes/workspace/repository/damus/Shared/Media/Video/DamusVideoPlayer.swift
  damus/ContentView.swift:509
      'onChange(of:perform:)' was deprecated in iOS 17.0: Use `onChange` with a two or zero parameter action closure instead.
  damus/Shared/Utilities/Router.swift:90
      Call to main actor-isolated initializer 'init(settings:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/EventCache.swift:434
      Capture of 'plan' with non-sendable type 'PreloadPlan' in a '@Sendable' closure
  nostrdb/mdb.c:2254
      Variable 'last' may be uninitialized when used here
  damus/Core/Networking/NostrNetworkManager/SubscriptionManager.swift:35
      Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
  damus/Features/Timeline/Models/HomeModel.swift:1174
      Call to main actor-isolated initializer 'init(style:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
  nostrdb/Ndb.swift:77
      Static property 'db_files' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  damus/Shared/Media/Camera/Models/CameraService.swift:488
      Capture of 'self' with non-sendable type 'CameraService' in an isolated closure; this is an error in the Swift 6 language mode
  damus/Features/Relays/Views/RelayDetailView.swift:202
      No 'async' operations occur within 'await' expression
  damus/Features/Onboarding/Views/LoginView.swift:225
      Call to main actor-isolated instance method 'save_credential(pubkey:privkey:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
  damus/Features/Zaps/Models/ZapsModel.swift:44
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/TestData.swift:22
      Let 'test_event_holder' is not concurrency-safe because non-'Sendable' type 'EventHolder' may have shared mutable state; this is an error in the Swift 6 language mode
  nostrdb/src/nostrdb.c:5377
      Implicit conversion loses integer precision: 'unsigned long' to 'int'
  nostrdb/mdb.c:2057
      Implicit conversion loses integer precision: 'MDB_ID' (aka 'unsigned long') to 'unsigned int'
  nostrdb/Ndb.swift:143
      Sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/src/nostrdb.c:6858
      Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
  nostrdb/mdb.c:2922
      Implicit conversion loses integer precision: 'unsigned long' to 'int'
  damus/Shared/Utilities/EventCache.swift:405
      Sending 'plan.event' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:76
      Call to main actor-isolated initializer 'init(state:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
  damus/Features/Purple/Models/DamusPurple.swift:83
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Relays/Views/RelayDetailView.swift:191
      No 'async' operations occur within 'await' expression
  damus/Features/Search/Views/SearchingEventView.swift:81
      Non-sendable result type 'FoundEvent?' cannot be sent from nonisolated context in call to instance method 'findEvent(query:)'; this is an error in the Swift 6 language mode
  damus/Core/Nostr/RelayLog.swift:85
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/src/nostrdb.c:6863
      Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
  damus/Shared/Media/Camera/Models/CameraService.swift:411
      Implicit capture of 'self' requires that 'CameraService' conforms to 'Sendable'; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:133
      Sending 'load_model' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/src/nostrdb.c:5967
      Implicit conversion loses integer precision: 'long' to 'int'
  damus/Features/Wallet/Models/WalletModel.swift:119
      Sending 'result' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:68
      Sending 'following' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Translations/Views/TranslateView.swift:76
      Sending 'self.damus_state.settings' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Media/Camera/Models/CameraService.swift:429
      Capture of 'self' with non-sendable type 'CameraService' in a '@Sendable' closure
  damus/Features/Search/Views/SearchingEventView.swift:90
      Non-sendable result type 'FoundEvent?' cannot be sent from nonisolated context in call to instance method 'findEvent(query:)'; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:74
      Call to main actor-isolated initializer 'init(state:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
  damus/Core/Storage/DamusCacheManager.swift:29
      Capture of 'completion' with non-sendable type '(() -> Void)?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
  damus/Shared/Media/Camera/Models/CameraService.swift:533
      Capture of 'self' with non-sendable type 'CameraService' in an isolated closure; this is an error in the Swift 6 language mode
  damus/Core/Networking/NostrNetworkManager/SubscriptionManager.swift:54
      Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
  damus/Core/Networking/NostrNetworkManager/NostrNetworkManager.swift:111
      Variable 'nostrKinds' was never mutated; consider changing to 'let' constant
  damus/TestData.swift:69
      Var 'test_damus_state' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  nostrdb/mdb.c:3329
      Implicit conversion loses integer precision: 'MDB_ID' (aka 'unsigned long') to 'int'
  damus/Features/Settings/Views/KeySettingsView.swift:29
      'onChange(of:perform:)' was deprecated in iOS 17.0: Use `onChange` with a two or zero parameter action closure instead.
  nostrdb/src/nostrdb.c:5731
      Implicit conversion loses integer precision: 'long' to 'int'
  damus/Features/Follows/Models/FollowersModel.swift:40
      Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
  damus/TestData.swift:449
      Let 'test_thread_note_6' is not concurrency-safe because non-'Sendable' type 'NdbNote' may have shared mutable state; this is an error in the Swift 6 language mode
  damus/damusApp.swift:127
      Main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  damus/Features/Notifications/Models/NotificationsManager.swift:77
      No calls to throwing functions occur within 'try' expression
  damus/Shared/Utilities/InputDismissKeyboard.swift:38
      Main actor-isolated property 'isKeyWindow' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  damus/Core/Nostr/NostrEvent.swift:828
      No calls to throwing functions occur within 'try' expression
  damus/Shared/Media/Camera/Models/VideoCaptureProcessor.swift:56
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Events/EventDetailView.swift:28
      Capture of 'id' with non-sendable type 'ID' in a '@Sendable' closure
  damus/Features/Events/EventDetailView.swift:28
      Capture of 'id' with non-sendable type 'ID' in an isolated closure; this is an error in the Swift 6 language mode
  damus/TestData.swift:39
      Let 'test_super_short_note' is not concurrency-safe because non-'Sendable' type 'NostrEvent' (aka 'NdbNote') may have shared mutable state; this is an error in the Swift 6 language mode
  nostrdb/mdb.c:2082
      Implicit conversion loses integer precision: 'MDB_ID' (aka 'unsigned long') to 'unsigned int'
  damus/Shared/Buttons/PostButton.swift:43
      Call to main actor-isolated initializer 'init(minLength:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
  nostrdb/Ndb.swift:659
      Mutation of captured var 'terminationStarted' in concurrently-executing code; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:127
      Sending 'walletModel.some' risks causing data races; this is an error in the Swift 6 language mode
  damus/ContentView.swift:680
      Initialization of immutable value 'new_relay_filters' was never used; consider replacing with assignment to '_' or removing it
  damus/Shared/Utilities/Router.swift:88
      Call to main actor-isolated initializer 'init(damus_state:settings:notification_mode_setting_error:notification_preferences_sync_state:dismiss:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
  damus/Features/Posting/Views/PostView.swift:234
      Sending 'self.damus_state.drafts' risks causing data races; this is an error in the Swift 6 language mode
  damus/Core/Nostr/RelayConnection.swift:212
      Capture of 'self' with non-sendable type 'RelayConnection' in a '@Sendable' closure
  nostrdb/src/nostrdb.c:1736
      Implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'int'
  nostrdb/src/nostrdb.c:3602
      Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
  damus/Shared/Utilities/Router.swift:249
      Immutable value 'blur_imgs' was never used; consider replacing with '_' or removing it
  damus/TestData.swift:47
      Let 'test_encoded_note_with_image' is not concurrency-safe because non-'Sendable' type 'NdbNote?' may have shared mutable state; this is an error in the Swift 6 language mode
  damus/Features/Settings/Views/NotificationSettingsView.swift:57
      Sending 'self.damus_state.push_notification_client' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Media/CoreSVG.swift:19
      Var 'CGSVGDocumentGetCanvasSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  damus/Shared/Media/Camera/Models/CameraService.swift:488
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Timeline/Models/HomeModel.swift:481
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Media/Camera/Models/CameraService.swift:348
      Capture of 'self' with non-sendable type 'CameraService' in a '@Sendable' closure
  nostrdb/src/nostrdb.c:321
      Implicit conversion loses integer precision: 'long' to 'int'
  damus/Shared/Utilities/EventCache.swift:457
      Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
  nostrdb/src/nostrdb.c:6925
      Implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'uint32_t' (aka 'unsigned int')
  damus/Shared/Utilities/Router.swift:139
      Sending 'followPackModel' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/EventCache.swift:432
      Pattern that the region based isolation checker does not understand how to check. Please file a bug; this is an error in the Swift 6 language mode
  damus/Core/Nostr/NostrEvent.swift:604
      'decrypt_dm(_:pubkey:content:encoding:)' is deprecated: Deprecated, please use NIP04.decryptContent instead
  damus/Features/Search/Views/SearchingEventView.swift:90
      Sending 'self.state.nostrNetwork' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:115
      Sending 'damusState' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/mdb.c:4732
      '@param' command used in a comment that is not attached to a function declaration
  damus/Features/Zaps/Views/NoteZapButton.swift:196
      Expression is 'async' but is not marked with 'await'; this is an error in the Swift 6 language mode
  nostrdb/src/nostrdb.c:5182
      Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
  damus/Features/NostrScript/LoadScript.swift:63
      Passing closure as a 'sending' parameter risks causing data races between main actor-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
  damus/Core/Nostr/RelayPool.swift:238
      Immutable value 'note' was never used; consider replacing with '_' or removing it
  damus/Shared/Utilities/Router.swift:60
      Call to main actor-isolated initializer 'init(damus_state:profile:followers:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
  nostrdb/Ndb.swift:686
      Reference to captured var 'terminationStarted' in concurrently-executing code; this is an error in the Swift 6 language mode
  damus/Shared/Media/Models/ImageCarousel.swift:10
      Add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
  damus/Core/Nostr/RelayConnection.swift:212
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Profile/Models/ProfileModel.swift:108
      Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
  nostrdb/mdb.c:5770
      Implicit conversion loses integer precision: 'MDB_ID' (aka 'unsigned long') to 'unsigned int'
  damus/Core/Networking/NostrNetworkManager/UserRelayListManager.swift:299
      Sending 'model_cache' risks causing data races; this is an error in the Swift 6 language mode
  damus/Core/Nostr/RelayConnection.swift:223
      Capture of 'ev' with non-sendable type 'NostrResponse' in a '@Sendable' closure
  damus/Shared/Utilities/EventCache.swift:379
      Sending 'profiles' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/src/nostrdb.c:5530
      Implicit conversion loses integer precision: 'long' to 'int'
  damus/Shared/Utilities/EventCache.swift:413
      Capture of 'plan' with non-sendable type 'PreloadPlan' in a '@Sendable' closure
  damus/Shared/Media/Camera/Models/PhotoCaptureProcessor.swift:57
      Capture of 'self' with non-sendable type 'PhotoCaptureProcessor' in a '@Sendable' closure
  damus/TestData.swift:444
      Let 'test_thread_note_1' is not concurrency-safe because non-'Sendable' type 'NdbNote' may have shared mutable state; this is an error in the Swift 6 language mode
  nostrdb/src/nostrdb.c:4115
      Implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'int'
  nostrscript/NostrScript.swift:348
      Capture of 'script' with non-sendable type 'NostrScript' in a '@Sendable' closure
  damus/Shared/Utilities/Router.swift:86
      Sending 'damusState' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:60
      Sending 'damusState' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Zaps/Views/NoteZapButton.swift:200
      Sending 'damus_state' risks causing data races; this is an error in the Swift 6 language mode
  damus/TestData.swift:448
      Let 'test_thread_note_5' is not concurrency-safe because non-'Sendable' type 'NdbNote' may have shared mutable state; this is an error in the Swift 6 language mode
  damus/ContentView.swift:919
      Call to main actor-isolated instance method 'registerForRemoteNotifications()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
  damus/Shared/Media/Models/ImageCarousel.swift:70
      Main actor-isolated property 'currentPage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  share extension/ShareViewController.swift:182
      'onChange(of:perform:)' was deprecated in iOS 17.0: Use `onChange` with a two or zero parameter action closure instead.
  damus/Core/Nostr/RelayPool.swift:271
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:111
      Sending value of non-Sendable type '() -> EventsModel' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:117
      Sending 'results' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:100
      Sending 'damusState' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/src/nostrdb.c:7105
      Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'