Skip to content

Fix Xcode project build failures#2879

Open
jack68k wants to merge 3 commits intocapstone-engine:nextfrom
jack68k:fix/xcodeproj-missing-files
Open

Fix Xcode project build failures#2879
jack68k wants to merge 3 commits intocapstone-engine:nextfrom
jack68k:fix/xcodeproj-missing-files

Conversation

@jack68k
Copy link

@jack68k jack68k commented Mar 19, 2026

Your checklist for this pull request

  • [ n/a ] I've documented or updated the documentation of every API function and struct this PR changes.
  • [ n/a ] I've added tests that prove my fix is effective or that my feature works (if possible)

Detailed description

Previously, the Xcode project failed to build due to being out-of-sync with C sources that have been added or removed.

Now:

  • All 3 library targets build successfully: static library, dynamic library, and macOS framework bundle.
  • The project contains all .c sources from the root directory and arch/*.
  • .h and .inc files are removed as they were very out-of-sync with the actual filesystem. The files that previously existed were not included in any target and do not need to be present in the project tree to for build.
  • Removed obsolete test targets that referenced source files that were deleted when modern testing was introduced.
  • Updated the xcode/README.md to reflect the current state.

No sources, headers, or tests were modified.

Test plan

Verify that all 3 targets in the Xcode project build successfully. The simplest way is to use xcodebuild:

xcodebuild -target CapstoneStatic -configuration Release
xcodebuild -target CapstoneDynamic -configuration Release
xcodebuild -target CapstoneFramework -configuration Release

Closing issues

I did not find any associated issues.

jack68k added 3 commits March 18, 2026 20:32
- Added missing .c sources causing build failures.
- Added missing includes for the Framework target
- Removed all private headers; they are not needed at all.
- Removed references to headers that have been deleted from the repo.
Old test sources were removed when modern tests were introduced in 191db14.
@jack68k jack68k changed the title Fix/xcodeproj missing files Fix Xcode project build failures Mar 19, 2026
Copy link
Collaborator

@Rot127 Rot127 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't test it. But seems fine. I'll ask one of the others if they can take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants