GoogleSignInとGoogleAPIClientForREST/Driveライブラリを使用して、iOSアプリ「DentalLabApp」を正常にビルドし、動作させたい
前提
macOS(M1チップ)環境でiOSアプリ「DentalLabApp」を開発しています。CocoaPodsを使用して、以下のライブラリをインストールし、アプリに組み込もうとしています。
GoogleSignIn
GoogleAPIClientForREST/Drive (バージョン1.3.10)
発生している問題・エラーメッセージ
ビルド時に以下のエラーメッセージが発生します。
vbnet
ld: warning: search path '/Users/takashi/Library/Developer/Xcode/DerivedData/DentalLabApp-xxxx/Build/Products/Debug/AppAuth' not found
ld: warning: search path '/Users/takashi/Library/Developer/Xcode/DerivedData/DentalLabApp-xxxx/Build/Products/Debug/GTMAppAuth' not found
ld: warning: search path '/Users/takashi/Library/Developer/Xcode/DerivedData/DentalLabApp-xxxx/Build/Products/Debug/GTMSessionFetcher' not found
ld: warning: search path '/Users/takashi/Library/Developer/Xcode/DerivedData/DentalLabApp-xxxx/Build/Products/Debug/GoogleAPIClientForREST' not found
ld: warning: search path '/Users/takashi/Library/Developer/Xcode/DerivedData/DentalLabApp-xxxx/Build/Products/Debug/GoogleSignIn/Users/takashi/Desktop/app/DentalLabApp/Pods' not found
ld: framework 'AppAuth' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
該当のソースコード
ruby
platform :ios, '11.0'
target 'DentalLabApp' do
use_frameworks!
pod 'GoogleSignIn'
pod 'GoogleAPIClientForREST/Drive', '~> 1.3.10'
end
試したこと
CocoaPodsの再インストール
bash
rm -rf Pods
rm Podfile.lock
pod install --repo-update
Xcodeの設定
Framework Search Paths と Library Search Paths に $(inherited) と $(PROJECT_DIR)/Pods/** を追加。
プロジェクトのクリーンビルド
Product -> Clean Build Folder を実行。
Product -> Build を実行。
補足情報(FW/ツールのバージョンなど)
macOS: バージョン (M1チップ)
Xcode: バージョン14.5
CocoaPods: バージョン 1.15.2
使用しているライブラリ:
GoogleSignIn
GoogleAPIClientForREST/Drive (バージョン1.3.10)
これらの手順を実行しましたが、同じエラーが発生し続けています。特に、AppAuth や GTMAppAuth などのライブラリが見つからないというエラーが解消できません。どのような追加の手順や設定を試すべきか、アドバイスをいただけますでしょうか?
0 コメント