Skip to content

Instantly share code, notes, and snippets.

@Slowhand0309
Last active July 27, 2019 05:27
Show Gist options
  • Save Slowhand0309/082cd84e332a1741d2635f96941cbb9d to your computer and use it in GitHub Desktop.
Save Slowhand0309/082cd84e332a1741d2635f96941cbb9d to your computer and use it in GitHub Desktop.
[Command lists related to Xcode] #Xcode #Command
# Show current path
xcode-select -print-path
# Switch xcode
xcode-select --switch /Applications/XcodeXX.app
# Search active xcodebuild path
xcrun --find xcodebuild
# Show simulator list
xcrun --sdk iphoneos simctl list
# Show architecture types list
xcrun --sdk iphoneos lipo -info libXXXX.a
## Use in makefile
# Makefile for iphoneos
CC="$(xcrun --sdk iphoneos --find clang)"
ISYSROOT="$(xcrun --sdk iphoneos --show-sdk-path)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment