質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
Xcode

Xcodeはソフトウェア開発のための、Appleの統合開発環境です。Mac OSXに付随するかたちで配布されています。

Swift

Swiftは、アップルのiOSおよびOS Xのためのプログラミング言語で、Objective-CやObjective-C++と共存することが意図されています

Q&A

0回答

1326閲覧

lottie-iosを利用したアニメーションの実装

mochinotane

総合スコア13

Xcode

Xcodeはソフトウェア開発のための、Appleの統合開発環境です。Mac OSXに付随するかたちで配布されています。

Swift

Swiftは、アップルのiOSおよびOS Xのためのプログラミング言語で、Objective-CやObjective-C++と共存することが意図されています

1グッド

1クリップ

投稿2019/06/13 08:13

編集2022/01/12 10:55

前提・実現したいこと

アニメーション(.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)

初歩的な質問で恐縮ですが、不足している情報などありましたら教えていただけると幸いです。
よろしくお願いいたします。

totot👍を押しています

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問