Build Information
Failed to build PerfectMosquitto with Swift 6.0 for macOS (SPM).
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/perfectlysoft/perfect-mosquitto.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/perfectlysoft/perfect-mosquitto
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at ec54dd3 improving the versions.
Cloned https://github.com/perfectlysoft/perfect-mosquitto.git
Revision (git rev-parse @):
ec54dd39c7bfee93ad1bf3a46ed03418c9f8452e
SUCCESS checkout https://github.com/perfectlysoft/perfect-mosquitto.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/perfectlysoft/perfect-mosquitto.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module PerfectMosquitto
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "cmosquitto.h"
| `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/Sources/cmosquitto/cmosquitto.h:4:10: error: '/usr/local/include/mosquitto.h' file not found
2 | #define __PERFECT_LIB_MOSQUITTO__
3 | #ifdef __APPLE__
4 | #include "/usr/local/include/mosquitto.h"
| `- error: '/usr/local/include/mosquitto.h' file not found
5 | #else
6 | #include "/usr/include/mosquitto.h"
/Users/admin/builder/spi-builder-workspace/Sources/PerfectMosquitto/PerfectMosquitto.swift:25:8: error: could not build Objective-C module 'cmosquitto'
23 | #endif
24 |
25 | import cmosquitto
| `- error: could not build Objective-C module 'cmosquitto'
26 |
27 | extension String {
[4/4] Compiling PerfectMosquitto PerfectMosquitto.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "cmosquitto.h"
| `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/Sources/cmosquitto/cmosquitto.h:4:10: error: '/usr/local/include/mosquitto.h' file not found
2 | #define __PERFECT_LIB_MOSQUITTO__
3 | #ifdef __APPLE__
4 | #include "/usr/local/include/mosquitto.h"
| `- error: '/usr/local/include/mosquitto.h' file not found
5 | #else
6 | #include "/usr/include/mosquitto.h"
/Users/admin/builder/spi-builder-workspace/Sources/PerfectMosquitto/PerfectMosquitto.swift:25:8: error: could not build Objective-C module 'cmosquitto'
23 | #endif
24 |
25 | import cmosquitto
| `- error: could not build Objective-C module 'cmosquitto'
26 |
27 | extension String {
warning: failed to retrieve search paths with pkg-config; maybe pkg-config is not installed
warning: you may be able to install libmosquitto using your system-packager:
brew install mosquitto
BUILD FAILURE 6.0 macosSpm