ios - Error in Xcode 6 - view controller does not have an outlet named (subview) -


i got error in 1 of apps, , after checking other apps same error happening. none of iboutlets , ibactions connected anymore. when recreate outlet control-dragging .h file, outlet still displays error in connections inspector > outlets, saying (view controller) not have outlet named (subview). before today didn't have problem, xcode 6? view controller referencing correct class under identity inspector > custom class. have deleted derived data folder, removed reference .h file, cleaned project, , cleaned build folder. none of has worked , can't progress development until issue fixed.

outlets show exclamation mark. note 'easylabel'

i disconnect easylabel, , outlet disappears. can't reconnect drag , drop.

update: reopened project after couple of days , outlets no longer have exclamation mark next them, , 'easylabel' outlet disconnected has reappeared. didn't change anything, guess it's bug in xcode 6-6.1.

update 2: error came back. exclamation marks next every outlet. if delete them can't re-add them. can't create new outlets. can't give view controller custom class. want make progress on app, issue keeps recurring. can't stand anymore. appreciated.

duplicate of : xcode 6: can't connect iboutlet viewcontroller here's trick :

you can see link between parent view , custom class broken (not visible anymore) huge problem.

i had exact same issue app i'm working on actually, updating xcode 5.xxx 6.1. workaround worked me remove reference of every view controller , re-add them project... unfortunately, in cases, mine actually, connections lost again when xcode closed.

to facing issue, here's (annoying) trick :

  • step 1 : select both .h , .m view controller files
  • step 2 : remove reference of files
  • step 3 : re-add files project tree
  • step 4 : open storyboard, re-build project , smile

i can understand things reaaally annoying, worked me... hope else !


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -