fix a bug: can not load if run without xcode