Xcode 7.3 Cannot create __weak reference in file using manual reference counting

Source: Internet
Author: User

Original Address http://stackoverflow.com/questions/36147625/ Xcode-7-3-cannot-create-weak-reference-in-file-using-manual-reference-counting
Activeoldestvotes
Up vote87down voteaccepted

Set Build Settings -> Apple LLVM 7.1 - Language - Objective C -> Weak References in Manual Retain Release to YES .

Taken from Apple developers Forums-xcode 7.3b4, Non-arc, cannot create __weak reference.

ShareImprove this answer Edited Mar at 13:34howanghk2,2401 answered Mar at 8:21Lean89423
 &nbs P;  
i thought there would is a flag for it lol T Hanks – realfree mar at 8:36
this still doesn ' t work f Or me:(could there is another compiler flag that overrides this setting that I might has enabled? I do these  -wall-wextra-wno-unused-parameter  warning flags enabled. –  Kdawgwilk mar at 5:45
@Kdawgwilk you sure T Urn on that flag correctly? If its in your project you can just simply delete __weak keyword tho. I didnt try and can also try to turn on the flag in Pod project if you are using Pod – realfree mar at 16:38 
 &nbs P;  
this didn ' t worked for me! –  Jayprakash dubey APR 5 at 6:59
2
Note If you currently run Pod install/pod update then Weak References in Manual Retain Release are set to NO for each pod Target-and you'll have a to edit the build settings again. –damo APR at 16:13

Xcode 7.3 Cannot create __weak reference in file using manual reference counting

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.