Build Information
Successful build of SCrypto, reference master (11de70
), with Swift 5.10 for macOS (SPM) on 20 Nov 2024 13:57:23 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.57.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sgl0v/SCrypto.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/sgl0v/SCrypto
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 11de700 Fixed code coverage report.
Cloned https://github.com/sgl0v/SCrypto.git
Revision (git rev-parse @):
11de70020265d863bc469636094b8580bd70eb5e
SUCCESS checkout https://github.com/sgl0v/SCrypto.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 5.10
Building package at path: $PWD
https://github.com/sgl0v/SCrypto.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/4] Write sources
[1/4] Write swift-version-33747A42983211AE.txt
[3/6] Compiling SCrypto SCrypto.swift
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:269:48: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
return type(of: self).init(Data(bytes: UnsafePointer<UInt8>(messageDigest), count: messageDigest.count))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:269:69: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
return type(of: self).init(Data(bytes: UnsafePointer<UInt8>(messageDigest), count: messageDigest.count))
^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:269:69: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
return type(of: self).init(Data(bytes: UnsafePointer<UInt8>(messageDigest), count: messageDigest.count))
^
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:288:28: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
return Data(bytes: UnsafePointer<UInt8>(messageDigest), count: messageDigest.count).hexString()
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:288:49: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
return Data(bytes: UnsafePointer<UInt8>(messageDigest), count: messageDigest.count).hexString()
^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:288:49: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
return Data(bytes: UnsafePointer<UInt8>(messageDigest), count: messageDigest.count).hexString()
^
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:329:32: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
let data = Data(bytes: UnsafePointer<UInt8>(bytes), count: bytes.count)
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:329:53: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
let data = Data(bytes: UnsafePointer<UInt8>(bytes), count: bytes.count)
^~~~~
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:329:53: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
let data = Data(bytes: UnsafePointer<UInt8>(bytes), count: bytes.count)
^
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:433:28: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
return Data(bytes: UnsafePointer<UInt8>(result), count: result.count)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:433:49: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
return Data(bytes: UnsafePointer<UInt8>(result), count: result.count)
^~~~~~
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:433:49: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
return Data(bytes: UnsafePointer<UInt8>(result), count: result.count)
^
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:589:45: warning: initialization of 'UnsafeRawPointer' results in a dangling pointer
let ivData = self.iv == nil ? nil : UnsafeRawPointer(self.iv!)
^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:589:69: note: implicit argument conversion from 'Cipher.IV' (aka 'Array<UInt8>') to 'UnsafeRawPointer' produces a pointer valid only for the duration of the call to 'init(_:)'
let ivData = self.iv == nil ? nil : UnsafeRawPointer(self.iv!)
~~~~~~~^
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:589:69: note: use the 'withUnsafeBytes' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
let ivData = self.iv == nil ? nil : UnsafeRawPointer(self.iv!)
^
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:628:28: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
return Data(bytes: UnsafePointer<UInt8>(encryptedBytes), count: encryptedBytes.count)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:628:49: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
return Data(bytes: UnsafePointer<UInt8>(encryptedBytes), count: encryptedBytes.count)
^~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:628:49: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
return Data(bytes: UnsafePointer<UInt8>(encryptedBytes), count: encryptedBytes.count)
^
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:646:28: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
return Data(bytes: UnsafePointer<UInt8>(decryptedBytes), count: decryptedBytes.count)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:646:49: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
return Data(bytes: UnsafePointer<UInt8>(decryptedBytes), count: decryptedBytes.count)
^~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:646:49: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
return Data(bytes: UnsafePointer<UInt8>(decryptedBytes), count: decryptedBytes.count)
^
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:744:28: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
return Data(bytes: UnsafePointer<UInt8>(key), count: key.count)
^~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:744:49: note: implicit argument conversion from 'PBKDF.DerivedKey' (aka 'Array<UInt8>') to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
return Data(bytes: UnsafePointer<UInt8>(key), count: key.count)
^~~
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:744:49: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
return Data(bytes: UnsafePointer<UInt8>(key), count: key.count)
^
/Users/admin/builder/spi-builder-workspace/Source/SCrypto.swift:16:35: warning: forming 'UnsafeMutableRawPointer' to a variable of type '[T]'; this is likely incorrect because 'T' may contain an object reference.
(self as NSData).getBytes(&bytes, length:self.count * MemoryLayout<T>.size)
^
[4/6] Emitting module SCrypto
[4/6] Write Objects.LinkFileList
[5/6] Linking libSCrypto.dylib
Build complete! (5.99s)
Build complete.
Done.