0

I'm beginner in xcode and swift, So I'm try to add Haneke framework to my project. I do these steps:

  1. Drag Haneke.xcodeproj to your project in the Project Navigator.
  2. Select your project and then your app target. Open the Build Phases panel.
  3. Expand the Target Dependencies group, and add Haneke.framework.
  4. Click on the + button at the top left of the panel and select New Copy Files Phase. Set Destination to Frameworks, and add Haneke.framework.
  5. import Haneke whenever you want to use Haneke.

But I get this error in improt Haneke: No such module 'Haneke'

Also I'm tried to Clean and Build again but not work for me! Is there a mistake from me?

Edit: More Info I used swift 2.0 and xcode 7.0.1 and development target is 8.0 Also I added some screenshots

image1

image2

image3

Imran Sh
  • 1,623
  • 4
  • 27
  • 50
  • I just followed those steps, and don't have the same error. Can you provide some more details? Perhaps you could share a screen shot of your build phases? What kind of file are you trying to import Haneke in? – pbergson Oct 20 '15 at 18:13
  • @pbergson tnx for reply, I add more info for you – Imran Sh Oct 21 '15 at 05:59
  • Strange. With the same setup, I don't get the error. The only difference I currently spot is that my Haneke.xcodeproj contains 4 groups (Haneke, HanekeTests, HanekeDemo, Products), which leads me to wonder whether there's some difference in the actual framework. Maybe you should re-download Haneke and try again? – pbergson Oct 21 '15 at 15:45
  • which version do you used? – Imran Sh Oct 21 '15 at 15:48
  • You are right, I downloaded again and HanekeTests added but problem exist yet!!! I'm confused – Imran Sh Oct 21 '15 at 15:57
  • @pbergson No more idea? – Imran Sh Oct 25 '15 at 05:57
  • Sorry, I just didn't have time to work on it. I don't suppose you can put the project on github so I can see your problem in action? – pbergson Oct 26 '15 at 13:09
  • I solve this problem with build and compile as Haneke.framework file. Thank you body – Imran Sh Oct 26 '15 at 15:36
  • Ok, glad you're sorted. – pbergson Oct 26 '15 at 17:29

1 Answers1

0

Finally I found another solution, At first I opened Haneke project in xcode and create a build then Drag & Drop new compiled file (Haneke.framework) from build folder to my own project and it's working now for me.

Imran Sh
  • 1,623
  • 4
  • 27
  • 50