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

编译libconch.a #11

Open
zhwongbo opened this issue Jun 24, 2024 · 2 comments
Open

编译libconch.a #11

zhwongbo opened this issue Jun 24, 2024 · 2 comments

Comments

@zhwongbo
Copy link

在build-ios-sdk.sh文件中有下面代码:
cp ./Conch/libs/ios/libcommon.a armv64/libcommon.a
cp ./Conch/libs/ios/librender.a armv64/librender.a
cp ./Conch/libs/ios/libconchRuntime.a armv64/libconchRuntime.a
但ios目录下并未发现libcommon.a与librender.a
请问这个要怎么处理?

@xlwu25
Copy link

xlwu25 commented Nov 22, 2024

这俩是编译的时候先生成的

@xlwu25
Copy link

xlwu25 commented Nov 22, 2024

以前写的,不确定是否适用于现在:

脚本使用方法

1、下载LayaNative2.0项目,并更改LAYABOX项目签名Team,targets选择Layabox,build选any-ios-device,product菜单选build。
2、新生成的4个静态库文件,复制到Conch/libs/ios/目录下。
3、运行build-ios-sdk.sh文件,LayaNative2.0目录下依次执行:权限运行「chmod 777 build-ios-sdk.sh」、运行「./build-ios-sdk.sh」。
4、在publish/nativetools/template/iOS/LayaRuntime-ios/libs/目录下的libconch.a就是所需的合并静态库。

注:build选的设备不同,可能会导致某些环境下跑不起来,同时打包出的库大小也不同,直接选any-ios-device后build这样打包出的库很大,留待后续研究;修改所有项目run的时候的环境为release,这样打包出的库会小很多。

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