Changing UITableView style from Interface Builder (.xib file not storyboard) causes a crash on xCode 9. I think its an apple bug. But Is there anyone that found a solution ?
Asked
Active
Viewed 837 times
22
-
2what the crash report – Anbu.Karthik Sep 27 '17 at 07:20
-
2xcode is hanging and crashing. – Mehmet AKYOL Sep 27 '17 at 07:25
-
2That is a Xcode 9 bug. You should report Apple from https://developer.apple.com/bug-reporting/ – Emre Gürses Sep 27 '17 at 08:30
-
any workaround on this issue? – Miras Maratuly Oct 11 '17 at 11:15
-
same Issue here – DanR Oct 12 '17 at 09:02
-
Not yet. waiting for an update :( – Mehmet AKYOL Oct 12 '17 at 11:51
-
3You can open the xib file as source code and change the value from plain to grouped via text. This way you can at least use the xib at runtime. You won't be able to edit the xib file while it's in grouped mode though. I would suggest finish editing your xib file using interface builder, then change it to grouped via editing the xml whenever your UI is stable, and you need to test. – Nailer Oct 13 '17 at 10:49
-
I already tried it before. it didnt work. – Mehmet AKYOL Oct 13 '17 at 10:51
-
@Nailer worked for me. – Ahmad Farrag Oct 14 '17 at 10:38
-
@AhmadFarrag good to hear but it crashes on my xcode if i changed in source code then try to show in Interface Builder :/ – Mehmet AKYOL Oct 16 '17 at 08:33
-
@MehmetAKYOL Yes, It's really annoying, My workaround is to change this to plain to be able to view the Interface Builder. – Ahmad Farrag Oct 16 '17 at 08:38
-
1Still crashing in Xcode 9.0.1 :( – Nailer Oct 17 '17 at 10:14
-
this is so bad!!! – Mehmet AKYOL Oct 17 '17 at 13:05
-
NOTE: This only occurs in .xib files, not in storyboards. – DavidH Oct 17 '17 at 20:10
-
I was think this is my issue cause it just happened in my new project, but my old projects is still able to change to grouped style (those also use .xib files). After I saw his question, I think it’s a bug of compatibility of Swift&Xcode9. Anyone can tell you’re using Swift or Objective-C when you crash? – KTang Oct 19 '17 at 01:20
-
My project is written with Objective C. – Mehmet AKYOL Oct 19 '17 at 15:08
2 Answers
3
This issue has been resolved in Xcode 9.1.
Refer this release note for detail.
You can download DMG/XIP file from this link.

Jayprakash Dubey
- 35,723
- 18
- 170
- 177
2
Open your xib file via editing the xml and replace: style="plain" => dataMode="prototypes" style="grouped"

anminhtu
- 21
- 2
-
dataMode is Storyboard spesific property. Did you try it on xib ? :) i will try later and i will inform about result. – Mehmet AKYOL Oct 24 '17 at 06:51