Snapkit: Cannot load underlying module

Created on 7 Jan 2017  Â·  4Comments  Â·  Source: SnapKit/SnapKit

New Issue Checklist

🚫 If this template is not filled out your issue will be closed with no comment. 🚫

  • [ x] I have looked at the Documentation
  • [ x] I have read the F.A.Q.
  • [x ] I have filled out this issue template.

Issue Info

Info | Value |
-------------------------|-------------------------------------|
Platform | iOS
Platform Version | 8.2
SnapKit Version | 3.1.2
Integration Method | e.g. cocoapods

Issue Description

I can get the pods into the project without having a dialogue box for Swift conversion; however, when I try to create an import statement (import SnapKit), I get a red error stating "Cannot load underlying module for 'SnapKit'". As mentioned earlier, I'm using iOS and Xcode 8.2, so this may not have been reached yet.

question

Most helpful comment

@aeves313 have you:

  1. Cleared your DerrivedData folder ~/Library/Developer/Xcode/DerrivedData
  2. Ensured you are running latest version of Cocoapods
  3. Cleared your Pods cache and re-installed SnapKit?
  4. Cleaned and re-built your Xcode project?

Normally these integration issues is one of the above. If SnapKit is compiling fine into a .framework or .module on your system it's something to do with Xcode's build system or your integration method.

All 4 comments

@aeves313 have you:

  1. Cleared your DerrivedData folder ~/Library/Developer/Xcode/DerrivedData
  2. Ensured you are running latest version of Cocoapods
  3. Cleared your Pods cache and re-installed SnapKit?
  4. Cleaned and re-built your Xcode project?

Normally these integration issues is one of the above. If SnapKit is compiling fine into a .framework or .module on your system it's something to do with Xcode's build system or your integration method.

@robertjpayne
I have done 2-4 many times, but the Derived Data approach was something I gave a try. Xcode still complains the same.

@aeves313 hm I'm not really sure what to do, I've not heard of anyone else having issues it's likely just something specific to your machine / Xcode etc…

Closing because I don't believe this is a SnapKit issue but rather an integration issue that is specific to dev machine/configuration.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

seljabali picture seljabali  Â·  3Comments

mkoppanen picture mkoppanen  Â·  3Comments

cjwirth picture cjwirth  Â·  4Comments

cooler333 picture cooler333  Â·  5Comments

jagdish24 picture jagdish24  Â·  3Comments