iOS : Could not build module

前端 未结 5 2269
清歌不尽
清歌不尽 2020-12-16 10:01

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 fr

相关标签:
5条回答
  • 2020-12-16 10:29

    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 :

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

    0 讨论(0)
  • 2020-12-16 10:36

    you can try delete DerivedData dir.

    where is DerivedData?(xcode 8)

    go to File > workspace Settings, you'll see DerivedData path.

    DerivedData path in xcode 8

    0 讨论(0)
  • 2020-12-16 10:42

    I also had this problem: 1. My 'GoodLuck' framework had two headers: GoodLuck.h and GLAdder.h 2. Project which import this framework couldn't compile

    Solution: Import GLAdder.h in GoodLuck.h, rebuild the framework. It works.

    0 讨论(0)
  • 2020-12-16 10:45

    I also had this problem, due to a typo in my GCC_PREPROCESSOR_DEFINITIONS, which therefore invalidated all of my code.

    First helpful warning was multiple "Macro Name must be an identifier" followed by multiple "Could not build module" messages.

    0 讨论(0)
  • 2020-12-16 10:50

    I think you does not need to compile CommonLibrary.framework again. So you can try to remove it from Embedded Binaries list. And make sure the path of CommonLibrary.framework is in your Framework Search Paths.

    0 讨论(0)
提交回复
热议问题