fixed cannot run with latest Xcode