Dan Ashby Dan Ashby - 1 year ago 94
Objective-C Question

Compiler error, any help appreciated

I have recently purchased an app and while trying to make edits in Xcode, I am getting a compiler error with the error saying

cannot create __weak static in file using manual reference

I am very new to Xcode and Objective C, so would massively appreciate any help and suggestions how I can fix this error. Thanks.

Snippet of code

Answer Source

This means that you are not using ARC in that file and so you cannot use weak, strong and so on. Therefore you have to remove the keyword __weak.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download