如图所示是一个崩溃日志的截图 xcode崩溃查询.png step1:找到崩溃位置 根据项目名(GuoJin)定位 step2:崩溃的函数是-[StockDetailTrendVC clickTabBarItem:] step3:崩溃原因:(NSRangeException)后面有详细说明 step4:追踪代码,定位到[StockDetailTrendVC clickTabBarItem:]函数,查看是否存在越界的问题