码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2016-06-20 20:45:50      阅读:393      评论:0      收藏:0      [点我收藏+]

标签:

 
原帖地址 http://stackoverflow.com/questions/36147625/xcode-7-3-cannot-create-weak-reference-in-file-using-manual-reference-counting

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
 
    
I thought there would be a flag for it lol Thanks – REALFREE Mar 23 at 8:36
6  
This still doesn‘t work for me :( could there be another compiler flag that overrides this setting that I might have enabled? I do have these -Wall -Wextra -Wno-unused-parameter Warning flags enabled. – Kdawgwilk Mar 24 at 5:45
5  
@Kdawgwilk You sure you turn on that flag correctly? If its in your project you can just simply delete __weak keyword tho. I didnt try but you can also try to turn on the flag in Pod project if you are using Pod – REALFREE Mar 24 at 16:38 
    
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 is set to NO for each pod target - and you will have to edit the build settings again. – Damo Apr 21 at 16:13

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

标签:

原文地址:http://www.cnblogs.com/Camier-myNiuer/p/5601569.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!