Skip to content

address jb55 feedback on HighlightView.swift on low level anti-patter…

df12e04
Select commit
Loading
Failed to load commit list.
Open

adds full longform highlight support. signed by npub1zafcms4xya5ap9zr… #3258

address jb55 feedback on HighlightView.swift on low level anti-patter…
df12e04
Select commit
Loading
Failed to load commit list.
Xcode Cloud / damus | Default | Test - iOS required action Oct 14, 2025 in 12m 5s

1 error, 711 warnings

Report Summary
Errors 1
Test Failures 0
Analysis Issues 0
Warnings 711

Details

1 Error

Details

  damusTests/NIP10Tests.swift:9
      Compiling for iOS 16.0, but module 'damus' has a minimum deployment target of iOS 18.6: /Volumes/workspace/DerivedData/Build/Products/Debug-iphonesimulator/damus.swiftmodule/x86_64-apple-ios-simulator.swiftmodule

711 Warnings

Details

  damus/Shared/Utilities/Router.swift:108
      Sending value of non-Sendable type '() -> EventsModel' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Extensions/OffsetExtension.swift:76
      Main actor-isolated property 'windows' can not be referenced from a nonisolated context
  nostrdb/mdb.c:5782
      Implicit conversion loses integer precision: 'pgno_t' (aka 'unsigned long') to 'unsigned int'
  damus/Core/Nostr/RelayPool.swift:54
      Implicit capture of 'self' requires that 'RelayPool?' conforms to 'Sendable'; this is an error in the Swift 6 language mode
  nostrdb/src/cursor.h:420
      Implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'int'
  nostrdb/mdb.c:3992
      Implicit conversion loses integer precision: 'long' to 'unsigned int'
  damus/Shared/Components/Shimmer.swift:17
      Static property 'default' is not concurrency-safe because non-'Sendable' type 'ShimmerConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
  damus/TestData.swift:445
      Let 'test_thread_note_2' 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/Ndb.swift:760
      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/Zaps/Views/NoteZapButton.swift:209
      Sending 'zapreq' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Settings/Views/AppearanceSettingsView.swift:154
      '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:158
      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 an isolated closure
  nostrdb/Ndb.swift:691
      Reference to captured var 'subid' in concurrently-executing code; this is an error in the Swift 6 language mode
  damus/Features/Highlight/Views/HighlightView.swift:335
      Sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Media/Camera/Models/CameraService.swift:591
      'AVCaptureDeviceSubjectAreaDidChange' was deprecated in iOS 18.0: renamed to 'AVCaptureDevice.subjectAreaDidChangeNotification'
  damus/Features/Notifications/Models/PushNotificationClient.swift:230
      Static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:124
      Sending 'navigationCoordinator' risks causing data races; 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/Utilities/Router.swift:83
      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/Features/Events/Models/NoteContent.swift:91
      Sending 'ndb' risks causing data races; this is an error in the Swift 6 language mode
  damus/ContentView.swift:8
      Add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'UserNotifications'
  nostrdb/mdb.c:2193
      Implicit conversion loses integer precision: 'pgno_t' (aka 'unsigned long') to 'unsigned int'
  damus/Shared/Components/InvoiceView.swift:98
      Call to main actor-isolated instance method 'open(_:options:completionHandler:)' in a synchronous nonisolated context
  damus/Features/Purple/Models/StoreObserver.swift:11
      'SKPaymentTransactionObserver' was deprecated in iOS 18.0: Use StoreKit 2 Transaction APIs
  nostrdb/src/nostrdb.c:5959
      Implicit conversion loses integer precision: 'long' to 'uint32_t' (aka 'unsigned int')
  damus/Shared/Media/Camera/Models/CameraService.swift:531
      Capture of 'self' with non-Sendable type 'CameraService' in an isolated closure
  damus/Shared/Utilities/Theme.swift:17
      Main actor-isolated property 'isKeyWindow' can not be referenced from a nonisolated context
  damus/Shared/Utilities/Router.swift:81
      Sending 'damusState' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/EventCache.swift:384
      Sending 'plan' risks causing data races; this is an error in the Swift 6 language mode
  damus/Core/Networking/NostrNetworkManager/UserRelayListManager.swift:302
      Capture of 'pool' with non-Sendable type 'RelayPool' in a '@Sendable' closure; this is an error in the Swift 6 language mode
  damus/Shared/Media/Camera/Models/VideoCaptureProcessor.swift:73
      Capture of 'self' with non-Sendable type 'VideoCaptureProcessor' in a '@Sendable' closure
  damus/Shared/Utilities/Theme.swift:16
      Main actor-isolated property 'windows' can not be referenced from a nonisolated context
  damus/Shared/Media/Camera/Models/CameraService.swift:514
      'AVCaptureVideoOrientation' was deprecated in iOS 17.0: Use AVCaptureDeviceRotationCoordinator instead
  damus/Core/Networking/NostrNetworkManager/UserRelayListManager.swift:302
      Sending 'relay_id' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Timeline/Models/HomeModel.swift:117
      Capture of 'self' with non-Sendable type 'HomeModel' in a '@Sendable' closure
  damus/Core/Nostr/RelayConnection.swift:174
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/mdb.c:3597
      Implicit conversion loses integer precision: 'MDB_ID' (aka 'unsigned long') to 'unsigned int'
  nostrdb/Ndb.swift:678
      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
  Cannot form key path that captures non-Sendable type 'KeyPath'; this is an error in the Swift 6 language mode
  damus/Features/Onboarding/Views/CreateAccountView.swift:152
      Non-Sendable 'some View'-typed result can not be returned from main actor-isolated instance method 'placeholder(when:alignment:placeholder:)' to nonisolated context; this is an error in the Swift 6 language mode
  damus/Shared/Media/Camera/Models/CameraService.swift:466
      'videoOrientation' was deprecated in iOS 17.0: Use -videoRotationAngle instead
  damus/Features/Wallet/Views/NWCSettings.swift:246
      'onChange(of:perform:)' was deprecated in iOS 17.0: Use `onChange` with a two or zero parameter action closure instead.
  nostrdb/mdb.c:4905
      Format specifies type 'int' but the argument has type 'unsigned long'
  damus/Shared/Extensions/DamusFullScreenCover.swift:34
      'onChange(of:perform:)' was deprecated in iOS 17.0: Use `onChange` with a two or zero parameter action closure instead.
  nostrdb/src/nostrdb.c:369
      Implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'unsigned int'
  damus/Features/Timeline/Models/HomeModel.swift:412
      Capture of 'self' with non-Sendable type 'HomeModel' in a '@Sendable' closure
  nostrdb/mdb.c:7988
      Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
  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/Utilities/InputDismissKeyboard.swift:39
      Call to main actor-isolated instance method 'endEditing' in a synchronous nonisolated context
  damus/Shared/Utilities/Router.swift:122
      Call to main actor-isolated initializer 'init(key:is_pubkey:error:nav:)' in a synchronous nonisolated context
  nostrdb/src/nostrdb.c:3375
      Implicit conversion loses integer precision: 'unsigned long' to 'int'
  damus/Shared/Utilities/Router.swift:103
      Call to main actor-isolated initializer 'init(dismiss:once:damus:thread:highlighted_note_id:user_just_posted_flag:untrusted_network_expanded:showStickyHeader:untrustedSectionOffset:)' in a synchronous nonisolated context
  nostrdb/src/nostrdb.c:6863
      Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
  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/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
  damus/Shared/Utilities/Router.swift:130
      Sending 'walletScanResult' 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'
  damus/Shared/Utilities/Router.swift:89
      Sending 'damusState' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:93
      Call to main actor-isolated initializer 'init(settings:damus_state:dismiss:)' in a synchronous nonisolated context
  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
  damus/Shared/Media/Camera/Models/CameraService.swift:488
      Capture of 'self' with non-Sendable type 'CameraService' in an isolated closure
  damus/Features/Chat/ChatEventView.swift:198
      '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:110
      Sending 'quote_reposts' risks causing data races; 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/Media/Camera/Models/CameraService.swift:429
      Capture of 'self' with non-Sendable type 'CameraService' 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/Shared/Utilities/Router.swift:128
      Sending 'walletModel.some' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Status/Models/UserStatus.swift:128
      Mutation of captured var 'new_val' in concurrently-executing code
  damus/Features/Timeline/Models/HomeModel.swift:928
      Capture of 'events' with non-Sendable type 'EventCache' in a '@Sendable' closure
  damus/Shared/Media/Camera/Models/PhotoCaptureProcessor.swift:70
      Capture of 'self' with non-Sendable type 'PhotoCaptureProcessor' in a '@Sendable' closure
  nostrdb/Ndb.swift:803
      Sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Media/CoreSVG.swift:24
      Let 'CoreSVG' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:122
      Sending 'navigationCoordinator' risks causing data races; this is an error in the Swift 6 language mode
  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
  nostrdb/mdb.c:3329
      Implicit conversion loses integer precision: 'MDB_ID' (aka 'unsigned long') to 'int'
  damus/Shared/Utilities/EventCache.swift:405
      Sending 'state.ndb' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/src/nostrdb.c:3581
      Implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'int'
  nostrdb/Ndb.swift:143
      Sending 'ndb_instance.some' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:207
      Main actor-isolated property 'original_event' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  damus/Shared/Media/Camera/Models/CameraService.swift:275
      Sending 'self' risks causing data races; 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/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
  nostrdb/mdb.c:3903
      Implicit conversion loses integer precision: 'unsigned long long' to 'int'
  damus/Shared/Utilities/Router.swift:69
      Call to main actor-isolated initializer 'init(damus_state:following:tab_selection:colorScheme:)' in a synchronous nonisolated context
  damus/Features/Wallet/Models/WalletModel.swift:119
      Sending 'result' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Events/Models/LoadableNostrEventView.swift:81
      Sending 'self.damus_state' 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/Utilities/Router.swift:285
      Static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NavigationCoordinator?' may have shared mutable state; this is an error in the Swift 6 language mode
  nostrdb/Ndb.swift:782
      Initialization of immutable value 'timeoutTask' was never used; consider replacing with assignment to '_' or removing it
  damus/Shared/Extensions/OffsetExtension.swift:61
      Static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  damus/TestData.swift:58
      Let 'test_zap_request_ev' 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/Posting/Views/PostView.swift:745
      'copyCGImage(at:actualTime:)' was deprecated in iOS 18.0: Use generateCGImageAsynchronouslyForTime:completionHandler: instead
  damus/Features/Posting/Views/PostView.swift:753
      Main actor-isolated class property 'main' can not be referenced from a nonisolated context
  nostrdb/mdb.c:2922
      Implicit conversion loses integer precision: 'unsigned long' to 'int'
  damus/Core/Storage/DamusState.swift:103
      Initialization of immutable value 'bootstrap_relays' was never used; consider replacing with assignment to '_' or removing it
  damus/Core/NIPs/NIP65/NIP65.swift:18
      Stored property 'relays' of 'Sendable'-conforming struct 'RelayList' contains non-Sendable type 'RelayURL'; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:132
      Sending 'damusState' risks causing data races; 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/Core/Networking/NostrNetworkManager/SubscriptionManager.swift:53
      Sending value of non-Sendable type 'NostrNetworkManager.StreamItem' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:59
      Call to main actor-isolated initializer 'init(damus_state:pubkey:)' in a synchronous nonisolated context
  nostrdb/src/nostrdb.c:5733
      Implicit conversion loses integer precision: 'long' to 'int'
  nostrdb/NdbTxn.swift:181
      Initialization of immutable value 'moved' was never used; consider replacing with assignment to '_' or removing it
  nostrdb/src/nostrdb.c:5377
      Implicit conversion loses integer precision: 'unsigned long' to 'int'
  damus/Features/Timeline/Models/HomeModel.swift:1145
      Call to main actor-isolated initializer 'init(style:)' in a synchronous nonisolated context
  damus/Shared/Utilities/Router.swift:63
      Sending 'damusState' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Media/Camera/Models/CameraService.swift:58
      'copyCGImage(at:actualTime:)' was deprecated in iOS 18.0: Use generateCGImageAsynchronouslyForTime:completionHandler: instead
  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
  damus/Shared/Utilities/Router.swift:118
      Call to main actor-isolated initializer 'init(damus_state:results:)' in a synchronous nonisolated context
  damus/Shared/Utilities/EventCache.swift:434
      Capture of 'plan' with non-Sendable type 'PreloadPlan' in a '@Sendable' closure
  damus/Shared/Utilities/Router.swift:67
      Sending 'relay' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:71
      Sending 'damusState' risks causing data races; 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/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
  damus/Shared/Utilities/Router.swift:126
      Call to main actor-isolated initializer 'init(account:)' in a synchronous nonisolated context
  damus/Shared/Media/Images/ImageMetadata.swift:202
      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/block.c:31
      Implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'enum nostr_bech32_type'
  nostrdb/src/nostrdb.c:6858
      Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
  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:118
      Sending 'results' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/mdb.c:3821
      Implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int'
  damus/Shared/Utilities/Router.swift:128
      Call to main actor-isolated initializer 'init(damus_state:model:)' in a synchronous nonisolated context
  damus/ContentView.swift:505
      Sending 'self.damus_state.purple' risks causing data races; this is an error in the Swift 6 language mode
  damus/damusApp.swift:130
      Main actor-isolated property 'orientation' can not be referenced from a nonisolated context
  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/Wallet/Views/SendPaymentView.swift:198
      Sending 'self.model' 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/Shared/Utilities/Router.swift:120
      Call to main actor-isolated initializer 'init(colorScheme:dismiss:nav:)' in a synchronous nonisolated context
  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/Shared/Utilities/Router.swift:143
      Sending 'damusState' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/mdb.c:3582
      Implicit conversion loses integer precision: 'MDB_ID' (aka 'unsigned long') to 'unsigned int'
  damus/Features/Events/NoteContentView.swift:298
      Non-Sendable 'NoteArtifacts'-typed result can not be returned from actor-isolated instance method 'render_note_content(ndb:ev:profiles:keypair:)' to main actor-isolated context; this is an error in the Swift 6 language mode
  damus/Core/Nostr/RelayPool.swift:54
      Capture of 'self' with non-Sendable type 'RelayPool?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
  damus/Shared/Extensions/OffsetExtension.swift:53
      Static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  damus/damusApp.swift:76
      Conformance of 'AppDelegate' to protocol 'UNUserNotificationCenterDelegate' crosses into main actor-isolated code and can cause data races; 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/Shared/Utilities/EventCache.swift:379
      Sending 'state.ndb' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/src/protected_queue.h:127
      Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
  damus/Features/Settings/Views/ZapSettingsView.swift:31
      'onChange(of:perform:)' was deprecated in iOS 17.0: Use `onChange` with a two or zero parameter action closure instead.
  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:69
      Sending 'damusState' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:83
      Call to main actor-isolated initializer 'init(state:relays:)' in a synchronous nonisolated context
  nostrdb/src/nostrdb.c:6329
      Variable 'typ' may be uninitialized when used here
  nostrdb/Ndb.swift:664
      Reference to captured var 'subid' in concurrently-executing code; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:132
      Call to main actor-isolated initializer 'init(damus_state:friended_followers:followers:)' in a synchronous nonisolated context
  nostrdb/mdb.c:5280
      Implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'unsigned int'
  nostrdb/src/nostrdb.c:774
      Implicit conversion loses integer precision: 'long' to 'int'
  damus/ContentView.swift:914
      Call to main actor-isolated instance method 'registerForRemoteNotifications()' in a synchronous nonisolated context
  damus/Core/Nostr/RelayLog.swift:85
      Sending 'self' 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
  nostrdb/mdb.c:4906
      Format specifies type 'int' but the argument has type 'unsigned long'
  nostrdb/src/content_parser.c:515
      Implicit conversion loses integer precision: 'long' to 'uint32_t' (aka 'unsigned int')
  nostrdb/src/protected_queue.h:94
      Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
  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
  nostrdb/src/nostrdb.c:5530
      Implicit conversion loses integer precision: 'long' to 'int'
  damus/Features/Events/EventDetailView.swift:31
      Capture of non-Sendable type 'ID.Type' in an isolated closure
  damus/Features/Relays/Views/RelayView.swift:128
      No 'async' operations occur within 'await' expression
  damus/Core/Nostr/RelayLog.swift:86
      Sending 'self' 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/Media/Models/ImageCarousel.swift:70
      Main actor-isolated property 'currentPage' can not be referenced from a nonisolated context
  damus/Features/Zaps/Models/ZapsModel.swift:34
      Sending 'self' risks causing data races; 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
  nostrdb/ccan/ccan/crypto/sha256/sha256.h:115
      '@p' command has no word arguments, expected 1
  nostrdb/Ndb.swift:521
      Backward matching of the unlabeled trailing closure is deprecated; label the argument with 'with' to suppress this warning
  nostrdb/src/content_parser.c:492
      Implicit conversion loses integer precision: 'long' to 'uint32_t' (aka 'unsigned int')
  damus/Shared/Utilities/Router.swift:126
      Sending 'account' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Wallet/Views/ConnectWalletView.swift:27
      '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:405
      Sending 'plan.event' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:75
      Sending 'damusState' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/EventCache.swift:405
      Sending 'profiles' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/src/nostrdb.c:3195
      Implicit conversion loses integer precision: 'long' to 'int'
  damus/Shared/Media/CoreSVG.swift:18
      Var 'CGContextDrawSVGDocument' 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:1860
      Implicit conversion loses integer precision: 'MDB_ID' (aka 'unsigned long') to 'unsigned int'
  damus/Core/Nostr/RelayPool.swift:56
      Capture of 'self' with non-Sendable type 'RelayPool?' in a '@Sendable' closure
  nostrdb/src/nostrdb.c:5281
      Implicit conversion loses integer precision: 'unsigned long' to 'int'
  nostrdb/src/nostrdb.c:931
      Implicit conversion loses integer precision: 'unsigned long' to 'int'
  damus/Features/Purple/Models/DamusPurple.swift:30
      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/Media/Camera/Models/CameraService.swift:668
      Capture of 'self' with non-Sendable type 'CameraService' in a '@Sendable' closure
  damus/Features/Posting/Views/AutoSaveIndicatorView.swift:90
      Cannot access property 'timer' with a non-Sendable type 'Timer?' from nonisolated deinit; 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
  damus/Shared/Media/Camera/Models/CameraService.swift:341
      Capture of 'self' with non-Sendable type 'CameraService' in a '@Sendable' closure
  damus/Features/Purple/Views/DamusPurpleView.swift:22
      Conformance of 'DamusPurpleView' to protocol 'DamusPurpleStoreKitManagerDelegate' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode
  damus/Shared/Extensions/OffsetExtension.swift:75
      Main actor-isolated property 'connectedScenes' can not be referenced from a nonisolated context
  damus/Shared/Utilities/Router.swift:89
      Sending 'settings' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Media/AVPlayer+Additions.swift:17
      'copyCGImage(at:actualTime:)' was deprecated in iOS 18.0: Use generateCGImageAsynchronouslyForTime:completionHandler: instead
  damus/Shared/Utilities/Router.swift:61
      Sending 'damusState' risks causing data races; this is an error in the Swift 6 language mode
  damus/Core/Networking/NostrNetworkManager/UserRelayListManager.swift:302
      Capture of 'relay_id' with non-Sendable type 'RelayURL' in a '@Sendable' closure; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:140
      Sending 'followPack' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/mdb.c:7079
      Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
  nostrdb/src/nostrdb.c:5986
      Implicit conversion loses integer precision: 'long' to 'int'
  nostrdb/mdb.c:3579
      Implicit conversion loses integer precision: 'MDB_ID' (aka 'unsigned long') to 'unsigned 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:138
      Sending 'damusState' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/flatcc/builder.c:1143
      Code will never be executed
  nostrdb/src/nostrdb.c:3597
      Implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'int'
  nostrdb/Ndb.swift:782
      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:1149
      Call to main actor-isolated instance method 'impactOccurred()' in a synchronous nonisolated context