Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 7 Err "Editor placeholder in source code"

Tags:

xcode7-beta3

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

like image 522
Richard Avatar asked Aug 12 '15 14:08

Richard


1 Answers

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"

//Leaving the auto-completed signature gave the error
myclass.myFunction(myParam: UIControl)

//removing the auto complete params and using a real one cleared error
myclass.myFunction(myUIControl)
like image 55
Sean Avatar answered Jan 01 '23 10:01

Sean