iPhone アプリ (objective-c で作成) に admobs をインストールしようとしています。私は迅速なプロジェクトを使用してこれを何度も実装しましたが、現在、次のビルドエラーが発生し続けています:
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」フォルダーの内容を削除して、プロジェクトを「クリーニング」し、「ビルド フォルダーのクリーン」を実行しようとしました。誰も問題を解決していません。
私のポッドファイルには、次のポッドのみが含まれています。
# 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 つを 1 つずつ追加しようとしましたが、同じビルド エラーが発生し続けました。
誰でも助けることができますか?これで完全に途方に暮れました。次の 2 つの質問を見ましたが、受け入れられた解決策ではこの問題は解決されませんでした。
フレームワークが見つかりません GoogleToolboxForMac ld: -lGoogleToolboxForMac のライブラリが見つかりません