error: could not build Objective-C module 'Foundation'

Viewed 2026

I encounter this 2 errors while archiving my project. I don't know what happen on it. Need help to solve this issues.

enter image description here

Foundation framework already added into the project

enter image description here

1 Answers

First try by full clean with,

(Command-Option-Shift-K)

then if it will not done then

Once try like below,

Select your project name(top most row in left side panel) from navigator - > go to build settings -> Apple LLVM 8.1 - Languages - Modules -> set Enable modules(C and Objective-C) to NO.

Here 8.1 is your xcode version number if you are using xcode 9 then it will be Apple LLVM 9.0 instead of Apple LLVM 8.1.

Related