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

Posted 天牛

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Xcode 7.3 cannot create __weak reference in file using manual reference counting相关的知识,希望对你有一定的参考价值。

 
原帖地址 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的主要内容,如果未能解决你的问题,请参考以下文章

Cannot create __weak reference in file using manual reference counting

Xcode 7.3 的无效位码版本(生产者:'800.0.42.1_0' 读者:'703.0.29_0')

iOS之报错“Cannot create __weak reference in file using manual reference counting”解决办法

PHP 7.3 中的 mcrypt_create_iv 替代方案 [重复]

ElasticSearch 7.3采用restful风格 批量(bulk)增删改

Loadrunner问题:Monitor name :Windows Resources. Cannot create measurement Processor|% Processor Time|_