Ways to solve 'could not build objective-c module'

Xcode ALWAYS has some problems…..

hs2TF.png

0x00

  • Click ‘Manage Schemes’

QQ20190910-203147.png

  • Selected the Scheme

101B51FC-5C28-47A6-8619-DF36EC061D21.png

  • Choose the Scheme

QQ20190910-203723.png

  • Then just Build (⌘B) and change back to your scheme
  • RUN

0x01

  • Go into Developer/Xcode/DerivedData and delete the folder for your framework. (Or just delete DerivedData itself)

  • If you have a build of you app in a running simulator you’ll need to delete the app there.

  • Then Clean & Build

0x02

  • If you’re getting this error trying to import a dynamic framework, make sure the framework is included in the target’s Target Dependencies.
1
Project > "Target" > Build Phases > Target Dependencies
  • Also, if you are working with another framework developed in the same workspace, make sure to add the Project as a linked library instead of the framework file, otherwise the framework won’t be visible as a target dependency.

Title: Ways to solve 'could not build objective-c module'

Author: Tuski

Published: 09/10/2019 - 20:25:15

Updated: 09/10/2019 - 20:42:13

Link: http://www.perphet.com/2019/09/Ways-to-solve-could-not-build-objective-c-module/

Protocol: Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0) Reprinted please keep the original link and author

Thx F Sup