Xcode ALWAYS has some problems…..
- Click ‘Manage Schemes’
- Selected the Scheme
- Choose the Scheme
- Then just Build (⌘B) and change back to your scheme
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
- If you’re getting this error trying to import a dynamic framework, make sure the framework is included in the target’s 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.