我遇到過(guò),是LLDB的問(wèn)題,如果之前下載過(guò)某些軟件寫(xiě)入了~/.lldbinit 中引入腳本的命令,每次XCode啟動(dòng)并且使用LLDB進(jìn)行debug時(shí)都會(huì)讀取~/.lldbinit文件中的配置執(zhí)行command script import 命令,如果命令后面的路徑不對(duì)或者你已經(jīng)把軟件卸載但是沒(méi)有卸載干凈就會(huì)報(bào)這個(gè)錯(cuò)誤。
解決方法:進(jìn)入~/.lldbinit 文件 刪除出錯(cuò)的 command script import路徑 (你是不是安裝過(guò)realm或者reveal)
error: module importing failed: invalid pathnameXcode運(yùn)行項(xiàng)目, 報(bào)這個(gè)錯(cuò)誤, 導(dǎo)致項(xiàng)目啟動(dòng)時(shí)間賊長(zhǎng), 求解!!! error: module importing failed: invalid pathname