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

在macos上交叉编译ios出现错误 #100

Open
lixcli opened this issue Mar 12, 2022 · 1 comment
Open

在macos上交叉编译ios出现错误 #100

lixcli opened this issue Mar 12, 2022 · 1 comment

Comments

@lixcli
Copy link

lixcli commented Mar 12, 2022

你好,
我按照文档加入iphoneos.sdk的路径后,运行./install.sh --target=ios-aarch64编译ios,出现错误:

ld: in /opt/homebrew/opt/protobuf/lib/libprotobuf.a(text_format.o), building for iOS, but linking in object file built for macOS, for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [model_tools/tools/X2bolt] Error 1
make[1]: *** [model_tools/tools/CMakeFiles/X2bolt.dir/all] Error 2
make: *** [all] Error 2

请问这个要如何处理?

@yuxianzhi
Copy link
Contributor

链接的protobuf不是ios的,是macos系统自带的,所以会导致这个问题,建议使用bolt脚本安装protobuf

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

2 participants