ReactNative By GiantForJade 发表于 2017-03-05 文章目录 1. ReactNative1.1. 端口占用 @providesModule declaration with the same name accross two different files.1.2. 组件生命周期 ReactNative端口占用 @providesModule declaration with the same name accross two different files. 解决方案: 1.命令 lsof -i tcp:port (port替换成端口号,比如8081)可以查看该端口被什么程序占用,并显示PID,方便KILL 2.kill -9 pid 3.重启Xcode 组件生命周期