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 |
|
|
|
|
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 |
|
|
|
this didn ' t worked for me! – Jayprakash dubey APR 5 at 6:59 |
|
|
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