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 | Experimental build workflow | Archive - iOS succeeded Aug 19, 2025 in 21m 25s

729 warnings

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

Details

729 Warnings

Details

  nostrdb/mdb.c:5782
      Implicit conversion loses integer precision: 'pgno_t' (aka 'unsigned long') to 'unsigned int'
  damus/Shared/Utilities/Router.swift:125
      Call to main actor-isolated initializer 'init(account:)' in a synchronous nonisolated context; 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/Shared/Extensions/OffsetExtension.swift:76
      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/Events/EventDetailView.swift:28
      Sending 'id' risks causing data races; this is an error in the Swift 6 language mode
  damus/Core/Nostr/RelayPool.swift:63
      Reference to captured var 'self' in concurrently-executing code
  damus/Core/Storage/DamusState.swift:222
      Stored property 'relayModelCache' of 'Sendable'-conforming struct 'NostrNetworkManagerDelegate' has non-sendable type 'RelayModelCache'; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:105
      Call to main actor-isolated initializer 'init(state:note_reference:)' in a synchronous nonisolated context; 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
  nostrdb/Ndb.swift:658
      Reference to captured var 'terminationStarted' in concurrently-executing code; this is an error in the Swift 6 language mode
  damus/Features/Purple/Models/DamusPurple.swift:116
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:82
      Sending 'damusState' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Purple/Views/DamusPurpleVerifyNpubView.swift:49
      Sending 'self.damus_state.purple' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Media/Models/MediaPicker.swift:87
      Call to main actor-isolated instance method 'attemptAcquireResourceAndChooseMedia(url:fallback:unprocessedEnum:processedEnum:orderId:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/EventCache.swift:384
      Sending 'arts' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Media/Models/MediaPicker.swift:97
      Call to main actor-isolated instance method 'chooseMedia(_:orderId:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
  damus/Features/Timeline/Models/HomeModel.swift:389
      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/Events/NoteContentView.swift:28
      'withUnsafeBytes' is deprecated: use `withUnsafeBytes(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
  nostrdb/src/nostrdb.c:424
      Variable 'sb' may be uninitialized when used here
  damus/Shared/Utilities/Router.swift:72
      Sending 'damusState' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/mdb.c:3903
      Implicit conversion loses integer precision: 'unsigned long long' to 'int'
  nostrdb/src/nostrdb.c:3589
      Implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'int'
  nostrdb/src/nostrdb.c:5238
      Implicit conversion loses integer precision: 'long' to 'uint32_t' (aka 'unsigned int')
  damus/Features/Events/Models/LoadableNostrEventView.swift:81
      Sending 'self.damus_state.nostrNetwork' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/flatcc/builder.c:1143
      Code will never be executed
  damus/Shared/Utilities/Router.swift:137
      Call to main actor-isolated initializer 'init(damus_state:domain:nip05_domain_favicon:pubkeys:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
  damus/Features/Timeline/Models/HomeModel.swift:545
      Variable 'event' was never mutated; consider changing to 'let' constant
  damus/Features/Follows/Models/FollowingModel.swift:45
      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:78
      Call to main actor-isolated initializer 'init(damus_state:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
  damus/Features/Notifications/Views/NotificationsView.swift:136
      '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:135
      Sending 'events' risks causing data races; 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
  nostrdb/src/nostrdb.c:5281
      Implicit conversion loses integer precision: 'unsigned long' to 'int'
  nostrdb/mdb.c:3582
      Implicit conversion loses integer precision: 'MDB_ID' (aka 'unsigned long') to 'unsigned int'
  damus/Core/Nostr/RelayPool.swift:330
      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/Events/EventLoaderView.swift:34
      No 'async' operations occur within 'await' expression
  nostrdb/midl.c:44
      Implicit conversion loses integer precision: 'MDB_ID' (aka 'unsigned long') to 'unsigned int'
  damus/Features/Events/Models/NoteContent.swift:91
      Sending 'ndb' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Timeline/Models/HomeModel.swift:398
      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:115
      Call to main actor-isolated initializer 'init(appstate:search:dismiss:is_hashtag_muted:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:137
      Sending 'damusState' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Media/Camera/Models/CameraService.swift:279
      Capture of 'self' with non-sendable type 'CameraService' in a '@Sendable' closure
  damus/Core/Storage/DamusState.swift:209
      Stored property 'contacts' of 'Sendable'-conforming struct 'NostrNetworkManagerDelegate' has non-sendable type 'Contacts'; this is an error in the Swift 6 language mode
  damus/Shared/Media/Camera/Models/CameraService.swift:266
      Capture of 'self' with non-sendable type 'CameraService' in a '@Sendable' closure
  damus/Shared/Media/Models/ImageUploadModel.swift:87
      Stored property '_progress' of 'Sendable'-conforming class 'ImageUploadModel' is mutable; this is an error in the Swift 6 language mode
  damus/Features/Timeline/Models/HomeModel.swift:961
      Capture of 'callback' with non-sendable type '() -> Void' in a '@Sendable' closure
  nostrdb/src/protected_queue.h:94
      Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
  DamusNotificationService/NotificationFormatter.swift:99
      Sending 'notify.event' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/src/nostrdb.c:374
      Implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int'
  damus/Shared/Utilities/Router.swift:102
      Sending 'damusState' risks causing data races; this is an error in the Swift 6 language mode
  damus/Core/Storage/DamusState.swift:223
      Stored property 'relayFilters' of 'Sendable'-conforming struct 'NostrNetworkManagerDelegate' has non-sendable type 'RelayFilters'; this is an error in the Swift 6 language mode
  damus/Features/Events/NoteContentView.swift:298
      Sending 'self.damus_state.ndb' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Media/Camera/Models/CameraService.swift:275
      Capture of 'self' with non-sendable type 'CameraService' in a '@Sendable' closure
  nostrdb/mdb.c:4906
      Format specifies type 'int' but the argument has type 'unsigned long'
  damus/Features/Notifications/Models/NotificationsManager.swift:77
      No calls to throwing functions occur within 'try' expression
  nostrdb/Ndb.swift:686
      Reference to captured var 'terminationStarted' in concurrently-executing code; this is an error in the Swift 6 language mode
  damus/ContentView.swift:93
      Call to main actor-isolated initializer 'init(video_coordinator:urls:showMenu:settings:selectedIndex:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
  damus/Features/Events/Models/LoadableNostrEventView.swift:81
      Non-sendable result type 'NostrEvent?' (aka 'Optional') cannot be sent from nonisolated context in call to instance method 'lookup(naddr:)'; 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/Core/Nostr/RelayLog.swift:85
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/InputDismissKeyboard.swift:37
      Main actor-isolated property 'windows' can not be referenced from a nonisolated context; 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/Features/Purple/Models/StoreObserver.swift:26
      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/Purple/Models/DamusPurple.swift:83
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Posting/Views/PostView.swift:108
      Sending 'damus_state' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/Ndb.swift:663
      Reference to captured var 'subid' in concurrently-executing code; this is an error in the Swift 6 language mode
  damus/Core/Nostr/RelayConnection.swift:147
      Capture of 'self' with non-sendable type 'RelayConnection' in a '@Sendable' closure
  highlighter action extension/ActionViewController.swift:153
      'onChange(of:perform:)' was deprecated in iOS 17.0: Use `onChange` with a two or zero parameter action closure instead.
  damus/Core/Nostr/RelayConnection.swift:181
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Profile/Models/ProfileModel.swift:75
      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/Purple/Views/DamusPurpleView.swift:202
      Sending 'self.damus_state.purple' risks causing data races; this is an error in the Swift 6 language mode
  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/Media/Camera/Models/CameraService.swift:429
      Capture of 'self' with non-sendable type 'CameraService' in a '@Sendable' closure
  damus/Features/Wallet/Models/WalletModel.swift:111
      Initialization of immutable value 'timeoutTask' was never used; consider replacing with assignment to '_' or removing it
  nostrdb/src/nostrdb.c:1736
      Implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'int'
  damus/Shared/Media/Camera/Models/CameraService.swift:583
      Capture of 'self' with non-sendable type 'CameraService' in a '@Sendable' closure
  damus/TestData.swift:446
      Let 'test_thread_note_3' 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/content_parser.c:89
      Implicit conversion loses integer precision: 'long' to 'uint32_t' (aka 'unsigned int')
  nostrdb/mdb.c:7988
      Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to '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/src/nostrdb.c:7105
      Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
  damus/Features/Search/Views/PullDownSearch.swift:60
      'onChange(of:perform:)' was deprecated in iOS 17.0: Use `onChange` with a two or zero parameter action closure instead.
  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
  damus/Features/Follows/Models/FollowersModel.swift:82
      No 'async' operations occur within 'await' expression
  nostrdb/mdb.c:5283
      Implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'unsigned int'
  damus/Shared/Extensions/OffsetExtension.swift:69
      Main actor-isolated property 'connectedScenes' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  nostrdb/mdb.c:2922
      Implicit conversion loses integer precision: 'unsigned long' to 'int'
  nostrscript/NostrScript.swift:348
      Sending 'script' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/InputDismissKeyboard.swift:39
      Call to main actor-isolated instance method 'endEditing' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
  damus/Features/NostrScript/LoadScript.swift:48
      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/Features/Timeline/Models/HomeModel.swift:957
      Capture of 'ev' with non-sendable type 'NostrEvent' (aka 'NdbNote') in a '@Sendable' closure
  nostrdb/src/nostrdb.c:3581
      Implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'int'
  damus/Features/Search/Views/SearchResultsView.swift:188
      'onChange(of:perform:)' was deprecated in iOS 17.0: Use `onChange` with a two or zero parameter action closure instead.
  damus/Shared/Media/Camera/Models/PhotoCaptureProcessor.swift:70
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Posting/Views/PostView.swift:234
      Sending 'self.damus_state' risks causing data races; this is an error in the Swift 6 language mode
  damus/Core/Storage/DamusState.swift:208
      Stored property 'settings' of 'Sendable'-conforming struct 'NostrNetworkManagerDelegate' has non-sendable type 'UserSettingsStore'; this is an error in the Swift 6 language mode
  damus/Shared/Media/Camera/Models/CameraService.swift:153
      Capture of 'self' with non-sendable type 'CameraService' in a '@Sendable' closure
  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.
  damus/ContentView.swift:506
      Sending value of non-Sendable type '@MainActor (DamusAppNotification) async -> ()' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/src/nostrdb.c:5154
      Implicit conversion loses integer precision: 'long' to 'int'
  nostrscript/NostrScript.swift:348
      Capture of 'script' with non-sendable type 'NostrScript' in a '@Sendable' closure
  damus/Features/Events/Models/NoteContent.swift:91
      Initialization of immutable value 'result' was never used; consider replacing with assignment to '_' or removing it
  damus/Features/Profile/Models/ProfileModel.swift:205
      No 'async' operations occur within 'await' expression
  damus/Shared/Utilities/EventCache.swift:405
      Sending 'profiles' risks causing data races; this is an error in the Swift 6 language mode
  damus/ContentView.swift:361
      Non-sendable result type 'ContentView.ViewOpenAction' cannot be sent from nonisolated context in call to static method 'handle_opening_url_and_compute_view_action(damus_state:url:)'; 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.
  damus/Shared/Media/Models/ImageCarousel.swift:415
      'onChange(of:perform:)' was deprecated in iOS 17.0: Use `onChange` with a two or zero parameter action closure instead.
  nostrdb/Ndb.swift:664
      Capture of 'self' with non-sendable type 'Ndb' in a '@Sendable' closure; this is an error in the Swift 6 language mode
  nostrdb/src/nostrdb.c:5217
      Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
  damus/TestData.swift:54
      Let 'test_reposts' is not concurrency-safe because non-'Sendable' type '[NostrEvent]' (aka 'Array') may have shared mutable state; this is an error in the Swift 6 language mode
  nostrdb/mdb.c:5280
      Implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'unsigned int'
  damus/Shared/Utilities/Router.swift:121
      Call to main actor-isolated initializer 'init(key:is_pubkey:error:nav:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
  nostrdb/src/content_parser.c:606
      Implicit conversion loses integer precision: 'long' to 'uint32_t' (aka 'unsigned int')
  damus/Shared/Utilities/Router.swift:68
      Call to main actor-isolated initializer 'init(damus_state:following:tab_selection:colorScheme:)' in a synchronous nonisolated context; 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'
  nostrdb/mdb.c:1860
      Implicit conversion loses integer precision: 'MDB_ID' (aka 'unsigned long') to 'unsigned int'
  damus/Features/Translations/Views/TranslateView.swift:76
      Sending 'self.damus_state.purple' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Timeline/Models/HomeModel.swift:957
      Sending 'ev' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Purple/Models/PurpleStoreKitManager.swift:42
      Static property 'standard' is not concurrency-safe because non-'Sendable' type 'DamusPurple.StoreKitManager' may have shared mutable state; this is an error in the Swift 6 language mode
  damus/Features/Search/Models/SearchHomeModel.swift:123
      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/Nostr/RelayConnection.swift:223
      Capture of 'self' with non-sendable type 'RelayConnection' in a '@Sendable' closure
  damus/Features/Events/NoteContentView.swift:298
      Non-sendable result type 'NoteArtifacts' cannot be sent from actor-isolated context in call to instance method 'render_note_content(ndb:ev:profiles:keypair:)'; this is an error in the Swift 6 language mode
  damus/Features/Timeline/Models/HomeModel.swift:268
      Sending 'ev' risks causing data races; 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/Features/Purple/Views/DamusPurpleView.swift:185
      Sending 'self.damus_state.purple.storekit_manager' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Timeline/Models/HomeModel.swift:573
      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/Nostr/RelayConnection.swift:223
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/Ndb.swift:766
      Sending 'result' risks causing data races; 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
  nostrdb/src/block.c:31
      Implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'enum nostr_bech32_type'
  damus/Core/Nostr/RelayConnection.swift:158
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/mdb.c:6903
      Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
  nostrdb/src/nostrdb.c:3565
      Implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'int'
  damus/Shared/Components/Text/SelectableText.swift:55
      'onChange(of:perform:)' was deprecated in iOS 17.0: Use `onChange` with a two or zero parameter action closure instead.
  damus/Shared/Utilities/DebouncedOnChange.swift:37
      'onChange(of:perform:)' was deprecated in iOS 17.0: Use `onChange` with a two or zero parameter action closure instead.
  damus/Core/Nostr/RelayConnection.swift:212
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:86
      Sending 'settings' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Events/Models/NoteContent.swift:91
      Non-sendable result type 'NdbTxn?' cannot be sent from nonisolated context in call to instance method 'waitFor(noteId:timeout:)'; this is an error in the Swift 6 language mode
  damus/Features/Translations/Views/TranslateView.swift:76
      Non-sendable result type 'TranslateStatus' cannot be sent from nonisolated context in call to global function 'translate_note(profiles:keypair:event:settings:note_lang:purple:)'; 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'
  damus/Features/Profile/Views/ProfileView.swift:578
      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/Shared/Utilities/Router.swift:88
      Sending 'settings' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Media/Camera/Models/CameraService.swift:117
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/ContentView.swift:93
      Sending 'damus_state.settings' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Events/NoteContentView.swift:298
      Sending 'self.event' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:117
      Sending 'damusState' risks causing data races; this is an error in the Swift 6 language mode
  damus/Core/Nostr/RelayPool.swift:63
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Zaps/Views/NoteZapButton.swift:217
      Sending 'pending_zap_state' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:62
      Call to main actor-isolated initializer 'init(damus_state:followers:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
  damus/Shared/Media/Camera/Models/CameraService.swift:518
      Capture of 'self' with non-sendable type 'CameraService' in a '@Sendable' closure
  damus/Core/NIPs/NIP51/InterestList.swift:36
      Variable 'tag' was never mutated; consider changing to 'let' constant
  damus/Features/Translations/Models/Translator.swift:187
      Capture of 'onCancel' 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:153
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Chat/ChatEventView.swift:228
      '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: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/Shared/Utilities/Router.swift:117
      Call to main actor-isolated initializer 'init(damus_state:results:)' in a synchronous 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/Features/Settings/Models/UserSettingsStore.swift:95
      Static property 'pubkey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  nostrdb/src/cursor.h:407
      Implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'int'
  damus/Features/Events/NoteContentView.swift:36
      'withUnsafeBytes' is deprecated: use `withUnsafeBytes(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
  damus/Shared/Utilities/Router.swift:60
      Sending 'damusState' risks causing data races; 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
  nostrdb/src/nostrdb.c:5477
      Implicit conversion loses integer precision: 'long' to 'int'
  nostrdb/src/nostrdb.c:4341
      Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
  damus/Features/Events/NoteContentView.swift:298
      Sending 'self.damus_state.profiles' 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.profiles' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:94
      Sending 'damusState' 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
  damus/ContentView.swift:715
      Sending value of non-Sendable type '@MainActor (DamusAppNotification) async -> ()' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Settings/Views/KeySettingsView.swift:128
      Capture of 'completion' with non-sendable type '(Bool) -> Void' in a '@Sendable' closure
  damus/Shared/Media/Camera/Models/CameraService.swift:390
      Capture of 'self' with non-sendable type 'CameraService' in a '@Sendable' closure
  nostrdb/mdb.c:6823
      Implicit conversion loses integer precision: 'unsigned long' to 'unsigned int'
  damus/Core/Storage/DamusState.swift:163
      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/protected_queue.h:200
      Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
  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
  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/Shared/Utilities/Router.swift:127
      Sending 'walletModel.some' 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
  nostrdb/src/nostrdb.c:3597
      Implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'int'
  nostrdb/src/nostrdb.c:5959
      Implicit conversion loses integer precision: 'long' to 'uint32_t' (aka 'unsigned int')
  damus/TestData.swift:62
      Let 'test_private_zap' is not concurrency-safe because non-'Sendable' type 'Zap' may have shared mutable state; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:135
      Sending 'damusState' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Follows/Models/FollowersModel.swift:41
      No 'async' operations occur within 'await' expression
  damus/Shared/Media/Camera/Models/CameraService.swift:690
      Capture of 'self' with non-sendable type 'CameraService' in a '@Sendable' closure
  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/Features/Purple/Models/DamusPurple.swift:174
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/TestData.swift:59
      Let 'test_zap_request' is not concurrency-safe because non-'Sendable' type 'ZapRequest' may have shared mutable state; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/EventCache.swift:405
      Sending 'plan.event' risks causing data races; this is an error in the Swift 6 language mode
  damus/Core/Nostr/RelayPool.swift:61
      Implicit capture of 'self' requires that 'RelayPool?' conforms to 'Sendable'; this is an error in the Swift 6 language mode
  nostrdb/Ndb.swift:690
      Reference to captured var 'subid' in concurrently-executing code; this is an error in the Swift 6 language mode
  damus/Core/Nostr/RelayConnection.swift:174
      Capture of 'self' with non-sendable type 'RelayConnection' in a '@Sendable' closure
  nostrdb/mdb.c:5762
      Implicit conversion loses integer precision: 'MDB_ID' (aka 'unsigned long') to 'unsigned int'
  damus/Shared/Utilities/Router.swift:58
      Call to main actor-isolated initializer 'init(damus_state:pubkey:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
  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.