-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Building HandyJSON in Swift 5.10 throws a fatal error #71946
Comments
I have also run into this same crash on a different (non-public) project. |
Waiting for an effective solution |
A quick, workable solution is to disable whole-module-optimization for this module that is encountering the error. |
Is there any new progress? I also encountered this problem |
@CrazyFanFan Is there a way to turn off |
@macblazer Sorry, I mainly use cocoapods at present, and there seems to be no good way to disable wmo if SPM is used. |
I solved this issue by selecting HandyJSON in the PODS project, then set the Optimization Level to None_xxx |
Is there any new progress? I also encountered this problem, me too |
I rolled back to the old version of Xcode 15.2, and the project can run normally. For now, I'll just use it like this |
This way works. Make sure to modify Swift Compiler setting not Apple Clang. |
it works for me |
I used this version. This works for me |
Description
When building HandyJSON using Swift version 5.10, the compiler throws a fatal error. The code was being compiled for 'arm64-apple-ios12.0'.
The error thrown by the compiler was:
Reproduction
Clone HandyJSON to your local.
The issue was encountered when executing the following swift build command:
Stack dump
Expected behavior
The expected behavior is for the code to compile successfully without any errors.
Environment
Xcode version: 15.3 (15E5202a)
OS: macos sonoma 14.4 Beta(23E5211a)
Chip: Apple M3 pro
The text was updated successfully, but these errors were encountered: