Xcode 6: can't connect any IBOutlet to ViewController

后端 未结 16 1853
眼角桃花
眼角桃花 2020-12-03 07:17

After upgrading to Xcode 6, I opened an old project (that contains a subproject, so it has many targets) and I noticed that no link from my Storyboard ViewContoller to the r

16条回答
  •  被撕碎了的回忆
    2020-12-03 08:00

    I had this, affected all projects on my machine, swift and objective c and drove me mad for ages. Finally also noticed that I could not use the refractor to rename classes either.

    The fix for me was:

    1. Close xcode
    2. Delete ~/Library/Developer/Xcode/DerivedData (just doing this on its own did not work!!)
    3. Delete all user data for all my projects using the following from the directory that contains all my projects e.g. /src (be careful with this command!):

    find . -name 'xcuserdata' -exec rm -rf {} \;

    If you want to do it by hand just do the following for all your projects Delete .xcodeproj/project.xcworkspace/xcuserdata Delete .xcodeproj/xcuserdata/.xcuserdatad

    1. Get Spotlight to re-index the drive all my projects were on (not sure if this was required
    2. Re-boot machine

    Everything sprang back into life !

提交回复
热议问题