Xcode 6 Swift code completion not working

后端 未结 13 1056
感情败类
感情败类 2020-11-28 08:11

Using Xcode 6 GM seed my code completion has stopped working. It was working the other day. I was trying to get the unwind segue work around to work. I had made an Objc head

相关标签:
13条回答
  • 2020-11-28 08:29

    Go to Xcode menu, then Window -> Organizer, then select Projects. Pick your project and press on delete button beside dervied data Then restart Xcode

    That solution worked with me on Xcode 6.1

    0 讨论(0)
  • 2020-11-28 08:29

    So all you have to do is make sure, in the file inspector view on the right side, under Target Membership, the first box is checked. I'm not sure why this changes things but I'm sure someone can come along and give a more complete answer.

    0 讨论(0)
  • 2020-11-28 08:31

    Just go in user->Library->Developer->Xcode->DerivedData and delete the Data of folder(Derived data) and restart Xcode.

    0 讨论(0)
  • 2020-11-28 08:31

    user/Library/Developer/Xcode/DerivedData Delete all the files shown in this folder. after that go to your project name and clean project then come back to the file where you wanna see suggestions. Type any word and its done.

    0 讨论(0)
  • 2020-11-28 08:33

    If your code completion problem is only with UI classes (e.g. UIImage, UIDevice), then you just need to add "import UIKit".

    Swift files will NOT have code completion for UI classes unless there is an "import UIKit".

    0 讨论(0)
  • 2020-11-28 08:41

    I had the same issue but under different circumstances, I have 2 projects in my workspace

    1. Swift framework for iOS and OSX
    2. iOS Project (which uses the swift framework)

    My code completion works fine in iOS but it keeps failing in the swift framework. I tried all the about solution and had no luck and was killing my productivity.

    Finally i figured out the solution to this problem.

    1. Select the file you are editing (in the framework )
    2. Select the 'utilities' tab on the right
    3. uncheck the Mac target (just keep the target you are working for currently)

    Thats it, this solved my problem. hope it helps someone who is in this kinda situation.

    0 讨论(0)
提交回复
热议问题