Post

Replies

Boosts

Views

Activity

The amount of source code files can affect the build time?
Hi I have joined an iOS development team about 3 month ago. When I run the code, It takes too long time to build. Even though in the incremental build time too. It needs about 2 minutes to run every single time. I have tried to find why it is too slow and I guess the amount of swift code file is. There are 4,000 swift code files and the dependency is very complicated. So... In a short, the number of source files can make build slower? Please save me! Thanks!
2
0
951
Jul ’21
Xcode build too slow especially 'Merge swift module (x86_64)
Hi I tried to build my application with Xcode 12. I have struggled with a bad problem which is very very slow to build or index to my app. I looked the 'show the report navigator' tab and build messages and I find Compile swift source files(x86_64) 300.3 seconds Precompiling bridging header (x86_64) Compile AAA.swift (x86_64) Merge swiftmodule (x86_64) the 'Merge swiftmodule' process is especially slow. There are any document or tips I can fix it ? Please let me know how to improve and why it occur. thanks.
1
0
890
May ’21
Too many swift file can affect build time?
I have some questions to apple team. Too many swift file can make build time slow? There is a large file like a kind of UIViewController. it confirms to a lot of protocol. like UICollectionViewDataSource, UICollectionViewDelegate and some one. Which one better? first, Just write it down one file or divide it into separated files to confirm each protocol. Thanks!
1
0
328
Nov ’22
Xcode Cloud workflow shows "There are no branches available" for Tuist-based repository
Description: I'm trying to set up Xcode Cloud for a tvOS project that uses Tuist for project generation. The workflow is created successfully, but when I try to manually start a build, no branches are listed — it just shows "There are no branches available." Setup: tvOS app project using Tuist 4.x for project generation Hosted on GitHub (private repository, organization) The .xcodeproj and .xcworkspace files were originally in .gitignore (standard practice for Tuist projects) ci_scripts/ci_post_clone.sh is configured to install Tuist and run tuist generate --no-open after cloning What I've tried: Removed *.xcodeproj and *.xcworkspace from .gitignore and committed the generated project.pbxproj to Git — branches still not visible Changed the "Project or Workspace" path in the workflow settings to match the actual location of project.pbxproj (Projects/App/.xcodeproj) — no change Temporarily changed the default branch to one that contains the committed .xcodeproj with project.pbxproj — still no branches available Verified GitHub App (Xcode Cloud) has proper repository access with read permissions for code, metadata, and pull requests Confirmed no webhook configuration issues (compared with another working repository that also has no webhooks) Key observation: When I switch the workflow's source repository to a different repository (a standard Xcode project, not Tuist-based) within the same organization, branches appear correctly. Switching back to the Tuist-based repository shows no branches again. This suggests the issue is specific to the repository structure, not GitHub permissions or workflow configuration. Project structure: Root/ ├── Workspace.swift # Tuist workspace definition ├── Tuist/ │ └── Package.swift # SPM dependencies ├── Projects/ │ └── App/ │ ├── Project.swift # Tuist project definition │ └── <project>.xcodeproj/ │ └── project.pbxproj ← (committed to Git) ├── <project>.xcodeproj/ # Root-level (no project.pbxproj, only xcshareddata/schemes) ├── ci_scripts/ │ └── ci_post_clone.sh # Installs Tuist & generates project └── .gitignore Environment: Xcode version: Latest Release (26.4) macOS: Latest Release (Tahoe 26.4) Tuist version: 4.161.0 Question How does Xcode Cloud discover branches for a repository? Does it require a valid .xcodeproj with project.pbxproj at a specific path on every branch? Is there a known limitation or recommended setup for Tuist-based projects where project files are generated at build time via ci_post_clone.sh?
0
0
28
8h
The amount of source code files can affect the build time?
Hi I have joined an iOS development team about 3 month ago. When I run the code, It takes too long time to build. Even though in the incremental build time too. It needs about 2 minutes to run every single time. I have tried to find why it is too slow and I guess the amount of swift code file is. There are 4,000 swift code files and the dependency is very complicated. So... In a short, the number of source files can make build slower? Please save me! Thanks!
Replies
2
Boosts
0
Views
951
Activity
Jul ’21
Xcode build too slow especially 'Merge swift module (x86_64)
Hi I tried to build my application with Xcode 12. I have struggled with a bad problem which is very very slow to build or index to my app. I looked the 'show the report navigator' tab and build messages and I find Compile swift source files(x86_64) 300.3 seconds Precompiling bridging header (x86_64) Compile AAA.swift (x86_64) Merge swiftmodule (x86_64) the 'Merge swiftmodule' process is especially slow. There are any document or tips I can fix it ? Please let me know how to improve and why it occur. thanks.
Replies
1
Boosts
0
Views
890
Activity
May ’21
Too many swift file can affect build time?
I have some questions to apple team. Too many swift file can make build time slow? There is a large file like a kind of UIViewController. it confirms to a lot of protocol. like UICollectionViewDataSource, UICollectionViewDelegate and some one. Which one better? first, Just write it down one file or divide it into separated files to confirm each protocol. Thanks!
Replies
1
Boosts
0
Views
328
Activity
Nov ’22
Xcode Cloud workflow shows "There are no branches available" for Tuist-based repository
Description: I'm trying to set up Xcode Cloud for a tvOS project that uses Tuist for project generation. The workflow is created successfully, but when I try to manually start a build, no branches are listed — it just shows "There are no branches available." Setup: tvOS app project using Tuist 4.x for project generation Hosted on GitHub (private repository, organization) The .xcodeproj and .xcworkspace files were originally in .gitignore (standard practice for Tuist projects) ci_scripts/ci_post_clone.sh is configured to install Tuist and run tuist generate --no-open after cloning What I've tried: Removed *.xcodeproj and *.xcworkspace from .gitignore and committed the generated project.pbxproj to Git — branches still not visible Changed the "Project or Workspace" path in the workflow settings to match the actual location of project.pbxproj (Projects/App/.xcodeproj) — no change Temporarily changed the default branch to one that contains the committed .xcodeproj with project.pbxproj — still no branches available Verified GitHub App (Xcode Cloud) has proper repository access with read permissions for code, metadata, and pull requests Confirmed no webhook configuration issues (compared with another working repository that also has no webhooks) Key observation: When I switch the workflow's source repository to a different repository (a standard Xcode project, not Tuist-based) within the same organization, branches appear correctly. Switching back to the Tuist-based repository shows no branches again. This suggests the issue is specific to the repository structure, not GitHub permissions or workflow configuration. Project structure: Root/ ├── Workspace.swift # Tuist workspace definition ├── Tuist/ │ └── Package.swift # SPM dependencies ├── Projects/ │ └── App/ │ ├── Project.swift # Tuist project definition │ └── <project>.xcodeproj/ │ └── project.pbxproj ← (committed to Git) ├── <project>.xcodeproj/ # Root-level (no project.pbxproj, only xcshareddata/schemes) ├── ci_scripts/ │ └── ci_post_clone.sh # Installs Tuist & generates project └── .gitignore Environment: Xcode version: Latest Release (26.4) macOS: Latest Release (Tahoe 26.4) Tuist version: 4.161.0 Question How does Xcode Cloud discover branches for a repository? Does it require a valid .xcodeproj with project.pbxproj at a specific path on every branch? Is there a known limitation or recommended setup for Tuist-based projects where project files are generated at build time via ci_post_clone.sh?
Replies
0
Boosts
0
Views
28
Activity
8h