---
# System prepended metadata

title: Xcode 解决Encountered an error communicating with IBAgent-iOS
tags: [Xcode, ' osx', ' mac']

---

---
title: Xcode 解决Encountered an error communicating with IBAgent-iOS
tags: Xcode, osx, mac
description: Xcode 解决Encountered an error communicating with IBAgent-iOS
Author: Aaron@gis.tw
---

# Xcode 解决Encountered an error communicating with IBAgent-iOS
## 更新XCode後原本可執行的專案變成IBAgent-iOS (interface Builder xib Compiler error)編譯錯誤
## 解決方法
- 不要再相信網路上的各種偏方了
    - 舉凡叫你再重灌一次Xcode, 買台新的Mac
    - 重開機大法
    - 把storyboard砍掉重拉的駭(害)人解決方案
    
- 以下是實際測過有用的方法, 清除以下資料夾
    - ~/Library/Caches
    - ~/Library/Logs
    - ~/Library/Developer
    
![](https://i.imgur.com/2XcrVAV.png)

- 完整關閉Xcode, 打開console執行指令
```shell=
killall -9 com.apple.CoreSimulator.CoreSimulatorService
```

- 開啟XCode, Build Project > 成功, 恭喜省下一台Mac的$$$, 前面櫃台繳費喔~

