-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
archi-steam-farm: Can't Handle 2FA on ARM Mac #206331
Comments
From glance, seems like an upstream issue in SteamKit2 when building with Xcode/CLT 15.3+ and should be reported to SteamKit2 (https://github.com/SteamRE/SteamKit). Main issue being they try to load system libraries via relative paths which Apple has removed support for in recent dyld versions. A possible workaround (untested) may be injecting path Longer analysis:IOKit is a system library: SteamKit2 tries to load it via relative path at https://github.com/SteamRE/SteamKit/blob/master/SteamKit2/SteamKit2/Util/MacHelpers.cs#L135-L148: const string LibraryName = "IOKit.framework/IOKit";
...
[DllImport(LibraryName, CallingConvention = CallingConvention.Cdecl, BestFitMapping = false, ThrowOnUnmappableChar = true)] Using .NET DllImport probably follows same rules as dlopen, e.g.
SteamKit2 may be relying on old behavior that is not available in binaries built for recent macOS (see above bold and last sentence). Apple changed implementation in dyld-1042.1 (apple-oss-distributions/dyld@c8a445f), which will be used on Xcode 15.3+ (https://en.wikipedia.org/wiki/Xcode#Xcode_15.0_-_(since_visionOS_support)_2) As an example, see .NET MAUI - https://github.com/dotnet/maui/blob/main/src/Essentials/src/Platform/PlatformUtils.macos.cs#L77-L98 const string IOKitLibrary = "/System/Library/Frameworks/IOKit.framework/IOKit";
...
[DllImport(IOKitLibrary)] |
Thanks a lot for deep analysis @cho-m - I've opened PR upstream - SteamRE/SteamKit#1501 I believe this issue can be closed in favour of the above. |
Thanks for the detailed breakdown @cho-m! |
FYI I've just released and marked as stable ASF V6.1.2.3, which should hopefully fix the macOS crash mentioned in this issue. |
Autobump has picked up new release: @ywwn can you test if it works? |
Yes, it just works! Thank you so much! |
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputVerification
brew doctor
output saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
Please refer to JustArchiNET/ArchiSteamFarm#3381
When I add a .maFile, it crashed.
I'm not sure if this is dotnet's problem.
What happened (include all command output)?
What did you expect to happen?
works as expected
Step-by-step reproduction instructions (by running
brew
commands)The text was updated successfully, but these errors were encountered: