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
Clang fails to load on iOS 15.4 #391
Comments
I am not able to reproduce the issue, but I don't have iOS 15.4 yet. What I can say for sure is that we are not using iOS version of The "Failed loading clang" error means that iOS has an issue with the developer signature on |
Thank you for the insight! It's a problem exclusive to iOS 15.4 since many reported the problem on their iOS 15.4 devices. I'm trying to recompile clang with the latest Xcode and see how it goes. |
I'm sorry, I did not read your error message carefully enough. You're absolutely right. I need to download Xcode 13.3RC in order to create the new framework. |
I'm still wondering where the issue is here. It looks like the dylib was a part of iOS library and linked when building clang. Not sure why it's removed in 15.4. |
Yes, that's surprising that they removed it, and it's going to break a lot of apps. I have no ideas why they would do that. |
I can confirm this issue can be reproduced on iOS 15.4 GM. I was having issues compiling clang on my desktop but I will try again today. |
Yes, I can confirm it too. I'm in the process of upgrading OSX, so I can upgrade Xcode, so I can recompile LLVM. |
When building for iOS, it failed with the below message. I'm not sure if it's my environment or Xcode's fault.
|
I'm recompiling now, I'll see what happens. The error message says it cannot find |
After recompiling clang, I can now run clang on a-Shell. I have accidentally updated LLVM and clang to version 14.0, but I don't think that'll be too much of an issue. Linking fails (ld: command not found), but it seems related to changes in LLVM 14.0, I should be able to fix it. Update: it runs now. clang, clang++. |
Great. That means it was a problem of my environment. Looking forward to the update. |
Not necessarily. Maybe it was an incompatibility between the source code of LLVM 13.0 and the SDK included with XCode 13.3. |
@holzschu Will you publish the changes to https://github.com/holzschu/llvm-project? |
According to git, the only change was to |
Unfortunately I'm stilling having the |
The release has been published: https://github.com/holzschu/llvm-project/releases |
Thank you! I think there was some compatibility issue with M1 Mac with the CMake scripts causing it not to copy clang_rt.cc_kext_ios. I managed to build it after manually copying the files. |
Version 1.8.6 (now out on the AppStore) fixes this issue. |
Clang doesn't seem to work on iOS 15.4. This issue can be reproduced on a-shell and other apps that uses https://github.com/holzschu/llvm-project.
Looks like this has something to do with
libc++.1.dylib
being missing in iOS 15.4. I found a message from Xcode 13.3 RC release note that might relate to this (https://developer.apple.com/documentation/Xcode-Release-Notes/xcode-13_3-release-notes):Error from Xcode:
a-Shell screenshot:
The text was updated successfully, but these errors were encountered: