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

M1 mac 不支持调试 bridge #579

Closed
devjiangzhou opened this issue Aug 10, 2021 · 8 comments
Closed

M1 mac 不支持调试 bridge #579

devjiangzhou opened this issue Aug 10, 2021 · 8 comments
Labels
bug Something isn't working

Comments

@devjiangzhou
Copy link

使用的 Kraken 版本 | What version of kraken are you using

0.8.1

重现步骤 | Steps To Reproduce

env: m1 mac book pro
CLion 按照 https://openkraken.com/guide/contribute/development 配置好后,debug 报错。

重现代码 | Code example:

预期结果 | Expected results:
可以调试

实际结果 | Actual results:

/Users/xxxxx/Documents/tools/kraken/kraken/example/build/macos/Build/Products/Debug/kraken_example.app dyld: Library not loaded: @rpath/libkraken_jsc.dylib Referenced from: /Users/xxxxx/Documents/tools/kraken/kraken/example/build/macos/Build/Products/Debug/kraken_example.app/Contents/Frameworks/libkraken_devtools_jsc.dylib Reason: no suitable image found. Did find: /Users/xxxxx/Documents/tools/kraken/kraken/example/build/macos/Build/Products/Debug/kraken_example.app/Contents/MacOS/../Frameworks/libkraken_jsc.dylib: mach-o, but wrong architecture /Users/xxxxx/Documents/tools/kraken/kraken/example/build/macos/Build/Products/Debug/kraken_example.app/Contents/MacOS/../Frameworks/libkraken_jsc.dylib: mach-o, but wrong architecture Signal: SIGABRT (signal SIGABRT) Process finished with exit code 9

@devjiangzhou devjiangzhou added the bug Something isn't working label Aug 10, 2021
@devjiangzhou devjiangzhou changed the title M1 mac 不支持调试 M1 mac 不支持调试 bridge Aug 11, 2021
@andycall
Copy link
Member

现在提供的都是 x86 版本,m1 的话估计要自己编译一份

@devjiangzhou
Copy link
Author

现在提供的都是 x86 版本,m1 的话估计要自己编译一份

看起来只把 libkraken_jsc �编译成 arm64 的 dylib 还不够,还需要 devtool jsc, websocket 都要搞一下。

@andycall
Copy link
Member

jsc 的构建会比较麻烦,可以先去掉对应的插件。

@devjiangzhou
Copy link
Author

去掉 devtool & socket 后,macos 可以成功跑起来,但是 ffi 加载动态链接时还是报错。
libkraken_jsc 已经是 arm64 的了,为什么还有这个错误?

image

@andycall
Copy link
Member

dart-lang/sdk#39231

有可能你还是运行在 x86 模式下

@andycall
Copy link
Member

#767

@andycall
Copy link
Member

@devjiangzhou

@devjiangzhou
Copy link
Author

🙏🙏🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants