Closed Omar-Salem closed 1 year ago
@Omar-Salem your platform and IPHONEOS_DEPLOYMENT_TARGET must be the same 12.0
also Have you tried to archive using xcode instead of use flutter build ipa
?
@darwin-morocho Yup setting IPHONEOS_DEPLOYMENT_TARGET to 12.0 fixed it. and it was working on xcode before
i am getting this issue in my mac m1 chip laptop still finding all solutions from internet but did'nt work for me please help ???
What version are you using?
4.3.4+2
What OS and version are you using to local deploy your application?
macOs Monterey (version 12.4)
What platforms are you seeing the problem on?
iOS
Describe the Bug
when running
flutter build ipa
, It throws Swift Compiler Error (Xcode): No such module 'FBSDKLoginKit'I ran
flutter clean && flutter pub cache repair && flutter pub get && cd ios && rm -f Podfile.lock && pod repo update && pod update && pod install
, same resultNote, issue doesnt happen with version 3.5.7
Expected Behavior
No errors should be thrown
To Reproduce
Use version 4.3.4+2 Run
flutter build ipa
Relevant log output
No response
flutter doctor -v
Info.plist (iOS)
Podfile (iOS)
Uncomment this line to define a global platform for your project
platform :ios, '11.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) target.build_configurations.each do |config| config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0' end end end
AndroidManifest.xml
No response
MainActivity.java
No response
MainActivity.kt
No response
index.html
No response
Info.plist (macOS)
No response