Xcode
v1.0.0Avoid common Xcode mistakes — signing issues, build settings traps, and cache corruption fixes.
Security Scan
OpenClaw
Benign
high confidencePurpose & Capability
Name/description match the content: troubleshooting signing, build settings, DerivedData, and CLI build tips. Declared required binary (xcodebuild) and darwin OS restriction are appropriate and proportional to an Xcode helper.
Instruction Scope
SKILL.md contains step-by-step troubleshooting guidance and CLI commands for Xcode (xcodebuild, xcrun). It references the user's DerivedData folder and Keychain and suggests actions like deleting DerivedData and using xcrun commands — these are directly relevant to fixing Xcode issues and do not attempt to read or transmit unrelated system data.
Install Mechanism
No install spec and no code files — instruction-only skill. Nothing is downloaded or written to disk by the skill itself, which is lowest-risk behavior.
Credentials
The skill requests no environment variables or credentials. It does note that operations like -allowProvisioningUpdates require keychain access and that signing requires developer portal profiles/UDIDs, which is expected for signing-related guidance but the skill does not request or store those secrets.
Persistence & Privilege
always is false and the skill is user-invocable only. It does not request persistent presence or modify other skills or system-wide agent settings.
Assessment
This is an instruction-only Xcode troubleshooting guide (no code or installs). It does not ask for credentials, but several recommended fixes involve deleting DerivedData and accessing the macOS Keychain or developer portal — these are destructive or sensitive actions, so review commands before running them, back up anything important, and ensure any CI usage handles signing credentials/token storage securely. If you want an automated tool to perform these steps, prefer well-known, audited tools rather than following untrusted instructions verbatim.Like a lobster shell, security has layers — review code before you run it.
Runtime requirements
🔨 Clawdis
OSmacOS
Binsxcodebuild
latest
Signing Issues
- "Automatic" signing still needs team selected — set in Signing & Capabilities
- Provisioning profile mismatch — bundle ID must match exactly, including case
- "No signing certificate" — open Keychain, check certificate is valid and not expired
- Device not registered — add UDID in developer portal, regenerate profile
- CI/CD needs manual signing — automatic doesn't work in headless builds
Derived Data Corruption
- Random build failures after Xcode update — delete
~/Library/Developer/Xcode/DerivedData - "Module not found" but it exists — clean Derived Data, restart Xcode
- Stale cache symptoms — builds work, then fail, then work again
xcodebuild cleannot enough — sometimes must delete DerivedData manually
Build Settings Hierarchy
- Project → Target → xcconfig → command line — later overrides earlier
$(inherited)to append not replace — forgetting it removes parent settingsSWIFT_ACTIVE_COMPILATION_CONDITIONSfor Swift flags — notOTHER_SWIFT_FLAGSGCC_PREPROCESSOR_DEFINITIONSfor Obj-C — add to existing, don't replace
Archive vs Build
- Archive uses Release config by default — build uses Debug
- "Works in simulator, fails in archive" — check Release build settings
- Archive requires valid signing — build doesn't for simulator
SKIP_INSTALL = YESfor frameworks — or archive includes them incorrectly
Capabilities and Entitlements
- Capability in Xcode must match entitlements file — out of sync causes crashes
- Push notifications need both — App ID capability AND provisioning profile
- Associated domains needs apple-app-site-association file — hosted on your server
- Keychain sharing needs explicit group — default is just your app
Dependencies
- SPM and CocoaPods can conflict — watch for duplicate symbols
- Pod update vs install —
installuses Podfile.lock,updateignores it - "Framework not found" — check Framework Search Paths, embed vs link
- SPM package resolution fails — delete Package.resolved, reset package caches
Common Fixes
- Build fails with no clear error — check Report Navigator for details
- Simulator stuck —
xcrun simctl shutdown all, thenxcrun simctl erase all - Indexing stuck — delete Index folder in DerivedData
- Autocomplete broken — restart Xcode, if persists delete DerivedData
CLI Builds
xcodebuild -showBuildSettingsto debug — see resolved values-allowProvisioningUpdatesfor CI with auto-signing — needs keychain access-destinationmust be exact —platform=iOS Simulator,name=iPhone 15xcrun altooldeprecated — usexcrun notarytoolfor notarization
Comments
Loading comments...
