Carthage: Import not working: File not found

Created on 4 May 2016  路  3Comments  路  Source: Carthage/Carthage

  • carthage version: 0.16.2
  • xcodebuild -version: Xcode 7.3.1
  • Are you using --no-build? Don't know
  • Are you using --no-use-binaries? Don't know
  • Are you using --use-submodules? Don't know

Cartfile

github "mutualmobile/MMWormhole" ~> 2.0.0

Carthage Output

$ carthage update
*** Fetching MMWormhole
*** Checking out MMWormhole at "2.0.0"
*** xcodebuild output can be found in /var/folders/qh/1pzf72wj3dqd2c14dfsdh39r0000gn/T/carthage-xcodebuild.nddzqS.log
*** Building scheme "MMWormhole-Mac" in MMWormhole.xcodeproj
*** Building scheme "MMWormhole-iOS" in MMWormhole.xcodeproj

I followed all the steps mentioned in the readme (see screenshots) to use the framework MMWormhole. But when i wanted to import the "MMWormhole.h", i get "File not found".

screen shot 2016-05-04 at 20 11 22

screen shot 2016-05-04 at 20 11 33

screen shot 2016-05-04 at 20 11 38

screen shot 2016-05-04 at 20 11 57

screen shot 2016-05-04 at 20 12 08

In StartViewController.c

#import "StartViewController.h"
#import "MMWormhole.h"

I don't know if it's a bug or missing (wrong?) documentation or stupid misinterpreting all this on my side?

question

Most helpful comment

You should do as follows: #import <MMWormhole/MMWormhole.h> or @import MMWormhole;

All 3 comments

But when i wanted to import the "MMWormhole.h", i get "File not found".

Can you show where you've done that?

In StartViewController.c

#import "StartViewController.h"
#import "MMWormhole.h"

You should do as follows: #import <MMWormhole/MMWormhole.h> or @import MMWormhole;

Was this page helpful?
0 / 5 - 0 ratings