The Swift Package Index logo.Swift Package Index

Build Information

Successful build of swift-capstone, reference v7.0.0 (9f892f), with Swift 6.3 for macOS (SPM) on 24 Oct 2026 09:58:50 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.5.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/MxIris-Reverse-Engineering/swift-capstone.git
Reference: v7.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/MxIris-Reverse-Engineering/swift-capstone
 * tag               v7.0.0     -> FETCH_HEAD
HEAD is now at 9f892f0 build: require capstone 6.0.101, drop the workaround it makes unnecessary
Cloned https://github.com/MxIris-Reverse-Engineering/swift-capstone.git
Revision (git rev-parse @):
9f892f09452e92f3d5943a7a656299d24ec19c63
SUCCESS checkout https://github.com/MxIris-Reverse-Engineering/swift-capstone.git at v7.0.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/MxIris-Reverse-Engineering/swift-capstone.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.5.0.app xcrun swift build --arch arm64
[1/1] Compiling plugin CapstoneEnumsGeneratePlugin
Building for debugging...
[1/129] Compiling ARMDisassembler.c
[1/129] Compiling ARMBaseInfo.c
[3/129] Write sources
[5/129] Write capstone-enums-generator-entitlement.plist
[6/129] Write capstone-enums-generator-tool-entitlement.plist
[7/129] Write sources
[11/129] Compiling Cclang clang.c
[13/129] Write swift-version-69A768CDF2A0BEE1.txt
[14/129] Compiling XtensaModule.c
[15/132] Compiling Ccapstone MCRegisterInfo.c
[16/135] Compiling Ccapstone Mapping.c
[17/135] Compiling XtensaMapping.c
[18/135] Compiling AArch64BaseInfo.c
[19/135] Compiling XtensaInstPrinter.c
[20/135] Compiling XtensaDisassembler.c
[21/135] Compiling XCoreModule.c
[22/135] Compiling XCoreMapping.c
[23/135] Compiling XCoreInstPrinter.c
[24/135] Compiling Ccapstone SStream.c
[25/135] Compiling XCoreDisassembler.c
[26/135] Compiling AArch64InstPrinter.c
[27/135] Compiling X86Mapping.c
[28/135] Compiling X86Module.c
[29/135] Compiling X86InstPrinterCommon.c
[30/135] Compiling X86IntelInstPrinter.c
[31/135] Compiling AArch64DisassemblerExtension.c
[32/135] Compiling X86DisassemblerDecoder.c
[33/135] Compiling X86Disassembler.c
[34/135] Compiling X86ATTInstPrinter.c
[34/135] Compiling WASMModule.c
[36/135] Compiling WASMMapping.c
[37/135] Compiling WASMInstPrinter.c
[38/135] Compiling WASMDisassembler.c
[39/135] Compiling TriCoreMapping.c
[40/135] Compiling TriCoreModule.c
[41/135] Compiling Ccapstone cs.c
[42/135] Compiling TriCoreInstPrinter.c
[43/135] Compiling TriCoreDisassembler.c
[44/135] Compiling TMS320C64xModule.c
[45/135] Compiling Ccapstone utils.c
[46/135] Compiling TMS320C64xMapping.c
[47/135] Compiling TMS320C64xInstPrinter.c
[48/135] Compiling TMS320C64xDisassembler.c
[49/135] Compiling SystemZModule.c
[50/135] Compiling SystemZMapping.c
[50/135] Compiling SystemZMCTargetDesc.c
[52/135] Compiling SystemZInstPrinter.c
[53/135] Compiling SystemZDisassemblerExtension.c
[54/135] Compiling SystemZDisassembler.c
[55/135] Compiling SparcModule.c
[56/135] Compiling SparcMapping.c
[57/135] Compiling SparcInstPrinter.c
[58/135] Compiling SparcDisassemblerExtension.c
[59/135] Compiling SparcDisassembler.c
[60/135] Compiling SHModule.c
[61/135] Compiling SHInstPrinter.c
[62/135] Compiling SHDisassembler.c
[63/135] Compiling RISCVModule.c
[64/135] Compiling RISCVInstPrinter.c
[65/135] Compiling RISCVMapping.c
[66/135] Compiling RISCVBaseInfo.c
[67/135] Compiling RISCVDisassembler.c
[67/135] Compiling RISCVDisassemblerExtension.c
[69/135] Compiling PPCModule.c
[70/135] Compiling PPCInstPrinter.c
[71/135] Compiling PPCDisassembler.c
[72/135] Compiling MipsModule.c
[73/135] Compiling MipsInstPrinter.c
[74/135] Compiling MipsMapping.c
[75/135] Compiling MipsDisassembler.c
[76/135] Compiling PPCMapping.c
[77/135] Compiling MOS65XXModule.c
[78/135] Compiling MOS65XXDisassembler.c
[79/135] Compiling M68KModule.c
[80/135] Compiling M68KInstPrinter.c
[81/135] Compiling M68KDisassembler.c
[82/135] Compiling M680XModule.c
[83/135] Compiling M680XInstPrinter.c
[84/135] Compiling LoongArchModule.c
[85/135] Compiling LoongArchMapping.c
[86/135] Compiling LoongArchInstPrinter.c
[87/135] Compiling HPPAModule.c
[88/135] Compiling LoongArchDisassembler.c
[89/135] Compiling LoongArchDisassemblerExtension.c
[90/135] Compiling M680XDisassembler.c
[91/135] Compiling HPPAMapping.c
[92/135] Compiling HPPAInstPrinter.c
[93/135] Compiling HPPADisassembler.c
[94/135] Compiling EVMMapping.c
[95/135] Compiling EVMModule.c
[95/135] Compiling EVMInstPrinter.c
[97/135] Compiling EVMDisassembler.c
[98/135] Compiling BPFModule.c
[99/135] Compiling BPFInstPrinter.c
[100/135] Compiling BPFMapping.c
[101/135] Compiling BPFDisassembler.c
[102/135] Compiling AlphaInstPrinter.c
[102/135] Compiling AlphaMapping.c
[102/135] Compiling AlphaModule.c
[105/135] Compiling AlphaDisassembler.c
[106/135] Compiling ARMMapping.c
[107/135] Compiling AArch64Disassembler.c
[108/135] Compiling ARMInstPrinter.c
[109/135] Compiling ARCMapping.c
[110/135] Compiling ARCModule.c
[111/135] Compiling ARMDisassemblerExtension.c
[112/135] Compiling ARCInstPrinter.c
[113/135] Write sources
[116/135] Compiling ARCDisassembler.c
[117/135] Compiling ARMModule.c
[118/135] Compiling Ccapstone MCInstrDesc.c
[119/135] Compiling AArch64Module.c
[120/135] Compiling Ccapstone MCInstPrinter.c
[121/135] Compiling Ccapstone MCInst.c
[122/135] Compiling AArch64Mapping.c
[124/170] Compiling CclangWrapper library_wrapper_Clang_C.swift
[125/170] Emitting module CclangWrapper
[126/170] Compiling CclangWrapper library_wrapper.swift
[128/170] Emitting module CclangWrapper
[129/170] Compiling CclangWrapper library_wrapper_Clang_C.swift
[130/204] Compiling Clang FunctionDecl.swift
[131/204] Compiling Clang Index.swift
[132/204] Compiling Clang Language.swift
[133/204] Compiling Clang NameRefOptions.swift
[134/204] Compiling Clang TranslationUnit.swift
[135/204] Compiling Clang Token.swift
[136/205] Compiling Clang Cursors.swift
[137/205] Compiling Clang Diagnostic.swift
[140/205] Compiling Clang Token.swift
[141/205] Compiling Clang TranslationUnit.swift
[144/206] Compiling Clang Utilities.swift
[146/206] Compiling Capstone Architecture+Generated.swift
[147/206] Compiling Capstone Architecture.swift
[148/206] Compiling Capstone ArmEnums.swift
[149/206] Compiling Capstone BpfEnums.swift
[150/209] Compiling Capstone TricoreEnums.swift
/Users/admin/builder/spi-builder-workspace/Sources/Capstone/Utils.swift:53:5: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
51 | /// imports as a tuple, never reading past the array's end.
52 | internal func string<Characters>(fromCharacters characters: Characters) -> String {
53 |     withUnsafeBytes(of: characters) { bytes in
   |     |                               `- note: argument #1 in call to global function 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> String'
   |     `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
54 |         let length = unsafe bytes.firstIndex(of: 0) ?? bytes.count
55 |         return unsafe String(decoding: bytes[..<length], as: UTF8.self)
/Users/admin/builder/spi-builder-workspace/Sources/Capstone/Utils.swift:62:5: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
60 | /// a tuple, never reading past the array's end.
61 | internal func elements<Element, Elements>(of array: Elements, count: Int, as _: Element.Type) -> [Element] {
62 |     withUnsafeBytes(of: array) { bytes in
   |     |                          `- note: argument #1 in call to global function 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> [Element]'
   |     `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
63 |         let capacity = bytes.count / MemoryLayout<Element>.stride
64 |         return (0 ..< min(max(count, 0), capacity)).map { index in
[#StrictMemorySafety]: <https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety>
[151/209] Compiling Capstone Utils.swift
/Users/admin/builder/spi-builder-workspace/Sources/Capstone/Utils.swift:53:5: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
51 | /// imports as a tuple, never reading past the array's end.
52 | internal func string<Characters>(fromCharacters characters: Characters) -> String {
53 |     withUnsafeBytes(of: characters) { bytes in
   |     |                               `- note: argument #1 in call to global function 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> String'
   |     `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
54 |         let length = unsafe bytes.firstIndex(of: 0) ?? bytes.count
55 |         return unsafe String(decoding: bytes[..<length], as: UTF8.self)
/Users/admin/builder/spi-builder-workspace/Sources/Capstone/Utils.swift:62:5: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
60 | /// a tuple, never reading past the array's end.
61 | internal func elements<Element, Elements>(of array: Elements, count: Int, as _: Element.Type) -> [Element] {
62 |     withUnsafeBytes(of: array) { bytes in
   |     |                          `- note: argument #1 in call to global function 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> [Element]'
   |     `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
63 |         let capacity = bytes.count / MemoryLayout<Element>.stride
64 |         return (0 ..< min(max(count, 0), capacity)).map { index in
[#StrictMemorySafety]: <https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety>
[152/209] Compiling Capstone WasmEnums.swift
/Users/admin/builder/spi-builder-workspace/Sources/Capstone/Utils.swift:53:5: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
51 | /// imports as a tuple, never reading past the array's end.
52 | internal func string<Characters>(fromCharacters characters: Characters) -> String {
53 |     withUnsafeBytes(of: characters) { bytes in
   |     |                               `- note: argument #1 in call to global function 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> String'
   |     `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
54 |         let length = unsafe bytes.firstIndex(of: 0) ?? bytes.count
55 |         return unsafe String(decoding: bytes[..<length], as: UTF8.self)
/Users/admin/builder/spi-builder-workspace/Sources/Capstone/Utils.swift:62:5: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
60 | /// a tuple, never reading past the array's end.
61 | internal func elements<Element, Elements>(of array: Elements, count: Int, as _: Element.Type) -> [Element] {
62 |     withUnsafeBytes(of: array) { bytes in
   |     |                          `- note: argument #1 in call to global function 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> [Element]'
   |     `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
63 |         let capacity = bytes.count / MemoryLayout<Element>.stride
64 |         return (0 ..< min(max(count, 0), capacity)).map { index in
[#StrictMemorySafety]: <https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety>
[153/209] Compiling Capstone Error.swift
[154/209] Compiling Capstone EvmEnums.swift
[155/209] Compiling Capstone HppaEnums.swift
[156/209] Compiling Capstone InstructionView.swift
[157/209] Compiling Capstone Mos65xxEnums.swift
[158/209] Compiling Capstone PpcEnums.swift
[159/209] Compiling Capstone RiscvEnums.swift
[160/209] Compiling Capstone ShEnums.swift
[161/209] Compiling Clang Availability.swift
/Users/admin/builder/spi-builder-workspace/Sources/Capstone/Disassembler.swift:127:16: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
125 |         }
126 |
127 |         return try code.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) throws(Failure) -> Int in
    |                |        |               `- note: argument #0 in call to instance method 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) throws(Failure) -> Int'
    |                |        `- note: reference to instance method 'withUnsafeBytes' involves unsafe type 'UnsafeRawBufferPointer'
    |                `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
128 |             guard let start = buffer.baseAddress, unsafe !buffer.isEmpty else {
129 |                 return 0
/Users/admin/builder/spi-builder-workspace/Sources/Capstone/Disassembler.swift:177:16: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
175 |         // Array.span needs macOS 26; a slice's span is available everywhere.
176 |         let slice = code[...]
177 |         return try forEachInstruction(in: slice.span.bytes, address: address, limit: limit, body)
    |                |                                     `- note: reference to unsafe property 'bytes'
    |                `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
178 |     }
179 |
/Users/admin/builder/spi-builder-workspace/Sources/Capstone/Disassembler.swift:209:16: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
207 |     public func decode(_ code: [UInt8], address: UInt64, limit: Int? = nil) -> [Architecture.Instruction] {
208 |         let slice = code[...]
209 |         return decode(slice.span.bytes, address: address, limit: limit)
    |                |                 `- note: reference to unsafe property 'bytes'
    |                `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
210 |     }
211 | }
/Users/admin/builder/spi-builder-workspace/Sources/Capstone/Disassembler.swift:273:30: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
271 |                 user_data: Unmanaged.passUnretained(state).toOpaque()
272 |             )
273 |             let setupError = withUnsafeMutablePointer(to: &setup) { pointer in
    |                              |                            ||      `- note: argument #1 in call to global function 'withUnsafeMutablePointer' has unsafe type '(UnsafeMutablePointer<cs_opt_skipdata>) -> cs_err'
    |                              |                            |`- note: reference to var 'setup' involves unsafe type 'cs_opt_skipdata'
    |                              |                            `- note: argument 'to' in call to global function 'withUnsafeMutablePointer' has unsafe type 'inout cs_opt_skipdata'
    |                              |- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
    |                              `- note: reference to unsafe type 'cs_opt_skipdata'
274 |                 cs_option(handle, CS_OPT_SKIPDATA_SETUP, UInt(bitPattern: pointer))
275 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Capstone/Disassembler.swift:282:25: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
280 |         for (identifier, mnemonic) in mnemonics {
281 |             // capstone copies the string into its own list.
282 |             let error = mnemonic.withCString { mnemonicPointer in
    |                         |        |           `- note: argument #0 in call to instance method 'withCString' has unsafe type '(UnsafePointer<Int8>) throws -> cs_err'
    |                         |        `- note: reference to instance method 'withCString' involves unsafe type 'UnsafePointer<Int8>'
    |                         `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
283 |                 var customization = unsafe cs_opt_mnem(id: identifier.rawValue, mnemonic: mnemonicPointer)
284 |                 return withUnsafeMutablePointer(to: &customization) { pointer in
/Users/admin/builder/spi-builder-workspace/Sources/Capstone/Disassembler.swift:284:24: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
282 |             let error = mnemonic.withCString { mnemonicPointer in
283 |                 var customization = unsafe cs_opt_mnem(id: identifier.rawValue, mnemonic: mnemonicPointer)
284 |                 return withUnsafeMutablePointer(to: &customization) { pointer in
    |                        |                            ||              `- note: argument #1 in call to global function 'withUnsafeMutablePointer' has unsafe type '(UnsafeMutablePointer<cs_opt_mnem>) -> cs_err'
    |                        |                            |`- note: reference to var 'customization' involves unsafe type 'cs_opt_mnem'
    |                        |                            `- note: argument 'to' in call to global function 'withUnsafeMutablePointer' has unsafe type 'inout cs_opt_mnem'
    |                        |- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
    |                        `- note: reference to unsafe type 'cs_opt_mnem'
285 |                     cs_option(handle, CS_OPT_MNEMONIC, UInt(bitPattern: pointer))
286 |                 }
[#StrictMemorySafety]: <https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety>
[162/209] Compiling Clang CType.swift
/Users/admin/builder/spi-builder-workspace/Sources/Capstone/Disassembler.swift:127:16: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
125 |         }
126 |
127 |         return try code.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) throws(Failure) -> Int in
    |                |        |               `- note: argument #0 in call to instance method 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) throws(Failure) -> Int'
    |                |        `- note: reference to instance method 'withUnsafeBytes' involves unsafe type 'UnsafeRawBufferPointer'
    |                `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
128 |             guard let start = buffer.baseAddress, unsafe !buffer.isEmpty else {
129 |                 return 0
/Users/admin/builder/spi-builder-workspace/Sources/Capstone/Disassembler.swift:177:16: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
175 |         // Array.span needs macOS 26; a slice's span is available everywhere.
176 |         let slice = code[...]
177 |         return try forEachInstruction(in: slice.span.bytes, address: address, limit: limit, body)
    |                |                                     `- note: reference to unsafe property 'bytes'
    |                `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
178 |     }
179 |
/Users/admin/builder/spi-builder-workspace/Sources/Capstone/Disassembler.swift:209:16: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
207 |     public func decode(_ code: [UInt8], address: UInt64, limit: Int? = nil) -> [Architecture.Instruction] {
208 |         let slice = code[...]
209 |         return decode(slice.span.bytes, address: address, limit: limit)
    |                |                 `- note: reference to unsafe property 'bytes'
    |                `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
210 |     }
211 | }
/Users/admin/builder/spi-builder-workspace/Sources/Capstone/Disassembler.swift:273:30: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
271 |                 user_data: Unmanaged.passUnretained(state).toOpaque()
272 |             )
273 |             let setupError = withUnsafeMutablePointer(to: &setup) { pointer in
    |                              |                            ||      `- note: argument #1 in call to global function 'withUnsafeMutablePointer' has unsafe type '(UnsafeMutablePointer<cs_opt_skipdata>) -> cs_err'
    |                              |                            |`- note: reference to var 'setup' involves unsafe type 'cs_opt_skipdata'
    |                              |                            `- note: argument 'to' in call to global function 'withUnsafeMutablePointer' has unsafe type 'inout cs_opt_skipdata'
    |                              |- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
    |                              `- note: reference to unsafe type 'cs_opt_skipdata'
274 |                 cs_option(handle, CS_OPT_SKIPDATA_SETUP, UInt(bitPattern: pointer))
275 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Capstone/Disassembler.swift:282:25: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
280 |         for (identifier, mnemonic) in mnemonics {
281 |             // capstone copies the string into its own list.
282 |             let error = mnemonic.withCString { mnemonicPointer in
    |                         |        |           `- note: argument #0 in call to instance method 'withCString' has unsafe type '(UnsafePointer<Int8>) throws -> cs_err'
    |                         |        `- note: reference to instance method 'withCString' involves unsafe type 'UnsafePointer<Int8>'
    |                         `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
283 |                 var customization = unsafe cs_opt_mnem(id: identifier.rawValue, mnemonic: mnemonicPointer)
284 |                 return withUnsafeMutablePointer(to: &customization) { pointer in
/Users/admin/builder/spi-builder-workspace/Sources/Capstone/Disassembler.swift:284:24: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
282 |             let error = mnemonic.withCString { mnemonicPointer in
283 |                 var customization = unsafe cs_opt_mnem(id: identifier.rawValue, mnemonic: mnemonicPointer)
284 |                 return withUnsafeMutablePointer(to: &customization) { pointer in
    |                        |                            ||              `- note: argument #1 in call to global function 'withUnsafeMutablePointer' has unsafe type '(UnsafeMutablePointer<cs_opt_mnem>) -> cs_err'
    |                        |                            |`- note: reference to var 'customization' involves unsafe type 'cs_opt_mnem'
    |                        |                            `- note: argument 'to' in call to global function 'withUnsafeMutablePointer' has unsafe type 'inout cs_opt_mnem'
    |                        |- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
    |                        `- note: reference to unsafe type 'cs_opt_mnem'
285 |                     cs_option(handle, CS_OPT_MNEMONIC, UInt(bitPattern: pointer))
286 |                 }
[#StrictMemorySafety]: <https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety>
[163/209] Compiling Clang CTypes.swift
/Users/admin/builder/spi-builder-workspace/Sources/Capstone/Disassembler.swift:127:16: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
125 |         }
126 |
127 |         return try code.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) throws(Failure) -> Int in
    |                |        |               `- note: argument #0 in call to instance method 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) throws(Failure) -> Int'
    |                |        `- note: reference to instance method 'withUnsafeBytes' involves unsafe type 'UnsafeRawBufferPointer'
    |                `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
128 |             guard let start = buffer.baseAddress, unsafe !buffer.isEmpty else {
129 |                 return 0
/Users/admin/builder/spi-builder-workspace/Sources/Capstone/Disassembler.swift:177:16: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
175 |         // Array.span needs macOS 26; a slice's span is available everywhere.
176 |         let slice = code[...]
177 |         return try forEachInstruction(in: slice.span.bytes, address: address, limit: limit, body)
    |                |                                     `- note: reference to unsafe property 'bytes'
    |                `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
178 |     }
179 |
/Users/admin/builder/spi-builder-workspace/Sources/Capstone/Disassembler.swift:209:16: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
207 |     public func decode(_ code: [UInt8], address: UInt64, limit: Int? = nil) -> [Architecture.Instruction] {
208 |         let slice = code[...]
209 |         return decode(slice.span.bytes, address: address, limit: limit)
    |                |                 `- note: reference to unsafe property 'bytes'
    |                `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
210 |     }
211 | }
/Users/admin/builder/spi-builder-workspace/Sources/Capstone/Disassembler.swift:273:30: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
271 |                 user_data: Unmanaged.passUnretained(state).toOpaque()
272 |             )
273 |             let setupError = withUnsafeMutablePointer(to: &setup) { pointer in
    |                              |                            ||      `- note: argument #1 in call to global function 'withUnsafeMutablePointer' has unsafe type '(UnsafeMutablePointer<cs_opt_skipdata>) -> cs_err'
    |                              |                            |`- note: reference to var 'setup' involves unsafe type 'cs_opt_skipdata'
    |                              |                            `- note: argument 'to' in call to global function 'withUnsafeMutablePointer' has unsafe type 'inout cs_opt_skipdata'
    |                              |- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
    |                              `- note: reference to unsafe type 'cs_opt_skipdata'
274 |                 cs_option(handle, CS_OPT_SKIPDATA_SETUP, UInt(bitPattern: pointer))
275 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Capstone/Disassembler.swift:282:25: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
280 |         for (identifier, mnemonic) in mnemonics {
281 |             // capstone copies the string into its own list.
282 |             let error = mnemonic.withCString { mnemonicPointer in
    |                         |        |           `- note: argument #0 in call to instance method 'withCString' has unsafe type '(UnsafePointer<Int8>) throws -> cs_err'
    |                         |        `- note: reference to instance method 'withCString' involves unsafe type 'UnsafePointer<Int8>'
    |                         `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
283 |                 var customization = unsafe cs_opt_mnem(id: identifier.rawValue, mnemonic: mnemonicPointer)
284 |                 return withUnsafeMutablePointer(to: &customization) { pointer in
/Users/admin/builder/spi-builder-workspace/Sources/Capstone/Disassembler.swift:284:24: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
282 |             let error = mnemonic.withCString { mnemonicPointer in
283 |                 var customization = unsafe cs_opt_mnem(id: identifier.rawValue, mnemonic: mnemonicPointer)
284 |                 return withUnsafeMutablePointer(to: &customization) { pointer in
    |                        |                            ||              `- note: argument #1 in call to global function 'withUnsafeMutablePointer' has unsafe type '(UnsafeMutablePointer<cs_opt_mnem>) -> cs_err'
    |                        |                            |`- note: reference to var 'customization' involves unsafe type 'cs_opt_mnem'
    |                        |                            `- note: argument 'to' in call to global function 'withUnsafeMutablePointer' has unsafe type 'inout cs_opt_mnem'
    |                        |- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
    |                        `- note: reference to unsafe type 'cs_opt_mnem'
285 |                     cs_option(handle, CS_OPT_MNEMONIC, UInt(bitPattern: pointer))
286 |                 }
[#StrictMemorySafety]: <https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety>
[164/209] Compiling Clang ClangError.swift
/Users/admin/builder/spi-builder-workspace/Sources/Capstone/Disassembler.swift:127:16: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
125 |         }
126 |
127 |         return try code.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) throws(Failure) -> Int in
    |                |        |               `- note: argument #0 in call to instance method 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) throws(Failure) -> Int'
    |                |        `- note: reference to instance method 'withUnsafeBytes' involves unsafe type 'UnsafeRawBufferPointer'
    |                `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
128 |             guard let start = buffer.baseAddress, unsafe !buffer.isEmpty else {
129 |                 return 0
/Users/admin/builder/spi-builder-workspace/Sources/Capstone/Disassembler.swift:177:16: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
175 |         // Array.span needs macOS 26; a slice's span is available everywhere.
176 |         let slice = code[...]
177 |         return try forEachInstruction(in: slice.span.bytes, address: address, limit: limit, body)
    |                |                                     `- note: reference to unsafe property 'bytes'
    |                `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
178 |     }
179 |
/Users/admin/builder/spi-builder-workspace/Sources/Capstone/Disassembler.swift:209:16: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
207 |     public func decode(_ code: [UInt8], address: UInt64, limit: Int? = nil) -> [Architecture.Instruction] {
208 |         let slice = code[...]
209 |         return decode(slice.span.bytes, address: address, limit: limit)
    |                |                 `- note: reference to unsafe property 'bytes'
    |                `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
210 |     }
211 | }
/Users/admin/builder/spi-builder-workspace/Sources/Capstone/Disassembler.swift:273:30: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
271 |                 user_data: Unmanaged.passUnretained(state).toOpaque()
272 |             )
273 |             let setupError = withUnsafeMutablePointer(to: &setup) { pointer in
    |                              |                            ||      `- note: argument #1 in call to global function 'withUnsafeMutablePointer' has unsafe type '(UnsafeMutablePointer<cs_opt_skipdata>) -> cs_err'
    |                              |                            |`- note: reference to var 'setup' involves unsafe type 'cs_opt_skipdata'
    |                              |                            `- note: argument 'to' in call to global function 'withUnsafeMutablePointer' has unsafe type 'inout cs_opt_skipdata'
    |                              |- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
    |                              `- note: reference to unsafe type 'cs_opt_skipdata'
274 |                 cs_option(handle, CS_OPT_SKIPDATA_SETUP, UInt(bitPattern: pointer))
275 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Capstone/Disassembler.swift:282:25: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
280 |         for (identifier, mnemonic) in mnemonics {
281 |             // capstone copies the string into its own list.
282 |             let error = mnemonic.withCString { mnemonicPointer in
    |                         |        |           `- note: argument #0 in call to instance method 'withCString' has unsafe type '(UnsafePointer<Int8>) throws -> cs_err'
    |                         |        `- note: reference to instance method 'withCString' involves unsafe type 'UnsafePointer<Int8>'
    |                         `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
283 |                 var customization = unsafe cs_opt_mnem(id: identifier.rawValue, mnemonic: mnemonicPointer)
284 |                 return withUnsafeMutablePointer(to: &customization) { pointer in
/Users/admin/builder/spi-builder-workspace/Sources/Capstone/Disassembler.swift:284:24: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
282 |             let error = mnemonic.withCString { mnemonicPointer in
283 |                 var customization = unsafe cs_opt_mnem(id: identifier.rawValue, mnemonic: mnemonicPointer)
284 |                 return withUnsafeMutablePointer(to: &customization) { pointer in
    |                        |                            ||              `- note: argument #1 in call to global function 'withUnsafeMutablePointer' has unsafe type '(UnsafeMutablePointer<cs_opt_mnem>) -> cs_err'
    |                        |                            |`- note: reference to var 'customization' involves unsafe type 'cs_opt_mnem'
    |                        |                            `- note: argument 'to' in call to global function 'withUnsafeMutablePointer' has unsafe type 'inout cs_opt_mnem'
    |                        |- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
    |                        `- note: reference to unsafe type 'cs_opt_mnem'
285 |                     cs_option(handle, CS_OPT_MNEMONIC, UInt(bitPattern: pointer))
286 |                 }
[#StrictMemorySafety]: <https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety>
[165/209] Compiling Capstone X86Enums.swift
[166/209] Compiling Capstone XcoreEnums.swift
[167/209] Compiling Capstone XtensaEnums.swift
[172/209] Compiling Clang Comment.swift
[173/209] Compiling Clang Cursor.swift
[174/209] Compiling Clang Cursors.swift
[175/209] Compiling Clang Diagnostic.swift
[176/209] Emitting module Clang
[188/213] Emitting module Capstone
[189/213] Compiling Capstone AArch64Operand.swift
[190/213] Compiling Capstone Access.swift
[191/213] Compiling Capstone AlphaEnums.swift
[192/213] Compiling Capstone ArcEnums.swift
/Users/admin/builder/spi-builder-workspace/Sources/Capstone/AArch64+InstructionView.swift:20:16: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
 18 |         precondition(index >= 0 && index < operandCount, "operand index \(index) is outside 0 ..< \(operandCount)")
 19 |         let operands = unsafe details!.pointee.aarch64.operands
 20 |         return withUnsafeBytes(of: operands) { bytes in
    |                |                             `- note: argument #1 in call to global function 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> AArch64.Operand'
    |                `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
 21 |             AArch64.Operand(capstoneOperand: unsafe bytes.load(
 22 |                 fromByteOffset: index * MemoryLayout<cs_aarch64_op>.stride,
[#StrictMemorySafety]: <https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety>
/Users/admin/builder/spi-builder-workspace/Sources/Capstone/AArch64+InstructionView.swift:20:16: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
 18 |         precondition(index >= 0 && index < operandCount, "operand index \(index) is outside 0 ..< \(operandCount)")
 19 |         let operands = unsafe details!.pointee.aarch64.operands
 20 |         return withUnsafeBytes(of: operands) { bytes in
    |                |                             `- note: argument #1 in call to global function 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> AArch64.Operand'
    |                `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
 21 |             AArch64.Operand(capstoneOperand: unsafe bytes.load(
 22 |                 fromByteOffset: index * MemoryLayout<cs_aarch64_op>.stride,
[#StrictMemorySafety]: <https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety>
/Users/admin/builder/spi-builder-workspace/Sources/Capstone/AArch64+InstructionView.swift:20:16: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
 18 |         precondition(index >= 0 && index < operandCount, "operand index \(index) is outside 0 ..< \(operandCount)")
 19 |         let operands = unsafe details!.pointee.aarch64.operands
 20 |         return withUnsafeBytes(of: operands) { bytes in
    |                |                             `- note: argument #1 in call to global function 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> AArch64.Operand'
    |                `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
 21 |             AArch64.Operand(capstoneOperand: unsafe bytes.load(
 22 |                 fromByteOffset: index * MemoryLayout<cs_aarch64_op>.stride,
[#StrictMemorySafety]: <https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety>
/Users/admin/builder/spi-builder-workspace/Sources/Capstone/AArch64+InstructionView.swift:20:16: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
 18 |         precondition(index >= 0 && index < operandCount, "operand index \(index) is outside 0 ..< \(operandCount)")
 19 |         let operands = unsafe details!.pointee.aarch64.operands
 20 |         return withUnsafeBytes(of: operands) { bytes in
    |                |                             `- note: argument #1 in call to global function 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> AArch64.Operand'
    |                `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
 21 |             AArch64.Operand(capstoneOperand: unsafe bytes.load(
 22 |                 fromByteOffset: index * MemoryLayout<cs_aarch64_op>.stride,
[#StrictMemorySafety]: <https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety>
[203/213] Compiling Capstone TMS320C64xEnums.swift
[204/213] Compiling CapstoneEnumsGenerator CapstoneEnumsGenerator.swift
[205/213] Emitting module CapstoneEnumsGenerator
[206/213] Compiling CapstoneEnumsGenerator CapstoneEnumsGenerator.swift
[207/213] Emitting module CapstoneEnumsGenerator
[208/217] Compiling capstone_enums_generator CapstoneEnumsGeneratorMain.swift
[209/217] Emitting module capstone_enums_generator
[210/217] Compiling capstone_enums_generator CapstoneEnumsGeneratorMain.swift
[211/217] Emitting module capstone_enums_generator
[211/217] Write Objects.LinkFileList
[213/217] Linking capstone-enums-generator-tool
[214/217] Linking capstone-enums-generator
[215/217] Applying capstone-enums-generator-tool
[216/217] Applying capstone-enums-generator
Build complete! (33.59s)
Fetching https://github.com/MxIris-Reverse-Engineering/capstone
Fetching https://github.com/MxIris-DeveloperTool/swift-clang
[1/176] Fetching swift-clang
[68/49181] Fetching swift-clang, capstone
Fetched https://github.com/MxIris-DeveloperTool/swift-clang from cache (16.92s)
Fetched https://github.com/MxIris-Reverse-Engineering/capstone from cache (16.92s)
Computing version for https://github.com/MxIris-Reverse-Engineering/capstone
Computed https://github.com/MxIris-Reverse-Engineering/capstone at 6.0.101 (17.60s)
Computing version for https://github.com/MxIris-DeveloperTool/swift-clang
Computed https://github.com/MxIris-DeveloperTool/swift-clang at 0.3.0 (0.63s)
Creating working copy for https://github.com/MxIris-Reverse-Engineering/capstone
Working copy of https://github.com/MxIris-Reverse-Engineering/capstone resolved at 6.0.101
Creating working copy for https://github.com/MxIris-DeveloperTool/swift-clang
Working copy of https://github.com/MxIris-DeveloperTool/swift-clang resolved at 0.3.0
Build complete.
{
  "dependencies" : [
    {
      "identity" : "capstone",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "6.0.101",
            "upper_bound" : "7.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/MxIris-Reverse-Engineering/capstone"
    },
    {
      "identity" : "swift-clang",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.2.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/MxIris-DeveloperTool/swift-clang"
    }
  ],
  "manifest_display_name" : "swift-capstone",
  "name" : "swift-capstone",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "Capstone",
      "targets" : [
        "Capstone"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "capstone-enums-generator",
      "targets" : [
        "capstone-enums-generator"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "swift_languages_versions" : [
    "6"
  ],
  "targets" : [
    {
      "c99name" : "capstone_enums_generator",
      "module_type" : "SwiftTarget",
      "name" : "capstone-enums-generator",
      "path" : "Sources/capstone-enums-generator",
      "product_memberships" : [
        "capstone-enums-generator"
      ],
      "sources" : [
        "CapstoneEnumsGeneratorMain.swift"
      ],
      "target_dependencies" : [
        "CapstoneEnumsGenerator"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "CapstoneTests",
      "module_type" : "SwiftTarget",
      "name" : "CapstoneTests",
      "path" : "Tests/CapstoneTests",
      "sources" : [
        "AArch64TestSupport.swift",
        "AArch64Tests.swift",
        "ArchitectureTests.swift",
        "DisassemblerOptionsTests.swift",
        "DisassemblerTests.swift",
        "InstructionInformationTests.swift",
        "SendableTests.swift",
        "SnapshotTests.swift"
      ],
      "target_dependencies" : [
        "Capstone"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CapstoneEnumsGeneratorTests",
      "module_type" : "SwiftTarget",
      "name" : "CapstoneEnumsGeneratorTests",
      "path" : "Tests/CapstoneEnumsGeneratorTests",
      "sources" : [
        "CapstoneEnumsGeneratorTests.swift"
      ],
      "target_dependencies" : [
        "CapstoneEnumsGenerator"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CapstoneEnumsGenerator",
      "module_type" : "SwiftTarget",
      "name" : "CapstoneEnumsGenerator",
      "path" : "Sources/CapstoneEnumsGenerator",
      "product_dependencies" : [
        "Clang"
      ],
      "product_memberships" : [
        "capstone-enums-generator"
      ],
      "sources" : [
        "CapstoneEnumsGenerator.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CapstoneEnumsGeneratePlugin",
      "module_type" : "PluginTarget",
      "name" : "CapstoneEnumsGeneratePlugin",
      "path" : "Plugins/CapstoneEnumsGeneratePlugin",
      "plugin_capability" : {
        "intent" : {
          "description" : "",
          "type" : "custom",
          "verb" : "generate-enums"
        },
        "permissions" : [
          {
            "network_scope" : {
              "none" : {
              }
            },
            "reason" : "This plugin creates a enum file at the root of the package.",
            "type" : "writeToPackageDirectory"
          }
        ],
        "type" : "command"
      },
      "sources" : [
        "Plugin.swift"
      ],
      "target_dependencies" : [
        "capstone-enums-generator"
      ],
      "type" : "plugin"
    },
    {
      "c99name" : "Capstone",
      "module_type" : "SwiftTarget",
      "name" : "Capstone",
      "path" : "Sources/Capstone",
      "product_dependencies" : [
        "Ccapstone"
      ],
      "product_memberships" : [
        "Capstone"
      ],
      "sources" : [
        "AArch64+InstructionView.swift",
        "AArch64+Operands.swift",
        "AArch64.swift",
        "AArch64Enums.swift",
        "AArch64Operand.swift",
        "Access.swift",
        "AlphaEnums.swift",
        "ArcEnums.swift",
        "Architecture+Generated.swift",
        "Architecture.swift",
        "ArmEnums.swift",
        "BpfEnums.swift",
        "Disassembler.swift",
        "DisassemblerOptions.swift",
        "DisassemblyArchitecture.swift",
        "EngineVersion.swift",
        "Error.swift",
        "EvmEnums.swift",
        "HppaEnums.swift",
        "InstructionView.swift",
        "LoongArchEnums.swift",
        "M680xEnums.swift",
        "M68kEnums.swift",
        "MipsEnums.swift",
        "Mos65xxEnums.swift",
        "PpcEnums.swift",
        "RiscvEnums.swift",
        "ShEnums.swift",
        "SparcEnums.swift",
        "SystemZEnums.swift",
        "TMS320C64xEnums.swift",
        "TricoreEnums.swift",
        "Utils.swift",
        "WasmEnums.swift",
        "X86Enums.swift",
        "XcoreEnums.swift",
        "XtensaEnums.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.2"
}
Done.