简体   繁体   中英

Upgraded to IOS5 - App Won't Build

I've upgraded my IOS4.3 app to IOS5 and am getting compile errors. From what I can tell, the syntax looks fine, but the compiler is complaining of "Unexpected @" when I synthesize properties, but only in some classes.

I also have an "Undeclared identifier" in one ViewController's viewDidLoad method.

I've performed a clean build and I'm guessing that there's a default setting which has been changed somewhere, but from scouring around this doesn't seem to be a common issue. Is there a list of common breaking changes anywhere?

EDIT: This screenshot is one of my ViewControllers, which is derived from UITableViewController 示例UITableViewController

There is a missing @ in the line self.title = NSLocalizedString(...) . The second parameter doesn't have the leading @.

Coming from a .NET/PHP background, I have very little experience with compilers. The problem was that Apple seem to have changes the default compiler for IOS5 from GCC to LLVM, hence the difference in syntax. It would be nice to be able to use the newer compiler, but GCC's the only one which gets anywhere near close.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM