2

I'm trying to create a framework using this steps https://www.raywenderlich.com/65964/create-a-framework-for-ios

I've imported the framework file into project and I can able to create object for the framework file and access the methods. But when I build the project it is telling that file is not found.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Human
  • 326
  • 2
  • 3
  • 15
  • Go to **Project -> Target -> Build Phase -> Headers**. Make sure the.h file you want to import is added into **public** section. – Wolverine Dec 08 '16 at 12:53
  • check once build phases your .h is added or not – Anbu.Karthik Dec 08 '16 at 12:54
  • Make sure the file is added to your target – Daniel Dec 08 '16 at 12:54
  • Try deleting framework's reference from project navigator and again add them. – Dheeraj D Dec 08 '16 at 12:55
  • @Wolverine yes its there. I can able to access that class methods in my viewcontroller while doing that its not showing any errors. When I try to build its showing .h file not found – Human Dec 08 '16 at 13:05
  • ok. Go to **your project in which you are using framework**. Go to **That Project -> Target -> General -> Linked Framework and Libraries** and make sure your framework added in that. – Wolverine Dec 08 '16 at 13:40

1 Answers1

7

Make sure your .h file is in public section of 'Copy Headers' as shown in snap shot enter image description here

  • Just add you framework's bundle to embedded libraries as enter image description here
Anni S
  • 1,996
  • 19
  • 28