refactor plguin deplay & run (ios simulator, mac, android device worked)