简体   繁体   中英

NS_ENUM, NS_OPTIONS, NSArray[dereferencing] not working XCode 4.6

I'm trying to compile the PSTCollectionView library using XCode 4.6, but for some reason, I'm getting a ton of compiler errors. They're all centered around the newer features of Objective-C.

A few examples:

NS_ENUM未定义

NSArray取消引用不起作用

However, the new array/dictionary/NSNumber macros are defined:

NSArray创建宏已定义

I'm using the Apple LLVM Compiler

编译器

I'm a bit stumped by this... any notions?

This is apparently an issue caused by using the wrong SDK. I was using the iOS 5.1 SDK, which does not allow the use of these handy new shortcuts that Apple added. When I change to the iOS 6.1 SDK, it no longer complains about that usage.

Apple lets you know in this article here.

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