0
votes

This error shows up when I try to build my project.

ld: warning: directory not found for option '-F/Users/goradiad/Documents/mpIosAppSwift/matchpointGPS/Pods/GoogleIPhoneUtilities/Frameworks'

ld: warning: directory not found for option '-F/Users/goradiad/Documents/mpIosAppSwift/matchpointGPS/Pods/GoogleInterchangeUtilities/Frameworks/frameworks'

ld: warning: directory not found for option '-F/Users/goradiad/Documents/mpIosAppSwift/matchpointGPS/Pods/GoogleNetworkingUtilities/Frameworks/frameworks'

ld: library not found for -lGGLCloudMessaging clang: error: linker command failed with exit code 1 (use -v to see invocation)

I have no idea where to look. I can see there are many questions related to this but all has different answers.

5
Are you using SDK or cocoa pods? - dahiya_boy
reinstall cocoapods and try again - Brijesh Shiroya
show the full stack trace - Anbu.Karthik
@agent_stack I am using cocoa pods - Shakil Abbas
Like already suggested, show the full stack trace (even better learn how to read them, that's one thing most of these have in common). - dfd

5 Answers

0
votes

try deleting derived data and try to install pods if you are using cocoa pods

0
votes

Please consider cleaning your project also Uninstall App from your simulator, again run it from XCode (Key- cmd+R).

0
votes

I got to resolve that specific linker error by removing -ObjC from Build Settings -> Other Linker Flags

But I introduced a new error "No such file or directory: GoogleToolboxForMac" I assume I've mistakenly deleted GoogleToolboxForMac from Linker Flags and not able to add it again.

0
votes

Finally got this working by removing All the libraries from Build Settings -> Other Linker Flags

Better to take a backup of your project before making this changes.

0
votes

If you are using Cocoapods,

  • uncomment Use frameworks
  • check your target version on xcode
  • do pod update
  • clean and run.

sometimes Cleaning simulator also works !