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

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

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

Flutterは、iOSとAndroidのアプリを同じコードで開発するためのフレームワークです。オープンソースで開発言語はDart。双方のプラットフォームにおける高度な実行パフォーマンスと開発効率を提供することを目的としています。

ARKit

ARKitは、iPhone/iPad向けのARアプリ用フレームワーク。iOS11以降に標準搭載されています。これを用いたARアプリは、特殊なデバイスがなくてもiPhone/iPadの単眼カメラを使用して動作することが可能です。

iOS

iOSとは、Apple製のスマートフォンであるiPhoneやタブレット端末のiPadに搭載しているオペレーションシステム(OS)です。その他にもiPod touch・Apple TVにも搭載されています。

Xcode

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

Dart

Dartは、Googleによって開発されたJavaScriptの代替となることを目的に作られた、ウェブ向けのプログラミング言語である。

Q&A

解決済

1回答

808閲覧

arkit_pluginを使うアプリケーションの環境構築について

ts21

総合スコア32

Flutter

Flutterは、iOSとAndroidのアプリを同じコードで開発するためのフレームワークです。オープンソースで開発言語はDart。双方のプラットフォームにおける高度な実行パフォーマンスと開発効率を提供することを目的としています。

ARKit

ARKitは、iPhone/iPad向けのARアプリ用フレームワーク。iOS11以降に標準搭載されています。これを用いたARアプリは、特殊なデバイスがなくてもiPhone/iPadの単眼カメラを使用して動作することが可能です。

iOS

iOSとは、Apple製のスマートフォンであるiPhoneやタブレット端末のiPadに搭載しているオペレーションシステム(OS)です。その他にもiPod touch・Apple TVにも搭載されています。

Xcode

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

Dart

Dartは、Googleによって開発されたJavaScriptの代替となることを目的に作られた、ウェブ向けのプログラミング言語である。

0グッド

0クリップ

投稿2020/09/02 17:32

編集2020/09/03 01:25

#やりたいこと
Flutterのarkit_pluginを使ってARアプリを作成しようとしています。
その、環境構築の段階でつまづいているので質問させていただきます

なお、こちらの記事を参考に環境を構築しています。
https://qiita.com/s_harada/items/18bec5db482ab1e2d92c

#開発環境
ビルドでは実機を使っています(iphone8)

Catalina:v10.15.6
ios:v13.7
Xcode:v11.7
Flutter SDK:v1.20.2
Android Studio:v4.0

#過程と設定ファイル
参考記事のように
・pubspec.yamlの設定
・/ios/Runner/Info.plistの設定
・Xcodeでの設定
を行い、全てうまくいったように思えました

#エラー
実機でビルドした結果が以下のようになります

Launching lib/main.dart on user_iPhone in debug mode... Automatically signing iOS for device deployment using specified development team in Xcode project: H694V5RHJF Running Xcode build... Xcode build done. 9.5s Failed to build iOS app Error output from Xcode build: ↳ Could not build the precompiled application for the device. Error launching application on user_iPhone. 2020-09-03 02:12:16.820 xcodebuild[29041:1806526] Requested but did not find extension point with identifier Xcode.IBBuildSupport.AssetCatalog.AssetTagScanner ** BUILD FAILED ** Xcode's output: ↳ note: Using new build system note: Building targets in parallel note: Planning build note: Constructing build description error: failed to read asset tags: unexpected error generating result tags (in target 'Runner' from project 'Runner')

Runnerのセッティングが悪いようですが調べてもなかなか出てきませんでした。
Xcodeのセッティングが悪いのでしょうか?

#やったこと
flutter clean
rm ios/podfile
を実行し、再度ビルドしましたが結果は同じでした。

ビルドによって生成されたPodfileはこちらです

# Uncomment this line to define a global platform for your project # platform :ios, '9.0' # CocoaPods analytics sends network stats synchronously affecting flutter build latency. ENV['COCOAPODS_DISABLE_STATS'] = 'true' project 'Runner', { 'Debug' => :debug, 'Profile' => :release, 'Release' => :release, } def flutter_root generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) unless File.exist?(generated_xcode_build_settings_path) raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" end File.foreach(generated_xcode_build_settings_path) do |line| matches = line.match(/FLUTTER_ROOT\=(.*)/) return matches[1].strip if matches end raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" end require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) flutter_ios_podfile_setup target 'Runner' do use_frameworks! use_modular_headers! flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) end post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_ios_build_settings(target) end end

XcodeのGeneralはこのようになります
イメージ説明
個人の名前を表示してしまうので一部だけお見せします.必要でしたら画像処理をしてお見せします

また、ios/Runner配下にInfo.plistが存在しないのですが気にしなくてもよろしいのでしょうか?
イメージ説明

#追記
gitのログからInfo.plistを復元し、ビルドしましたが別のエラーがでました

Running "flutter pub get" in app... Launching lib/main.dart on username_iPhone in debug mode... Signing iOS app for device deployment using developer identity: "Apple Development:username@icloud.com ()" Running pod install... Exception: Error running pod install CocoaPods' output: ↳ Preparing Analyzing dependencies Inspecting targets to integrate Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``) Fetching external sources -> Fetching podspec for `Flutter` from `Flutter` -> Fetching podspec for `arkit_plugin` from `.symlinks/plugins/arkit_plugin/ios` Resolving dependencies of `Podfile` CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only perfomed in repo update [!] CocoaPods could not find compatible versions for pod "arkit_plugin": In Podfile: arkit_plugin (from `.symlinks/plugins/arkit_plugin/ios`) Specs satisfying the `arkit_plugin (from `.symlinks/plugins/arkit_plugin/ios`)` dependency were found, but they required a higher minimum deployment target. /Users/username/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:328:in `raise_error_unless_state' /Users/username/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:310:in `block in unwind_for_conflict' /Users/username/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `tap' /Users/username/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `unwind_for_conflict' /Users/username/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:684:in `attempt_to_activate' /Users/username/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:254:in `process_topmost_state' /Users/username/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:182:in `resolve' /Users/username/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolver.rb:43:in `resolve' /Users/username/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/resolver.rb:94:in `resolve' /Users/username/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/analyzer.rb:1065:in `block in resolve_dependencies' /Users/username/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/user_interface.rb:64:in `section' /Users/username/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/analyzer.rb:1063:in `resolve_dependencies' /Users/username/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/analyzer.rb:124:in `analyze' /Users/username/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer.rb:410:in `analyze' /Users/username/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer.rb:235:in `block in resolve_dependencies' /Users/username/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/user_interface.rb:64:in `section' /Users/username/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer.rb:234:in `resolve_dependencies' /Users/username/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer.rb:156:in `install!' /Users/username/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/command/install.rb:52:in `run' /Users/username/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run' /Users/username/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/command.rb:52:in `run' /Users/username/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.3/bin/pod:55:in `<top (required)>' /usr/local/bin/pod:23:in `load' /usr/local/bin/pod:23:in `<main>' Error output from CocoaPods: ↳ [!] Automatically assigning platform `iOS` with version `8.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

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

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

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

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

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

guest

回答1

0

ベストアンサー

画像を見る限り、本来ios/Runner内にあるべきInfo.plistAppDelegate.swiftAssets.xcassetsなどのファイルが無いように見えます。おそらくこれがエラーの原因では無いでしょうか?

もし誤って削除してしまったのだとすると、新しくプロジェクトを作り直すか、Gitのログからこれらのファイルを復元することで解決できると思います。

投稿2020/09/02 22:28

nskhei

総合スコア704

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

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

ts21

2020/09/03 01:37

>Gitのログからこれらのファイルを復元することで解決できると思います。 復元して実行してみたのですが、別のエラーがでてきました。 追記している通りです。 Podfileのiosの部分を8に変更し、再度実行しましたがエラーは解決できませんでした
nskhei

2020/09/03 02:11

追記の内容確認しました。 おそらく今度のエラーの原因は、ARKitが最新のiosにしか対応していないのに、ios8.0をターゲットにしているからだと思います。 ios12.0以降をターゲットに設定しなおして試してみてください。
ts21

2020/09/03 08:27

ターゲットの設定を変えることで解決しました! ありがとうございました
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問