Error: Unable to read module map content from "Target support files in iOS

I am getting the following problem when starting the application. but i'm stuck with this problem

error: Unable to read the content of the module map from 'Target Support Files / AFNetworking / AFNetworking.modulemap': Error Domain = NSCocoaErrorDomain Code = 260 "The file" AFNetworking.modulemap "could not be opened because there is no such file." UserInfo = {NSFilePath = / Volumes / DATA / Work Projects / Demo New / BackUp / 21-3 / demo / V1 / Pods / Target Support Files /AFNetworking/AFNetworking.modulemap, NSUnderlyingError = 0x7fae56f2e1c0 {Domain Error = NSPOSomainError or the directory is missing "}}

Please check the screenshot image

could you help me figure out this problem?

+6


source to share


5 answers


Xcode can use a different project project even if your project is a new project. Closing Xcode and removing xcode preferences from ~ / Library / Preferences / may fix the problem.



+4


source


Check if it has to do with Pod files, if so try installing with pod install cmd command via terminal. AFNetworking is related to PodFiles, just comment out your pod files and then run pod install in your terminal (it will remove the corresponding files). Now remove the comment in your pod file and run the pod installation again .



+4


source


Sometimes this problem occurs when you leave a library installation using the cocoa pod without completing. Hitting the pod install command worked for me.

+2


source


Cleaning up settings, project and rebuild should do the job.

close Xcode
cd ~/Library/Preferences/
ls -l | grep -i xcode | xargs rm
open Xcode
shift + cmd + K
cmd + B

      

0


source


I came up with this problem when I deleted the pod file. After that, I install the module again. But faced the same problem. Then I followed the next step, which worked for me.

  1. Deleted received data
  2. Clean and build project
0


source







All Articles