e.iluf
e.iluf

Reputation: 1659

How to fix swift linker error "framework not found GTMSessionFetcher clang"

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 enter image description here

and this is the pod file

enter image description here

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

https://www.bountysource.com/issues/39247126-clang-error-linker-command-failed-with-exit-code-1-use-vto-see-invocation

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

Answers (1)

Coder-256
Coder-256

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

Related Questions