fix iOS compile error & fix warning