0

After migrating project from xcode9 beta 5 to xcode 8.3, I get the "uknown class in Interface Builder". Any ideas how to fix this? Thanks!

Nishant Bhindi
  • 2,242
  • 8
  • 21
artemchen
  • 149
  • 1
  • 12
  • try this: https://stackoverflow.com/questions/38846538/unknown-class-in-interface-builder – Erik Batista Sep 01 '17 at 00:04
  • nah, it didn't help(: thanks though – artemchen Sep 01 '17 at 00:14
  • 1
    What's the class's name supposed to be? What's the exact text of the error message? What's in the "module" field in Interface Builder? Is the class exposed to Objective-C? Is the class embedded within another type, or in the root namespace? We need more information to help you. – Charles Srstka Sep 01 '17 at 00:36

2 Answers2

0

Open the storyboard/XIB > look at the Identity Inspector (tab) > Custom Class section.

  1. Class: Clear out the class and set it back to what it was.
  2. Module: Clear out the module and set it back to what it was (even if it's empty).

If that doesn't fix it move on to checking the File Inspector (tab) > Interface Builder Document section

  1. Opens In: Set it to Xcode 8
  2. Builds for: Set it to your deployment target

Rinse and repeat for all XIB/storyboard files.

scotopic
  • 103
  • 3
0

Follow these steps to solve your problem:

  1. Open your project in Xcode (any 9.0 or 8.3.3)
  2. Right 'Click' on story board.
  3. Select 'Open As' >> 'Source Code'
  4. find keyword 'minToolsVersion' (it may be more than one time) under 'dependencies'. (Look at below images)
  5. Update value for minToolsVersion to 8.3, only where is it 9.0
  6. Save and it's done.

Now you can open your storyboard in Xcode 8.x also.

enter image description here

enter image description here

Krunal
  • 77,632
  • 48
  • 245
  • 261