Is ARC really supported in iOS 4? The iOS 4.2 SDK is missing ARC-related symbols at linking time

后端 未结 2 430
情歌与酒
情歌与酒 2020-11-28 06:36

I\'ve read and heard since ARC was first announced that it was a compile-time thing and would be backwards-compatible with iOS 4. I have successfully refactored my project t

2条回答
  •  执笔经年
    2020-11-28 07:20

    ARC is supported on iOS 4.3 and above. You need to use the iOS 5.x SDK but can select iOS 4.3 for the Deployment Target. The one thing that is not supported in 4.x is automatic weak reference zeroing.

    See Apple's documentation here for the Objective-C Feature Availability Index.

    Xcode 4.4 and 4.5 can be used to submit apps.

    Note that NSDictionary and NSArray subscripting deploys back to OS X 10.6 and iOS 4, be sure to set the deployment target back as well.

提交回复
热议问题