Subject
I did Flutter run , then I get this error message.
I did loads of analysis. However nobody had the identical signs as me.
I’ve rewritten the podfile, flutter clear, pod replace, and so on., however I nonetheless get the identical error.
Error code
Didn't construct iOS app
Error (Xcode): A number of instructions produce
'{FilePath}/construct/ios/Debug-iphonesimulator/Runner.app/Frameworks/libavcodec.framework'
Error (Xcode): A number of instructions produce
'{FilePath}construct/ios/Debug-iphonesimulator/Runner.app/Frameworks/libswscale.framework'
Podfile
# Uncomment this line to outline a worldwide platform in your challenge
platform :ios, '13.0'
# CocoaPods analytics sends community stats synchronously affecting flutter construct latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
challenge 'Runner', {
'Debug' => :debug,
'Profile' => :launch,
'Launch' => :launch,
}
def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.be part of('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
until File.exist?(generated_xcode_build_settings_path)
increase "#{generated_xcode_build_settings_path} should exist. When you're operating pod set up manually, ensure flutter pub get is executed first"
finish
File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT=(.*)/)
return matches[1].strip if matches
finish
increase "FLUTTER_ROOT not present in #{generated_xcode_build_settings_path}. Attempt deleting Generated.xcconfig, then run flutter pub get"
finish
require File.expand_path(File.be part of('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
flutter_ios_podfile_setup
goal 'Runner' do
use_frameworks!
use_modular_headers!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
finish
post_install do |installer|
installer.generated_projects.every do |challenge|
challenge.targets.every do |goal|
goal.build_configurations.every do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
finish
finish
finish
installer.pods_project.targets.every do |goal|
flutter_additional_ios_build_settings(goal)
finish
finish
pubspec.yaml
identify: x
description: A brand new Flutter challenge.
publish_to: "none" # Take away this line when you want to publish to pub.dev
model: 1.0.0+1
setting:
sdk: ">=2.19.2 <3.0.0"
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.2
flutter_staggered_grid_view: ^0.7.0
font_awesome_flutter: ^10.4.0
jiffy: ^6.1.0
carousel_slider: ^4.2.1
image_picker: ^1.0.1
path_provider: ^2.0.14
document_scanner_flutter: ^0.2.7
permission_handler: ^11.3.1
image_gallery_saver: ^2.0.3
ffmpeg_kit_flutter: ^6.0.3
fluttertoast: ^8.2.1
supplier: ^6.0.5
media_scanner: ^2.1.0
share_plus: ^9.0.0
sqflite: ^2.2.6
flutter_launcher_icons: ^0.13.0
package_info_plus: ^8.0.0
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^4.0.0
flutter:
uses-material-design: true
property:
- photographs/
What I attempted that (did not work)
I’ve not tried most of the measures as a result of I couldn’t discover any info on them in my analysis.
Sorry
- flutter clear
- cd ios && rm -rf podfile.lock , pod set up
- add Xcode Framework