Cha*_*man 4 xcode objective-c google-toolbox-for-mac admob ios
我正在尝试在我的iPhone App中安装admobs(用objective-c编写).我已经使用swift项目实现了很多次,但是目前我一直遇到以下构建错误:
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)
Run Code Online (Sandbox Code Playgroud)
我肯定打开.xcworkspace文件(而不是.xcodeproj文件).
我还尝试删除'DerivedData'文件夹内容和'清理'项目并执行'清理构建文件夹'.没有人解决这个问题.
我的podfile仅包含以下pod:
# Pods for ThamesClippers
pod 'Google/Analytics'
pod 'Firebase/Core'
pod 'Firebase/AdMob'
# Trying to fix GoogleToolboxForMac missing error
pod 'Firebase/Messaging'
pod 'GoogleToolboxForMac/Logger'
pod 'GoogleToolboxForMac', '~> 2.1'
Run Code Online (Sandbox Code Playgroud)
我尝试逐个添加底部3,但仍然得到相同的构建错误.
有人可以帮忙吗?完全失去了这一个.看到这两个问题,但他们接受的解决方案还没有解决这个问题:
Cha*_*man 18
最后制定了修复:
全部建造正确.
所以看起来我必须手动构建单独的方案.
注意:要自动构建这些,请使用产品>方案>'编辑方案'>构建>并确保所有目标都添加到底部的项目目标.
| 归档时间: |
|
| 查看次数: |
7367 次 |
| 最近记录: |