Closed2

flutter build ios をすると謎のエラーが大量発生する件

わかなおわかなお
Error output from Xcode build:
↳
    objc[12737]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib
    (0x1f17c9160) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice
    (0x121aa42b8). One of the two will be used. Which one is undefined.
    objc[12737]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x1f17c91b0) and
    /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x121aa4308). One of the two
    will be used. Which one is undefined.
    ** BUILD FAILED **


Xcode's output:
↳
    /Users/wakatanaoki/StudioProjects/futsal_analysis/ios/Runner/Runner-Bridging-Header.h:1:9: note: in file
    included from /Users/wakatanaoki/StudioProjects/futsal_analysis/ios/Runner/Runner-Bridging-Header.h:1:
    #import "GeneratedPluginRegistrant.h"
            ^
    /Users/wakatanaoki/StudioProjects/futsal_analysis/ios/Runner/GeneratedPluginRegistrant.h:8:9: error:
    'Flutter/Flutter.h' file not found
    #import <Flutter/Flutter.h>
            ^
    1 error generated.
    <unknown>:0: error: failed to emit precompiled header
    '/Users/wakatanaoki/Library/Developer/Xcode/DerivedData/Runner-dtpdhvuadgnnlegmpnzitzqaclmn/Build/Intermediates
    .noindex/PrecompiledHeaders/Runner-Bridging-Header-swift_1BM5EL79LCB3C-clang_3A2ZE4017CPD6.pch' for bridging
    header '/Users/wakatanaoki/StudioProjects/futsal_analysis/ios/Runner/Runner-Bridging-Header.h'
    /Users/wakatanaoki/StudioProjects/futsal_analysis/ios/Runner/Runner-Bridging-Header.h:1:9: note: in file
    included from /Users/wakatanaoki/StudioProjects/futsal_analysis/ios/Runner/Runner-Bridging-Header.h:1:
    #import "GeneratedPluginRegistrant.h"
            ^
    Command CompileSwift failed with a nonzero exit code
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Analyzing workspace
    note: Constructing build description
    note: Build preparation complete
    /Users/wakatanaoki/StudioProjects/futsal_analysis/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target
    'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to
    14.5.99. (in target 'gRPC-C++-gRPCCertificates-Cpp' from project 'Pods')
    /Users/wakatanaoki/StudioProjects/futsal_analysis/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target
    'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to
    14.5.99. (in target 'abseil' from project 'Pods')
    /Users/wakatanaoki/StudioProjects/futsal_analysis/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target
    'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to
    14.5.99. (in target 'leveldb-library' from project 'Pods')
    /Users/wakatanaoki/StudioProjects/futsal_analysis/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target
    'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to
    14.5.99. (in target 'BoringSSL-GRPC' from project 'Pods')
    /Users/wakatanaoki/StudioProjects/futsal_analysis/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target
    'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to
    14.5.99. (in target 'gRPC-Core' from project 'Pods')
    /Users/wakatanaoki/StudioProjects/futsal_analysis/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target
    'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to
    14.5.99. (in target 'gRPC-C++' from project 'Pods')
    /Users/wakatanaoki/StudioProjects/futsal_analysis/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target
    'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to
    14.5.99. (in target 'Flutter' from project 'Pods')

Encountered error while building for device.
わかなおわかなお

何をやっても解決できなかったので、新しいプロジェクトを作成しコードを移したところ、実行することができた。

このスクラップは2021/07/26にクローズされました