• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Hurdles in converting to Swift
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hurdles in converting to Swift


  • Subject: Re: Hurdles in converting to Swift
  • From: John Brownie <email@hidden>
  • Date: Fri, 25 Dec 2015 15:44:58 +1000

On 24/12/2015 11:49, Quincey Morris wrote:
On Dec 23, 2015, at 17:38 , John Brownie <email@hidden <mailto:email@hidden>> wrote:
2015-12-24 10:43:40.664 AppName[10464:1086828] Unknown class SearchViewController in Interface Builder file.
Try going to the inspector in IB and remove the class name SearchViewController, and make sure both the class and module fields are empty. Then choose the class name from the popup menu beside the text field.

In the current version of Xcode, the module field should say “Current — <your app module name>” in gray.  IIRC in older versions, you needed to choose/type the module name explicitly.

(I went the long way around, but I suspect your problem is that the Swift module name is missing, which is causing IB to assume the view controller class is an Obj-C class name.)

It looks as though my original reply didn't make it, but this was the problem, and both following Quincey's instructions and directly selecting my app's name in the module field worked to make it all running correctly again.

Thanks to Quincey and others who offered suggestions!

John
--
John Brownie, email@hidden or email@hidden
Summer Institute of Linguistics, Ukarumpa, Eastern Highlands Province, Papua New Guinea
Mussau-Emira language, Mussau Island, New Ireland Province, Papua New Guinea
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Hurdles in converting to Swift (From: John Brownie <email@hidden>)
 >Re: Hurdles in converting to Swift (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Swift Generics Error When Enforcing Protocol Conformance...
  • Next by Date: NSScroll view - horizontal scroll bar does not appear when swiping across screen
  • Previous by thread: Re: Hurdles in converting to Swift
  • Next by thread: Re: Hurdles in converting to Swift
  • Index(es):
    • Date
    • Thread