Skip to content

Removed unused code

e0a45c7
Select commit
Loading
Failed to load commit list.
Draft

Techdebt/xcodecloud tests #91

Removed unused code
e0a45c7
Select commit
Loading
Failed to load commit list.
Xcode Cloud / brainwallet | Every Push for UI Testing | brainwalletUITests - iOS required action Feb 16, 2026 in 7m 28s

3 errors, 97 warnings

Report Summary
Errors 3
Test Failures 0
Analysis Issues 0
Warnings 97

Details

3 Errors

Details

  Build input file cannot be found: '/Volumes/workspace/repository/brainwallet/PreLaunchResources/GoogleService-Info.plist'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it?
  Build input file cannot be found: '/Volumes/workspace/repository/brainwallet/PreLaunchResources/remote-config-defaults.plist'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it?
  Build input file cannot be found: '/Volumes/workspace/repository/brainwallet/PreLaunchResources/service-data.plist'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it?

97 Warnings

Details

  brainwallet/Extensions/Extensions.swift:152
      Forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
  The image set name "moonpay-sheet" is used by multiple image sets.
  brainwallet/PaymentProtocol.swift:189
      'SecKeyRawVerify' was deprecated in iOS 15.0: Use SecKeyVerifySignature
  brainwallet/Extensions/Extensions.swift:191
      'withUnsafeBytes' is deprecated: use `withUnsafeBytes(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
  brainwallet/Legacy_BW_BRClasses/BRAddressExtension.swift:20
      Initialization of 'UnsafeMutableRawPointer' results in a dangling pointer
  brainwallet/WalletManager+Auth.swift:78
      'withUnsafeBytes' is deprecated: use `withUnsafeBytes(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
  brainwallet/WalletCoordinator.swift:258
      'applicationIconBadgeNumber' was deprecated in iOS 17.0: Use -[UNUserNotificationCenter setBadgeCount:withCompletionHandler:] instead.
  brainwallet/Additions/String+Additions.swift:91
      'init(bytes:)' is deprecated: use `init(_:)` instead
  brainwallet/ModalTransitionDelegate.swift:87
      'windows' was deprecated in iOS 15.0: Use UIWindowScene.windows on a relevant window scene instead
  brainwallet/WalletManager.swift:310
      Initialization of 'UnsafePointer' results in a dangling pointer
  brainwallet/Legacy_BW_BRClasses/BRAddressExtension.swift:55
      'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BRAddress' to 'Hashable' by implementing 'hash(into:)' instead
  brainwallet/Legacy_BW_BRClasses/BRAddressExtension.swift:14
      Initialization of 'UnsafeMutableRawPointer' results in a dangling pointer
  brainwallet/Extensions/Extensions.swift:44
      'withUnsafeBytes' is deprecated: use `withUnsafeBytes(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
  Modules/core/BRPeerManager.c:749
      Unused variable 'thread'
  brainwallet/RemoteConfigHelper.swift:47
      Immutable value 'errorDict' was never used; consider replacing with '_' or removing it
  brainwallet/Legacy_BW_BRClasses/BRKeyExtension.swift:62
      'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
  brainwallet/PaymentProtocol.swift:163
      'SecTrustEvaluate' was deprecated in iOS 13.0: renamed to 'SecTrustEvaluateWithError(_:_:)'
  brainwallet/New Send Classes/Send Views/BentoSendViews/BentoSendInitialView.swift:309
      Result of call to 'isSendInformationValid()' is unused
  brainwallet/WalletManager.swift:523
      'SCNetworkReachabilityGetFlags' was deprecated in iOS 17.4
  brainwallet/Legacy_BW_BRClasses/BRReplicatedKVStore.swift:603
      Treating a forced downcast to 'BRReplicatedKVStoreError' as optional will never produce 'nil'
  brainwallet/Settings Classes/SettingsExpandingBlockchainView.swift:72
      'animation' was deprecated in iOS 15.0: Use withAnimation or animation(_:value:) instead.
  brainwallet/Extensions/Extensions.swift:156
      'withUnsafeBytes' is deprecated: use `withUnsafeBytes(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
  brainwallet/New Send Classes/Send Views/BentoSendViews/BentoSendConfirmView.swift:115
      Variable 'transactionError' was written to, but never read
  brainwallet/Extensions/Extensions.swift:275
      'withUnsafeBytes' is deprecated: use `withUnsafeBytes(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
  brainwallet/Extensions/Extensions.swift:227
      'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
  Modules/core/BRPeerManager.c:748
      Unused variable 'ts'
  brainwallet/ModalPresenter+Extension.swift:60
      'windows' was deprecated in iOS 15.0: Use UIWindowScene.windows on a relevant window scene instead
  brainwallet/Legacy_BW_BRClasses/BRReplicatedKVStore.swift:791
      Initialization of 'UnsafePointer' results in a dangling pointer
  brainwallet/Legacy_BW_BRClasses/BRAddressExtension.swift:36
      Initialization of 'UnsafeRawPointer' results in a dangling pointer
  brainwallet/Additions/UIButton+BRWAdditions.swift:9
      Immutable value 'imageSize' was never used; consider replacing with '_' or removing it
  brainwallet/Extensions/Extensions.swift:178
      'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
  brainwallet/Extensions/Extensions.swift:43
      'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
  brainwallet/WalletManager+Auth.swift:531
      'withUnsafeBytes' is deprecated: use `withUnsafeBytes(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
   command not found - See https://github.com/realm/SwiftLint#installation for installation instructions.
  Modules/core/BRPeerManager.c:751
      Unused variable 'addr'
  brainwallet/ModalTransitionDelegate.swift:21
      'windows' was deprecated in iOS 15.0: Use UIWindowScene.windows on a relevant window scene instead
  brainwallet/Extensions/Extensions.swift:245
      Initialization of 'UnsafePointer' results in a dangling pointer
  brainwallet/Extensions/Extensions.swift:237
      'withUnsafeBytes' is deprecated: use `withUnsafeBytes(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
  brainwallet/ReachabilityMonitor.swift:35
      'SCNetworkReachabilitySetCallback' was deprecated in iOS 17.4
  brainwallet/Legacy_BW_BRClasses/BRTxInputExtension.swift:6
      Initialization of 'UnsafeRawPointer' results in a dangling pointer
  brainwallet/Legacy_BW_BRClasses/BRMasterKeyExtension.swift:4
      Extension declares a conformance of imported type 'BRMasterPubKey' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'BRCore' introduce this conformance in the future
  Modules/core/BRPeerManager.c:751
      Unused variable 'addrList'
  brainwallet/WalletCoordinator.swift:175
      Weak variable 'myself' was never mutated; consider changing to 'let' constant
  brainwallet/UIView+FrameChangeBlocking.swift:15
      Forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
  brainwallet/Extensions/Extensions.swift:179
      'withUnsafeBytes' is deprecated: use `withUnsafeBytes(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
  brainwallet/Additions/UIButton+BRWAdditions.swift:12
      Initialization of immutable value 'titleSize' was never used; consider replacing with assignment to '_' or removing it
  brainwallet/WalletManager+Auth.swift:318
      Initialization of 'UnsafeMutableRawPointer' results in a dangling pointer
  brainwallet/WalletManager+Auth.swift:558
      'archivedData(withRootObject:)' was deprecated in iOS 12.0: Use +archivedDataWithRootObject:requiringSecureCoding:error: instead
  brainwallet/WalletManager.swift:522
      'SCNetworkReachabilityCreateWithAddress' was deprecated in iOS 17.4
  brainwallet/Extensions/BundleExtension.swift:5
      Class 'BundleEx' must restate inherited '@unchecked Sendable' conformance
  brainwallet/New Send Classes/Send Views/BentoSendViews/BentoSendModalView.swift:113
      Initialization of immutable value 'height' was never used; consider replacing with assignment to '_' or removing it
  brainwallet/PaymentProtocol.swift:155
      'init(bytes:)' is deprecated: use `init(_:)` instead
  brainwallet/New Send Classes/Send Views/BentoSendViews/BentoSendModalView.swift:112
      Initialization of immutable value 'width' was never used; consider replacing with assignment to '_' or removing it
  brainwallet/Legacy_BW_BRClasses/BRAddressExtension.swift:45
      Initialization of 'UnsafeRawPointer' results in a dangling pointer
  brainwallet/Extensions/Extensions.swift:168
      'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
  brainwallet/New Send Classes/Send Views/BentoSendViews/BentoSendInitialView.swift:382
      Result of call to 'isSendInformationValid()' is unused
  brainwallet/BWAPIClient Classes/BWAPIClient+FiatLTCRates.swift:89
      Function call causes an infinite recursion
  brainwallet/Extensions/Extensions.swift:218
      'withUnsafeBytes' is deprecated: use `withUnsafeBytes(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
  brainwallet/Extensions/Extensions.swift:58
      'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
  brainwallet/Legacy_BW_BRClasses/BRTxOutputExtension.swift:8
      Initialization of 'UnsafeRawPointer' results in a dangling pointer
  The image set "tutorial-receive-art" has an unassigned child.
  brainwallet/ReachabilityMonitor.swift:12
      'SCNetworkReachabilityCreateWithName' was deprecated in iOS 17.4
  brainwallet/WalletManager+Auth.swift:442
      'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
  brainwallet/Extensions/Extensions.swift:224
      'withUnsafeBytes' is deprecated: use `withUnsafeBytes(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
  brainwallet/Additions/String+Additions.swift:64
      'scanUpTo(_:into:)' was deprecated in iOS 13.0
  brainwallet/Extensions/Extensions.swift:276
      'withUnsafeBytes' is deprecated: use `withUnsafeBytes(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
  brainwallet/WalletManager+Auth.swift:552
      Treating a forced downcast to 'CFString' as optional will never produce 'nil'
  brainwallet/PaymentProtocol.swift:132
      Initialization of 'UnsafeMutablePointer' results in a dangling pointer
  brainwallet/Additions/String+Additions.swift:65
      'scanUpTo(_:into:)' was deprecated in iOS 13.0
  brainwallet/Extensions/Extensions.swift:159
      'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
  brainwallet/Legacy_BW_BRClasses/BRReplicatedKVStore.swift:742
      'withUnsafeBytes' is deprecated: use `withUnsafeBytes(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
  brainwallet/ReachabilityMonitor.swift:41
      'SCNetworkReachabilityGetFlags' was deprecated in iOS 17.4
  brainwallet/Legacy_BW_BRClasses/BRAddressExtension.swift:28
      Initialization of 'UnsafeMutableRawPointer' results in a dangling pointer
  brainwallet/Extensions/Extensions.swift:148
      Forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
  Modules/core/BRPeerManager.c:750
      Unused variable 'attr'
  brainwallet/ModalPresenter.swift:107
      'windows' was deprecated in iOS 15.0: Use UIWindowScene.windows on a relevant window scene instead
  brainwallet/Additions/UIButton+BRWAdditions.swift:11
      Immutable value 'spacing' was never used; consider replacing with '_' or removing it
  brainwallet/PaymentProtocol.swift:141
      Initialization of 'UnsafeMutablePointer' results in a dangling pointer
  Modules/core/BRPeerManager.c:698
      Unused function '_BRPeerManagerFindPeers'
  brainwallet/Extensions/Extensions.swift:169
      'withUnsafeBytes' is deprecated: use `withUnsafeBytes(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
  brainwallet/ReachabilityMonitor.swift:36
      'SCNetworkReachabilitySetDispatchQueue' was deprecated in iOS 17.4
  Modules/core/BRPeerManager.c:752
      Unused variable 'info'
  brainwallet/WalletManager+Auth.swift:533
      'unarchiveObject(with:)' was deprecated in iOS 12.0: Use +unarchivedObjectOfClass:fromData:error: instead
  Run script build phase 'Explode environment variables for Xcode Cloud testing' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase.
  brainwallet/BWAPIClient Classes/BWAPIClient.swift:180
      Sendability of function types in instance method 'urlSession(_:task:didReceive:completionHandler:)' does not match requirement in protocol 'URLSessionTaskDelegate'; this is an error in the Swift 6 language mode
  brainwallet/Extensions/Extensions.swift:386
      'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
  brainwallet/UIView+FrameChangeBlocking.swift:10
      Forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
  brainwallet/WalletManager+Auth.swift:324
      'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
  brainwallet/Extensions/Extensions.swift:200
      'withUnsafeBytes' is deprecated: use `withUnsafeBytes(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
  brainwallet/ModalTransitionDelegate.swift:44
      Switch covers known cases, but 'UIGestureRecognizer.State' may have additional unknown values, possibly added in future versions; this is an error in the Swift 6 language mode
  brainwallet/Extensions/Extensions.swift:277
      'withUnsafeBytes' is deprecated: use `withUnsafeBytes(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
  brainwallet/PaymentProtocol.swift:183
      'SecTrustCopyPublicKey' was deprecated in iOS 14.0: renamed to 'SecTrustCopyKey(_:)'
  brainwallet/Extensions/Extensions.swift:209
      'withUnsafeBytes' is deprecated: use `withUnsafeBytes(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
  brainwallet/PaymentProtocol.swift:187
      'SecKeyRawVerify' was deprecated in iOS 15.0: Use SecKeyVerifySignature
  brainwallet/Legacy_BW_BRClasses/BRAddressExtension.swift:52
      Initialization of 'UnsafeRawPointer' results in a dangling pointer
  brainwallet/Legacy_BW_BRClasses/BRKeyExtension.swift:47
      'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
  brainwallet/PaymentProtocol.swift:170
      'SecTrustCopyProperties' was deprecated in iOS 15.0: renamed to 'SecTrustEvaluateWithError(_:_:)'