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

The size of the .xcodeprojt file in a 3x project can vary, and in large projects, it often leads to Xcode projects being extremely slow to open. #17812

Open
tangkaikk opened this issue Nov 5, 2024 · 0 comments
Labels
Bug Needs Triage Needs to be assigned by the team

Comments

@tangkaikk
Copy link
Contributor

Cocos Creator version

3.x

System information

Xcode

Issue description

17307890455565
Compare to 3x and 2x xcodeproject file, there are two differences. 1: 3x gets more target 2: 3x gets a lot of copyfile but 2x use copy bundle resources to handle.

According to 2x, After we handle the 3x xcodeproject file manually, which change all copyfile to copy bundle resource, the opening speed of project get the rapid improved.

manual handlings:
1.Select build/ios/proj/ProjectName.xcodeproj, right-click and choose "Show Package Contents";
2.Open project.pbxproj with a text editor;
3.Delete the content between /* Begin PBXcopyFilesBuildPhase section / and / End PBXcopyFilesBuildPhase section */; and find all the folders used, which will be needed in step 6;
4.Open Xcode, select "Build Phases";
5.Select the node "Copy Bundle Resources" and click the "+" button;
6.Click "Add Other...";
7.Select the files under build/ios/assets/;
8.Choose "Create folder references" and build "Copy items if needed".

手动处理步骤如下:
1.选择build/ios/proj/项目名.xcodeproj,右键选择显示包内容;
2.用文本编辑器打开project.pbxproj;
3.删除/* Begin PBXcopyFilesBuildhase section /到/ End PBXcopyFilesBuildhase section */中间的内容;并找到所有使用到的文件夹,在第6步用到
4.打开Xcode,选择Build Phases;
5.选中节点Copy Bundle Resources并点击+;
6.点击Add Other...;
7.选中build/ios/assets/下面的文件;
8.选择Create folder references和构建Copy items if need即可。

Could you improve it in cocos building process?

Relevant error log output

none

Steps to reproduce

none

Minimal reproduction project

No response

@tangkaikk tangkaikk added Bug Needs Triage Needs to be assigned by the team labels Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Needs Triage Needs to be assigned by the team
Projects
None yet
Development

No branches or pull requests

1 participant