-
Notifications
You must be signed in to change notification settings - Fork 12
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
Failed to build for iOS #36
Comments
@newbeeAirfeeen Sorry I'm completely unfamiliar with iOS development. Could you give me the steps to reproduce the error? It's best to only use cli as I'd like to add testing for iOS to CI so we can support it long term. |
I have now developed an SDK library for my own use on iOS. Of course, this requires compiling rust into the corresponding ios version. I believe this article explains it more clearly than I did.
This is the record.rs code in spdlog. This error is equivalent to telling us that on the iOS platform, libc does not provide a method for obtaining the corresponding thread ID(I'm not sure if libc provides the corresponding method, but at least in spdlog, there is no adaptation similar to |
@newbeeAirfeeen Much helped! Seems like we can just run UPDATE: BTW, I'm trying to setup the CI on GitHub Actions |
I didn't see your submission just now, so I submitted a PR. I just confirmed and verified that pthread_threadid_np can indeed be called on ios. This has been compiled on my example |
Fixed in #37. Thanks for your report and help! |
New version will be released in a few hours because I'm outside now. |
Released in v0.3.11. |
Discussed in #35
Originally posted by newbeeAirfeeen September 6, 2023
I have written an ios sdk now. This sdk uses spdlog-rs. But when I build the sdk of the ios general library. The following command was used:
cargo lipo
The compiler told me that there is no corresponding function on IOS。
I downloaded the source code and checked the relevant calls in libc, and found that there seems to be no corresponding function. If I want to build on ios, is it not supported by the current version yet.
Is it possible to change the way of thinking and use other methods to obtain the thread id when building on ios
The text was updated successfully, but these errors were encountered: