[flutter] ios 8.0 버전이 작동이 되지 않는다 할때, fatal error: 'Flutter/Flutter.h' file not found 해결법
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.4.99. (in target 'AgoraRtcEngine_iOS' from project 'Pods')
error: No profiles for 'com.ryuha.agoraFlutterQuickstart' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.ryuha.agoraFlutterQuickstart'. Automatic signing is disabled and unable to generate
a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'Runner' from project 'Runner')
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.4.99. (in target 'Flutter' from project 'Pods')
Podfile 아래에 이렇게 추가
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
end
end
end
Xcode's output:
↳
In file included from
/Users/WoonseonRyu/developer/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.4/ios/Classes/FLTPathProviderPlugin.m:5:
/Users/WoonseonRyu/developer/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.4/ios/Classes/FLTPathProviderPlugin.h:5:9: fatal
error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
이런 오류가 뜬다면 podfile 마지막에 이렇게 변경
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
config.build_settings['ENABLE_BITCODE'] = 'NO'
end
end
end