Open tcobbs-bentley opened 4 months ago
Note: the bug report template asked for the output from node -v, and I provided that. However, the problem is happening for me while trying to build from the main branch of the git repository. I don't think the Mac's node version should be contributing to the problem.
It looks like this broken when x86_64 support was added. I have a fix that I am testing that involves creating a new NodeMobile-x64
target for the x86_64 build in NodeMobile.xcodeproj
and then tweaking ios_framework_prepare.sh
to reflect the changes that introduces.
Note: the new target will not include libbase64_neon64.a
and libzlib_inflate_chunk_simd.a
, which are arm64-specific, and the existing target will not include the x64-only libraries. Assuming everything works, I will submit a PR with my fixes.
I submitted a PR with a fix for this:
Version
v18.16.1
Platform
Darwin M7NP0941YH 22.6.0 Darwin Kernel Version 22.6.0: Tue Nov 7 21:40:08 PST 2023; root:xnu-8796.141.3.702.9~2/RELEASE_ARM64_T6000 arm64
Subsystem
No response
What steps will reproduce the bug?
Run
./tools/ios_framework_prepare.sh
.How often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
Build should succeed
What do you see instead?
Additional information
It appears obvious why it can't find the library: that's an x86_64 library and it's trying to build for arm64. However, I have no idea why it is trying to link an x86_64-only library into the arm64 build, and I have no idea how the released binaries were created.