How to disable Xcode4.2 Automatic Reference Counting

后端 未结 2 433
故里飘歌
故里飘歌 2020-11-30 01:27

Today, I have update my xCode to 4.2 version, And I want to disable the ARC, I also search with the google. but can\'t fix my problem. According the search results, In th

相关标签:
2条回答
  • 2020-11-30 02:20

    In Xcode 4.2 beta, there were 2 places per target that you could toggle the use of ARC... now there seems to be NONE.

    Also, the "Convert to ARC" menu item seems to have disappeared.

    Now, yes, I suppose that the ARC stuff was never meant for Mac Developers, as 4.2 beta was iOS only, but not exactly sure what Mac developers who did play with the ARC stuff in their Mac Apps are supposed to do now....

    File Radar Reports. Wait for 4.3? redo the app? Edit the .xcode XML manually? Not sure.

    0 讨论(0)
  • 2020-11-30 02:27
    • Click on you project, in the left hand organizer.
    • Select your target, in the next column over.
    • Select the Build Settings tab at the top.
    • Scroll down to "Objective-C Automatic Reference Counting" (it may be listed as "CLANG_ENABLE_OBJC_ARC" under the User-Defined settings group),
    • and set it to NO.

    This is on Xcode 4.2 (Build 4D199).

    0 讨论(0)
提交回复
热议问题