Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Framework path not found in one of Xcode scheme

Tags:

I have one of my own iOS framework embeded in my iOS application. I have workspace file where both framework and my application project exist. I have created universal scheme in framework project which takes care of updating framework changes in my application project.

I am able to run my application project with my default scheme. (say "ProjectName")

However when I am trying to run my project with other scheme (say "ProjectName-Dev), Xcode is not able to build project and gives the error:

"No such module <Framework name>"

Any idea why one scheme is working fine while other not?

like image 725
Dovakin Skyrim Avatar asked Apr 21 '16 14:04

Dovakin Skyrim


People also ask

How do I add a framework to my workspace in Xcode?

To include a framework in your Xcode project, choose Project > Add to Project and select the framework directory. Alternatively, you can control-click your project group and choose Add Files > Existing Frameworks from the contextual menu.


1 Answers

Ok I found the answer to my problem. All I needed was to update my build products path. I update my other scheme (stage environment scheme) build product path to same as my default debug scheme. $(PROJECT_TEMP_DIR)/Debug$(EFFECTIVE_PLATFORM_NAME)

Where "Debug" is my default scheme.

like image 95
Dovakin Skyrim Avatar answered Sep 28 '22 04:09

Dovakin Skyrim