terhechte / SourceKittenDaemon

Swift Auto Completions for any Text Editor
MIT License
529 stars 37 forks source link

Make completion for ios projects work #18

Closed nathankot closed 8 years ago

nathankot commented 8 years ago

I figured out why completion wasn't working for iOS projects, they need to have a -target passed into the compiler args, should've noticed this waaaay sooner but anyway :)

So now strangely enough I'm running into the offset problem you mentioned earlier, but only on the iOS projects... perhaps the completion results are returned differently I'll take a look into this.

terhechte commented 8 years ago

I've merged this for now, so we can test it. The arch + "-apple-" + targetPrefix + targetOS construct does look interesting; I can't think of a better way right now though. I'd say we use that until there's an issue.