2

I have created a simple framework for the arithmetic operations and another project for using that framework, even after adding the framework, It is giving framework not found or framework not found MathFunctionFramework (where MathFunctionFramework is the name of my framework)

enter image description here

enter image description here

Sudhir
  • 61
  • 1
  • 2
  • 11

1 Answers1

3

Make sure your framework is added to the Embedded Binaries section on the General pane. Also check that your framework appears in the Link Binary With Libraries & Embed Frameworks sections in the Build Phases pane.

If the framework is being dynamically linked, please check that the correct path value is present in the Framework Search Paths setting in Build Settings.

Rhuari Glen
  • 497
  • 2
  • 5
  • Rhuari Glen, Even after adding that also, It is showing the same error – Sudhir Jul 04 '18 at 08:53
  • 1
    @Sudhir have you tried cleaning and rebuilding the project? Use cmd + alt + shift + k as well as cmd + shift + k – Rhuari Glen Jul 04 '18 at 08:55
  • Another couple of things to check would be: 1. Check classes, structs, functions etc have `public` before them if you wish to use them outside the framework. 2. Check that your framework contains a `modules` folder with a `modulemap` file within it, this can be done by expanding the framework in Finder – Rhuari Glen Jul 04 '18 at 08:57
  • @Sudhir please see my above comment – Rhuari Glen Jul 04 '18 at 09:00
  • I have checked the first option and the second option there is no such issue related to it – Sudhir Jul 04 '18 at 09:04
  • @Sudhir are you dynamically linking this framework? Please check you have included the path of your framework in the *Framework Search Paths* in your Build Settings – Rhuari Glen Jul 04 '18 at 09:13
  • Yes I am dynamically linking my framework and I have added that also in Framework Search Paths – Sudhir Jul 04 '18 at 09:22
  • @Sudhir Check this answer. May be what you're after. https://stackoverflow.com/a/18618187/6351482 – Rhuari Glen Jul 04 '18 at 09:24