Thursday, August 11, 2016

iOS : Could not build module <framework-name>

Leave a Comment

I've got Library from another team. I'm trying to use library in our project and while do so getting an error Could not build module 'Common Library' (name of framework)

Screenshot 1

Below are solutions that I worked on but didn't helped :

1. Delete Derived data content. Clean and Build.  2. Framework is added in 'Link binary with libraries' of Build phases.  3. While adding framework checkmarked : Target and Copy content to folder. 

Even I tried this stackoverflow-link but didn't got any break-through!

screenshot 2

screenshot 3

The only thing that worked was deleting Objective-C bridging header path in Swift compiler - code generation section of build settings in Project.

However, thereafter I'm not able to get Common interface to create instance (i.e. Common dosen't appears in drop-down list)

Any other fix?

2 Answers

Answers 1

Check whether the framework you are integrating is supporting your project architecture.

To see the framework supported architecture, use Terminal and navigate to Framework folder.

use, "lipo -info myFramework.framework/MyFramework"

And, if you want to use the framework files in your project, check whether the files are available in Framework/Headers Folder.

Getting this error :

Screenshot

Try, "file myFramework.framework/MyFramework" in Terminal

Answers 2

I found the same issue of framework when i try to add framework then i can't add framework and got error like same as you got.

Then i remove and reinstall X-Code and its working fine. so please try this.

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment