Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

Latest commit

 

History

History
89 lines (56 loc) · 1.86 KB

File metadata and controls

89 lines (56 loc) · 1.86 KB

Tips & Tricks

Xcode Server

API URL

https://{hostname}:20343/api

Root Certificate

/Library/Developer/XcodeServer/Certificates/xcsd.crt

CouchDB

Web Interface: http://localhost:10355/_utils/

Configuration: /Library/Developer/XcodeServer/Configuration/xcscouch.ini

  • Under the [admins] section is a username=password list.
  • The default username for the Xcode Server CouchDB instance is xcscouchadmin
  • The password is located in the file: /Library/Developer/XcodeServer/SharedSecrets/XCSDCouchDBSecret

XCS Resources (js/etc)

/Application/Xcode.app/Contents/Developer/usr/share/xcs

Core Data

Compile Core Data Model to .momd

/Applications/Xcode.app/Contents/Developer/usr/bin/momc {/Path/To/Source.xcdatamodeld} {Path/To/Destination}
  • Source must be full path (including file extension)
  • Destination is path only (no file name)

Compile Core Data Mapping Model to .cdm

/Applications/Xcode.app/Contents/Developer/usr/bin/mapc {/Path/To/Source.xcmappingmodel} {Path/To/Destination.cdm}
  • Source must be full path (including file extension)
  • Destination includes the filename & extension

Simulator

Send URL to Simulator

xcrun simctl openurl booted "{urlscheme}://{url_encoded_variables}"

Swift

Swift Build/Test with specific Target

swift test -Xswiftc "-target" -Xswiftc "x86_64-apple-macosx10.12"

Disk Space

Run these commands under your user account and the ‘xcodeserver’ account.

Removing old/unavailable simulators

sudo xcrun simctl delete unavailable

Remove Old Device Support

~/Library/Developer/Xcode/*OS DeviceSupport

Remove Xcode SDK downloads

~/Library/Caches/com.apple.dt.Xcode/Downloads

Remove CoreSimulator Runtimes

/Library/Developer/CoreSimulator/Profiles/Runtimes