#やりたいこと
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`.
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/09/03 01:37
2020/09/03 02:11
2020/09/03 08:27