OpenIntelWireless / IntelBluetoothFirmware

Intel Bluetooth Kernel Extensions for macOS
https://OpenIntelWireless.github.io/IntelBluetoothFirmware
GNU General Public License v3.0
2.47k stars 262 forks source link

Won't compile on Xcode 14.x and/or MacOS 13.x #423

Closed mhschaap closed 1 year ago

mhschaap commented 1 year ago

Have you read the docs?

Yes

macOS Version

MacOS 13.1

Kext Version

v2.2.0

Wireless Adapter Model and USB Product ID

Intel 9560AC (0xa370)

Description

Hello, Thanks for the great work! I use the precompiled kext without issues on MacOS 13.

However, I usually compile my kexts using the tool "Lilu and Friends" from CorpNewt. Compilation fails with MacOS 13.0.1/Xcode14.0 and MacOS13.1/Xcode14.2. With Monterey and Xcode 13 it compiles fine, as tested by @CorpNewt. Our interaction and some screenshots can be found here: (https://github.com/corpnewt/Lilu-and-Friends/issues/42)

Info in System Report - Bluetooth

N.A.

Relevant log output

N.A.

Kernel Panic Logs

No response

pigworlds commented 1 year ago

I have no problem building this kext under Xcode 14.2 MacOS 13.1. All builds fine.

williambj1 commented 1 year ago

All targets seem to compile without issues for me with macOS 13.0.1 (22A400) + Xcode 14.1 (14B47b). ~@mhschaap Could you try the following steps?~

git clone --depth=1 https://github.com/OpenIntelWireless/IntelBluetoothFirmware
git clone --depth=1 https://github.com/Acidanthera/Lilu
git clone --depth=1 https://github.com/Acidanthera/MacKernelSDK
cd Lilu
ln -s ../MacKernelSDK ./MacKernelSDK
xcodebuild -target Lilu -configuration Debug
ln -s build/Debug/Lilu.kext ../Lilu.kext
cd ..
cd IntelBluetoothFirmware
ln -s ../Lilu.kext ./Lilu.kext
ln -s ../MacKernelSDK ./MacKernelSDK
xcodebuild -alltargets -configuration Debug
open build/Debug
corpnewt commented 1 year ago

Should be fixed as of this commit to Lilu and Friends, thanks @pigworlds

-CorpNewt

mhschaap commented 1 year ago

~@mhschaap Could you try the following steps?~

Many thanks to all of you! I would have been happy to follow these steps. However, it was night here, and you solved it meanwhile (in Lilu and Friends). Great combined effort!