6篇 xcode related articles

iTerm2批量删除主题

一次导入太多主题了,试了又用不上,想删了界面只提供单个删除。

还好装Xcode了,可以open ~/Library/Preferences/com.googlecode.iterm2.plist 用Xcode打开,定位到Custom Color Presets下面的主题名称上,长按住删除键即可很快删完。

20210112224451.png

More ~

git: error: unable to locate xcodebuild

The issue is:
When I open pycharm git project, it displays the error:
WX20190806-221556.png

Cannot Run Git
git: error: unable to locate xcodebuild, please make sure the path to the Xcode folder is set correctly! git: error: You can set the path to the Xcode folder using /usr/bin/xcode-select -switch

And I try git command in the Terminal, it's same error.

There I found the solution on stackoverflow:
Run this command:
sudo xcode-select --switch /Library/Developer/CommandLineTools/

WX20190806-222115.png

More ~

XCode 10的UI组件库在哪?

我好久不用Xcode,发现以前在右侧边栏的UI组件库不见了,找了半天也没找到,google一搜,还真有不少人我和一样https://stackoverflow.com/questions/51051532/xcode-10-where-are-the-ui-elements

View -> Libraries -> Show Library

Screen Shot 2019-07-24 at 23.35.54.png

或者快捷键 Command + Shift + L

More ~

libMobileGestalt MobileGestalt.c:550: no access to InverseDeviceID

XCode debug启动时报这个:

libMobileGestalt MobileGestaltSupport.m:153: xxx does not have sandbox access for frZQaeyWLUvLjeuEK43hmg and IS NOT appropriately entitled

libMobileGestalt MobileGestalt.c:550: no access to InverseDeviceID (see )

解决方法 Edit Scheme-> Run -> Arguments, 在Environment Variables里边添加

OS_ACTIVITY_MODE = Disable

More ~