I am trying to install admobs in my iPhone App (written in objective-c). I have implemented this many times using swift projects, but currently I keep getting the following build error:
ld: warning: directory not found for option '-L/Users/charlieseligman/Library/Developer/Xcode/DerivedData/ThamesClippers-csissodainpbbjenykdyxuutzxtg/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac'
ld: warning: directory not found for option '-L/Users/charlieseligman/Documents/GIT/iOS.ThamesClippers/build/Debug-iphoneos/GoogleToolboxForMac'
ld: library not found for -lGoogleToolboxForMac
clang: error: linker command failed with exit code 1 (use -v to see invocation)
# Pods for ThamesClippers
# Trying to fix GoogleToolboxForMac missing error
pod 'GoogleToolboxForMac', '~> 2.1'
Finally worked out a fix:
All built correctly.
So it looked like I had to build the separate scheme manually.
Note: To build these automatically use Product > Scheme > 'Edit Scheme' > Build > And make sure all targets are added with your project target at the bottom.