ios – Xcode错误:找不到-lGoogleToolboxForMac的库
发布时间:2020-12-14 17:17:32 所属栏目:百科 来源:网络整理
导读:我正在尝试在我的iPhone App中安装admobs(用 objective-c编写).我已经使用swift项目实现了很多次,但是目前我一直遇到以下构建错误: ld: warning: directory not found for option '-L/Users/charlieseligman/Library/Developer/Xcode/DerivedData/ThamesCli
我正在尝试在我的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) 我肯定打开.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' 我尝试逐个添加底部3但仍然得到相同的构建错误. 有人可以帮忙吗?完全失去了这一个.看到这两个问题,但他们接受的解决方案还没有解决这个问题: Framework not found GoogleToolboxForMac 解决方法
最后制定了修复:
> Xcode>产品>方案>管理方案 全部建造正确. 所以看起来我必须手动构建单独的方案. 注意:要自动构建这些,请使用Product>方案> ‘编辑方案’>构建>并确保所有目标都添加到底部的项目目标. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |