-
Notifications
You must be signed in to change notification settings - Fork 672
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compile with xcode issus (show wifi but not connect) #926
Comments
Same when building from source with latest Xcode, GitHub release build works fine though. |
@ShroomKing |
I just did a test, downloaded the source, compiled it, and verified the resulting .kext in Sonoma and everything seems fine. Here is a breakdown of how I compiled it. It is just my way, not necessarily the correct way, but it worked :-) 1) Download and install Xcode from the App Store 2) Download the latest OpenIntelWireless source 3) Unzip the source OpenIntelWireless to e.g. itlwm-master 4) Download the latest MacKernelSDK 5) Unzip to source to OpenIntelWireless root e.g. itlwm-master 6) Now open itlwm.xcodeproj using XCode 7) Click menu item [Product] and choose [Build] It should build without errors, at least mine did 8) By default it seems to build itlwm.kext 9) To build AirportItlwm change the scheme in the [Product] menu to [AirportItlwm (all)] |
@diepeterpan |
I did more tests. When creating a debug build it uses optimisation level 0 and the kext works. But when creating an optimised build (Release build type / Product->Archive) the kext can't connect to wifi. The highest optimisation level that works right now is 1, so I assume some flag in level 2 is breaking the code (more info here: https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html) You can disable optimisation flags by using |
It's better to look options in Clang documentation because Xcode compiles with Clang, not GCC. |
@usr-sse2 You are right, but I don't have the time and environment(no Sonoma/new XCode) to investigate this, if you have discoveries please let me know or open an PR, thank you! |
From the log I can see the root issue is that the optimization breaks function |
@zxystd I can confirm that the issue is resolved with the latest commits. Release builds are now able to connect to Wi-Fi successfully. Tested on Sonoma 14.4 |
Compile with xcode app |
Have You Read Our Docs
Yes
Are You Reporting A Bug
Yes
Environment
Description
I download code file and compiler . compile done but show wifi and dosnt connect
Bug Report Archive
kext log:
Log_2023-10-24_12-41-37.log
Kext Download Source
The text was updated successfully, but these errors were encountered: