Skip to content
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

xcode build failed (iOS) #230

Open
tzyy opened this issue Jun 22, 2022 · 4 comments
Open

xcode build failed (iOS) #230

tzyy opened this issue Jun 22, 2022 · 4 comments

Comments

@tzyy
Copy link

tzyy commented Jun 22, 2022

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?

@carlosjrtee
Copy link

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.

@carlosjrtee
Copy link

carlosjrtee commented Sep 14, 2022

Update:

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

@bill19
Copy link

bill19 commented Oct 9, 2022

@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"

@bill19
Copy link

bill19 commented Oct 11, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants