前提・実現したいこと
アニメーション(.aep)を使用したiOSアプリを作っています。
Lottieを利用して実装を試みたのですが、以下のようなエラーが発生しました。
発生している問題・エラーメッセージ
'Lottie/Lottie.h' file not found
failed to emit precompiled header '/Users/[USERNAME]/Library/Developer/Xcode/DerivedData/LottieTest-drpttpjytrpluqaylymlotsykhlk/Build/Intermediates.noindex/PrecompiledHeaders/LottieTest-Bridging-Header-swift_1O38URVVDWX0-clang_2BW8OD81VJYQ3.pch' for bridging header '/Users/[USERNAME]/Desktop/LottieTest/LottieTest-Bridging-Header.h'
該当のソースコード
[ProjectName]-Bridging-Header.h
Swift
1#ifndef LottieTest_Bridging_Header_h 2#define LottieTest_Bridging_Header_h 3 4#import <Lottie/Lottie.h> 5 6#endif
Podfile
# Uncomment the next line to define a global platform for your project # platform :ios, '9.0' target 'LottieTest' do # Comment the next line if you don't want to use dynamic frameworks use_frameworks! # Pods for LottieTest pod 'lottie-ios' end
試したこと
↓こちらのページを参考に、CocoaPodsで'lottie-ios'をPodfileに追加し、ライブラリをインストールしました。
https://qiita.com/ngo275/items/c9e94bad7a7afc85e4f4
https://note.mu/ohanamizuki/n/ne2e33e924011
ターミナルでは下のような表示を確認しているので、ライブラリのインストールまではできているようです。
Analyzing dependencies Downloading dependencies Installing lottie-ios (3.1.0) Generating Pods project Integrating client project [!] Please close any current Xcode sessions and use `LottieTest.xcworkspace` for this project from now on. Sending stats Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed. [!] Automatically assigning platform `ios` with version `12.2` on target `LottieTest` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
Bridging-Headerのフォルダ構成は次の通りです。
補足情報(FW/ツールのバージョンなど)
Xcode Version 10.2.1 (10E1001)
初歩的な質問で恐縮ですが、不足している情報などありましたら教えていただけると幸いです。
よろしくお願いいたします。
あなたの回答
tips
プレビュー