LiquidPlayer / LiquidCore

Node.js virtual machine for Android and iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

xcode build failed (iOS)

tzyy opened this issue · comments

commented

On my test, iOS build failed!
Undefined symbols for architecture x86_64:
"node::DefineJavaScriptHash(node::Environment*, v8::Localv8::Object)", referenced from:
node::GetInternalBinding(v8::FunctionCallbackInfov8::Value const&) in node_instance.o
"node::NodePerContextSource(v8::Isolate*)", referenced from:
node::NewContext(v8::Isolate*, v8::Localv8::ObjectTemplate, OpaqueJSContextGroup const*, OpaqueJSContext**) in node_instance.o
"node::DefineJavaScript(node::Environment*, v8::Localv8::Object)", referenced from:
node::GetBinding(v8::FunctionCallbackInfov8::Value const&) in node_instance.o
"node::LoadersBootstrapperSource(node::Environment*)", referenced from:
node::LoadEnvironment(node::Environment*) in node_instance.o
"node::NodeBootstrapperSource(node::Environment*)", referenced from:
node::LoadEnvironment(node::Environment*) in node_instance.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation).

xcode version: 13.2.0
LiquidCore version: 0.7.10
I tryied to change node version : 10.15.3 and 13.9.0, but the error still exist, what can I do?

I also have this issue upon compilation:

Undefined symbols for architecture arm64:
"node::DefineJavaScriptHash(node::Environment*, v8::Localv8::Object)", referenced from:
node::GetInternalBinding(v8::FunctionCallbackInfov8::Value const&) in node_instance.o
"node::NodePerContextSource(v8::Isolate*)", referenced from:
node::NewContext(v8::Isolate*, v8::Localv8::ObjectTemplate, OpaqueJSContextGroup const*, OpaqueJSContext**) in node_instance.o
"node::DefineJavaScript(node::Environment*, v8::Localv8::Object)", referenced from:
node::GetBinding(v8::FunctionCallbackInfov8::Value const&) in node_instance.o
"node::LoadersBootstrapperSource(node::Environment*)", referenced from:
node::LoadEnvironment(node::Environment*) in node_instance.o
"node::NodeBootstrapperSource(node::Environment*)", referenced from:
node::LoadEnvironment(node::Environment*) in node_instance.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

xcode: 13.4.1
liquidcore version: 0.7.10

This could be an issue on macs running on M1 processors as I've been able to build LiquidCore on my intel mac.

Update:

Downgrading to python 2.7.18 worked for me. See @davidgdoyle: #160 (comment)

@carlosjrtee
That's right!
Thank you, brother

#setting path for python 2.7 to .bash_profile
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
export PATH
alias python="/Library/Frameworks/Python.framework/Versions/2.7/bin/python"

If you are a chip of m1, you need to download python 2.7.18 in advance