I have just started trying to learn Swift, but one error keeps cropping up time and again and I can not find out why - "Editor placeholder in source code". What could be causing this (I am unable to post a picture of the code as I am a new member).
Thanks
For me it helped to fix this (my code is correct) just applying Xcode - Product - Clean (Shift+Cmd+K)
I've had this issue while doing a Udemy Course that didn't update the curricula with the new Swift 3 info. At least that's what I'm guessing caused the issue that kep on giving me this error.
Old broken code:
New, working code
I had the same problem, it was caused by a double space (Xcode 8.1 beta)
before:
after (working!):
(the 2 spaces are after "style:")
It happened to me just now, but the reason was pretty straightforward once I looked at the code. I was using the autofill class as the param for a function. Ergot "place holder"
Just happened to me using xcode 7.3.1 on existing code "that was fine yesterday". I couldn't see anything wrong, so I re-typed (the offending line to see where it went wrong) on the line above and deleted the original and error went away. A git diff shows no change.
It's happened to me, but I had forgot to define a part of code:
When I get the error:
After I fixed: