You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
The text was updated successfully, but these errors were encountered:
Cocos Creator version
3.x
System information
Xcode
Issue description
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
The text was updated successfully, but these errors were encountered: