Skip to content

Fix symlink preservation when copying macOS frameworks to prevent duplicate files.#30

Open
0x1306a94 wants to merge 1 commit intolibpag:mainfrom
0x1306a94:bugfix/0x1306a94_copy_symboliclink
Open

Fix symlink preservation when copying macOS frameworks to prevent duplicate files.#30
0x1306a94 wants to merge 1 commit intolibpag:mainfrom
0x1306a94:bugfix/0x1306a94_copy_symboliclink

Conversation

@0x1306a94
Copy link

问题描述

在编译 Mac 平台时,lib-build 脚本在复制 framework 时会丢失软链接,导致软链接被复制为实际文件,最终 framework 内出现文件重复的问题。例如,Modules -> Versions/Current/Modules 软链接被复制成了真实的 Modules 目录,导致 framework 结构不正确。而这种结构在Xcode中使用编译签名的阶段出错。之前刚好在别的项目中遇到这个类似的问题

Mac 平台默认是下面这种结构

image

修复前拷贝后的结构
image

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

Successfully merging this pull request may close these issues.

1 participant