XCode - nested functions are disabled !
-
29-09-2019 - |
문제
I used to be able to do forEach loops in XCode, but after installing sdk 4 i get errors
error: nested functions are disabled, use -fnested-functions to re-enable
How can i enable nested functions It says "use -fnested-", but use is where? how?
for (MyObject *obj : array)
{
}
해결책
I think you mean:
for (MyObject * obj in array) { ... }
(Note that you use in
and not :
.
제휴하지 않습니다 StackOverflow