False Compiler Error "property access result unused - getters should not be used for side effects"

Originator:fabian.ehrentraud
Number:rdar://19886173 Date Originated:19-Feb-2015 09:10 AM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 6.3 Beta
Classification:Other Bug Reproducible:Always
 
Summary:
Sometimes in a UIViewController it is necessary to trigger loading the view in order to being able to access the view outlets.
This is commonly done via `[self view];`.
In Xcode 6.3 Beta, this produces a compile error though: "property access result unused - getters should not be used for side effects".

Steps to Reproduce:
* In code, write `[self view];` in any UIViewController.
* It will result in a compile error.

Expected Results:
It should compile without error.

Actual Results:
The compile error "property access result unused - getters should not be used for side effects" is output.

Regression:
In Xcode 6.1.1 this worked fine.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!