You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When building for watchOS (WATCHOS or WATCHOSCOMBINED) and using the lib in Xcode, the Xcode build fails because architecture arm64 is not found.
To Reproduce
Steps to reproduce the behavior:
Build using WATCHOS platform flag
Embed the dylib in a xcframework
Use this xcframework in a Apple Watch target in Xcode.
=> Xcode fails with undefined symbols and a warning:
Thanks for reporting this, albeit a late response from me, but I struggle to find any references if apple have changed/added the arm64 architecture to the platform. At least previously the only available 64 bit arm arch was the 32 bit pointer+64 bit registers variant arm64_32…
Had you any simulator slices added to the xcframework? Because I really think that arm64 is not a strict requirement (I even think it would be bad since full arm64 consumes more RAM than arm64_32… so why would they want to change that?)
Describe the bug
When building for watchOS (
WATCHOS
orWATCHOSCOMBINED
) and using the lib in Xcode, the Xcode build fails because architecture arm64 is not found.To Reproduce
Steps to reproduce the behavior:
WATCHOS
platform flag=> Xcode fails with undefined symbols and a warning:
Expected behavior
The Xcode build should succeed
Solution found
Even though I am not sure it is the correct way to do so, here is how I fixed this bug:
I replaced line 450 of the ios.toolchain.cmake script with:
(instead of
set(ARCHS armv7k arm64_32)
)If it is the correct way, do not hesitate to tell me, I can submit a PR for you.
Environment
The text was updated successfully, but these errors were encountered: