iOS开发中遇到的古怪问题

  • xcode升级之后编译报错:The following binaries use incompatible versions of Swift:
    解决方案:xcode->preference->Locations->Derived Data ,工程对应的缓存文件/Users/xxxx/Library/Developer/Xcode/DerivedData再编译就OK了

  • 检查Mac OS 上的端口8181占用情况 lsof -i :8181
    结果:
    COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
    PerfectTe 54590 zlp003 3u IPv4 0xbdc7cafc134037b7 0t0 TCP *:8181 (LISTEN)
    PerfectTe 54590 zlp003 4u IPv4 0xbdc7cafc133eaebf 0t0 TCP localhost:8181->localhost:49326 (CLOSE_WAIT)
    如果有占用端口,杀死端口 执行 kill 54590(PID)

sourceTree 忽略一些不需要版本管理的文件

  • 移除 Breakpoints_v2.xcbkptlist
    git rm --cached 工程文件.xcworkspace/xcuserdata/zf.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
  • 移除 UserInterfaceState.xcuserstate
    git rm --cached 工程文件.xcworkspace/xcuserdata/zf.xcuserdatad/UserInterfaceState.xcuserstate
    https://www.jianshu.com/p/e61111f69a8f

你可能感兴趣的:(iOS开发中遇到的古怪问题)