I\'m currently coding in Swift, and I\'ve got an error:
No such module Social
But I don\'t understand, because the module is in
I am not quite sure why Martin R's answer in the comments for the question is so disregarded:
Make sure that you tried simply skipping import of the framework as it is already added with the bridging header.
Hope this helps
Assuming the Framework really is there and in the path, etc... delete the ~/Library/Developer/Xcode/DerivedData/ModuleCache directory (and clean the project and delete the project-specific derived data for good measure).
When you do the standard cleanup, the ModuleCache directory doesn't get rebuilt.
If you are using Carthage, the frameworks in building setting usually stay in
$(PROJECT_DIR)/Carthage/Build/iOS
If you run carthage update --platform ios --no-build
(to save time) the files inside Build folder will not be reacreated, then the modules will no available to XCode.
In my case, I have run carthage update --platform ios
, then my problem was solved.
Make sure that the naming of you configurations in the sub projects matches that of the "parent" project. If the configuration naming don't match exactly (case-sensitive), Xcode will abort the archive process and show the error "No such module ..."
That is, if you have a "parent" project with a configuration named "AppStore" you must make sure that all subprojects also have this configuration name.
See my attached screenshots.
My issue was with multiple targets. I solved it with below links: configure pod file right way and fix build settings
Hope some one will find it helpful.
There are several potential misconfigurations the issue can arise for,
.xcworkspace
but not .xcodeproj
file. Also make sure you have build Social
first before you build TriviaApp
.TriviaApp
s deployment target is set to 9.0
, Social
s deployment target also need to be set to 9.0
.TriviaApp
) and your used framework (Social
) have same set of configurations. i.e. If your Project has three configurations, Debug
, Release
, ReleasePremium
than your Social framework also need to have three configurations Debug
, Release
, ReleasePremium
. Also make sure that the archive configuration is set same for both TriviaApp
and Social
. i.e. if your TriviaApp
s archive scheme is set to ReleasePremium
, your Social
s archive scheme also need to be set into ReleasePremium
.Social
in each .swift
files when its already added in the Bridging-Header.h
.#use_frameworks!
into use_frameworks!
from you Podfile
. Sometime re installing pod works if Social
has any dependency on pods.