what are your options set to for in the proejct options? you need to tell it is uses ios5 as the deployment
在设置选项中把debug,和release的sdi都设置成iso5,就不会报错了