xcode 手工下载安装模拟器runtime

原文地址

Install and manage Simulator runtimes from the command line

Download the Simulator runtime you want to install from the Apple Developer website. Then follow these steps with the command line to install it:

  1. Select a version of Xcode.
  2. Run the first launch experience to install the required system components, including simctl.
  3. Install the Simulator runtime with simctl.

simctl verifies the signature of the downloaded Simulator runtime, and then installs it in a secure location on your computer.

For example:

 xcode-select -s /Applications/Xcode-beta.app  

 xcodebuild -runFirstLaunch   

 xcrun simctl runtime add “~/Downloads/watchOS 9 beta Simulator Runtime.dmg”

Tip

To learn more about additional runtime management features, run xcrun simctl runtime.

To download and install all the platforms that the Xcode version you selected supports, use the -downloadAllPlatforms option on xcodebuild.

    xcodebuild -downloadAllPlatforms

To download and install Simulator runtimes for a specific platform, use the -downloadPlatform option and specify the platform.

清理mac 启动台图标

1、sqlite3数据库位置

/private/var/folders/73/w1gsct654151mgqzf218d8qh0000gn/0/com.apple.dock.launchpad/db

2、读取db文件

sqlite3  dbfile

3、查看表

.tables

4、查看表结构

select * from sqlite_master where type=”table” and name=’apps’

5、Sql 操作

如何查看crontab的日志记录

在Unix和类Unix的操作系统之中,crontab命令常用于设置周期性被执行的指令,也可以理解为设置定时任务。

crontab中的定时任务有时候没有成功执行,什么原因呢?这时就需要去日志里去分析一下了,那该如何查看crontab的日志记录呢?

1. linux

看 /var/log/cron.log这个文件就可以,可以用tail -f /var/log/cron.log观察

2. unix

在 /var/spool/cron/tmp文件中,有croutXXX001864的tmp文件,tail 这些文件就可以看到正在执行的任务了。

3. mail任务

在 /var/spool/mail/root 文件中,有crontab执行日志的记录,用tail -f /var/spool/mail/root 即可查看最近的crontab执行情况。