Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 9 "could not build module ‘Foundation’"

When I archive an iPhone project, it returns a failure:

Could not build module "Foundation".

However, when I debug on the iPhone, it runs successfully.

I tried to set ‘Enable Modules’ to No and it seems normal, but another 3rd party library I'm using requires modules be turned on.

What do I do in that case? How do I import social now?

like image 573
J.Liu Avatar asked Oct 12 '17 11:10

J.Liu


1 Answers

Set to YES target's Allow Non-modular Includes in Framework Modules in Build Settings.

like image 125
dimazava Avatar answered Sep 25 '22 20:09

dimazava