Reputation: 1659
This error suddenly showed up in my Swift program
ld: framework not found GTMSessionFetcher clang: error: linker command failed with exit code 1 (use -v to see invocation)
but I have it as one of the frameworks
and this is the pod file
I have remove cocoapods and reinstalled it and no result
I have clean and open the workspace instead of the project and still no changes.
I have tried all approaches from similar questions and still no luck. some of the answers I've looked at are Apple Mach-O Linker Warning "Directory Not Found For Option..."
Linker command failed with exit code 1 after installing CocoaPods and firebase pod
I noticed my error is somewhat unique to what I have been seeing from others in that it's a GTMSessionFetcher error. How can I fix this and get rid of the error?
Upvotes: 4
Views: 3955
Reputation: 5618
First, try running pod install
.
It looks like GTMSessionFetcher.framework
is grayed out, which means that the file was deleted. If pod install
doesn't work, try removing each grayed-out framework file from the list and dragging it back in (either from the project folder or from the sidebar under "Products").
Upvotes: 1