Fix compile error in project, update project settings and sample project scheme