I am having issues with installing Alamofire with cocoapods. This is the error:
error: unable to read module map contents from 'Target Support Files/Pods-Alamofire/Pods-Alamofire.modulemap': Error Domain=NSCocoaErrorDomain Code=260 "The file “Pods-Alamofire.modulemap” couldn’t be opened because there is no such file."
To test this I made a new Xcode project, added a Podfile containing only the content mentioned in the README and did pod install, opened the workspace, and performed a build.
Turns out it was an xcode problem. Xcode was using another projects project path, even though this was a new project. Closing Xcode and deleting the xcode preferences from ~/Library/Preferences/ fixed the issue.
I'm leaving this here in case someone on the internet comes across it.
There is no Preferences(dir) in ~/Library, has Preference(file).How can i do~T_T
You don't have a Preferences directory? Are you using a Mac?
Xcode without a mac ? Are you serious, really ? lol, no preferences for Xcode in my ~/library/preferences/ too.
no......
On Fri, Jul 29, 2016 at 4:16 PM, Spiroux Emeric [email protected]
wrote:
Xcode without a mac ? Are you serious, really ? lol
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Alamofire/Alamofire/issues/551#issuecomment-236150679,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATlhlI0umZf_PrzN5V28_jlR-7Xibfo7ks5qadn8gaJpZM4FN4EM
.
hi
I have bugs in project Workspace open search google but not exact issue Found.
So please Help ..
Error: unable to read module map contents from 'Target Support Files/TTTAttributedLabel/TTTAttributedLabel.modulemap': Error Domain=NSCocoaErrorDomain Code=260 "The file “TTTAttributedLabel.modulemap” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/slk/Documents/pravinData/SLK039/RxliveRedesign/RxLive Patient APP Redesign Resource(iTechputer)/ashish48-rxpatient-0f9200e812b7/Pods/Target Support Files/TTTAttributedLabel/TTTAttributedLabel.modulemap, NSUnderlyingError=0x7fa757955ca0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
Dude, Exactly what should be deleted from ~/Library/Preferences ?
Run cd ~/Library/Preferences/ to go to your user preferences.
(~ means your user directory, i.e. /Users/michael/)
Run: ls -l | grep -i xcode to list all preference files with xcode in the name. Those are generally the preference files relating to Xcode. From there you can delete all of them or try deleting one at a time until the solution is fixed. This may not work, but it worked for me.
Most helpful comment
Turns out it was an xcode problem. Xcode was using another projects project path, even though this was a new project. Closing Xcode and deleting the xcode preferences from ~/Library/Preferences/ fixed the issue.
I'm leaving this here in case someone on the internet comes across it.