Build the Xcode project, fix any errors, then run the application
npx claudepluginhub sjungling/sjungling-claude-pluginsBuild and run the current Xcode project. Follow this workflow:
Use ToolSearch with query "xcode build" to check if Xcode MCP tools are available (e.g., BuildProject, GetBuildLog, XcodeListWindows). If found, follow the MCP Path. Otherwise, follow the CLI Fallback Path.
claude mcp add xcode)XcodeListWindows to discover open Xcode windows and their tabIdentifier valuestabIdentifier — it is required for most subsequent MCP tool callsBuildProject with the tabIdentifier to trigger an incremental buildGetBuildLog to retrieve the build outputIf the build fails:
XcodeListNavigatorIssues to get structured diagnostics (errors and warnings)XcodeRead to read the files with errorsXcodeUpdate (str_replace-style patches) to fix each errorBuildProject and check GetBuildLog againPrioritize errors over warnings. If warnings remain after a clean build, briefly note them to the user.
Once the build succeeds, run the app using Bash:
iOS/iPadOS: Boot the simulator and launch the app:
xcrun simctl boot "iPhone 16" 2>/dev/null; xcrun simctl launch --terminate-running-process --console-stdout booted <bundle-identifier>
Determine the bundle identifier from the project's build settings or Info.plist.
macOS: Run the built binary directly from derived data, or use open on the .app bundle.
Report the result to the user.
.xcworkspace files first (preferred), then .xcodeproj files in the current directoryxcodebuild -list -workspace <workspace> or xcodebuild -list -project <project>Run the build using xcodebuild:
xcodebuild -workspace <workspace> -scheme <scheme> -destination 'platform=iOS Simulator,name=iPhone 16' build 2>&1 | tail -50
Adjust the destination as appropriate for the project type (iOS, macOS, etc.). For macOS apps, omit the -destination flag.
If using a .xcodeproj instead of a workspace, use -project instead of -workspace.
If the build fails:
Prioritize errors over warnings. If warnings remain after a clean build, briefly note them to the user.
Once the build succeeds, run the app in the simulator or locally:
iOS/iPadOS: Boot the simulator and launch the app:
xcrun simctl boot "iPhone 16" 2>/dev/null; xcrun simctl launch --terminate-running-process --console-stdout booted <bundle-identifier>
Determine the bundle identifier from the project's Info.plist or build settings.
macOS: Run the built binary directly from derived data, or use open on the .app bundle.
Report the result to the user.