• 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: Xcode7 "no module named 'UIKit'?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode7 "no module named 'UIKit'?


  • Subject: Re: Xcode7 "no module named 'UIKit'?
  • From: Quincey Morris <email@hidden>
  • Date: Sat, 29 Aug 2015 18:11:09 +0000

On Aug 29, 2015, at 08:47 , Alex Hall <email@hidden> wrote:
>
> I've seen this off and on in the last few betas, and have no idea how to solve it. Sometimes, when I make a new project, a file will show the error "no module named 'UIKit'". The file is empty apart from the code Xcode inserted automatically, so there can't be a typo in UIKit. Is there a simple fix for this, or is the bug at least known, if indeed it is a bug and not something I'm doing wrong? Thanks!

What file? If you’re talking about a file created as part of the new-project template, then it’s not going to be “empty”, but will have some boilerplate in it.

If you’re saying you create a new class file, then my guess would be you’ve forgotten to set the correct target membership when you created the file.

If neither of those apply, then there might I suppose be errors that appear temporarily because Xcode does several things asynchronously (such as indexing) just after creating a project. When you get the error, what happens if you go ahead and build anyway? Is there a build error, or does the original error go away?


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Xcode7 "no module named 'UIKit'?
      • From: Alex Hall <email@hidden>
References: 
 >Xcode7 "no module named 'UIKit'? (From: Alex Hall <email@hidden>)

  • Prev by Date: Re: Auto Layout Problems
  • Next by Date: Re: Xcode7 "no module named 'UIKit'?
  • Previous by thread: Xcode7 "no module named 'UIKit'?
  • Next by thread: Re: Xcode7 "no module named 'UIKit'?
  • Index(es):
    • Date
    • Thread