Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not build the application for the simulator #90504

Closed
jeffaknine opened this issue Sep 22, 2021 · 8 comments
Closed

Could not build the application for the simulator #90504

jeffaknine opened this issue Sep 22, 2021 · 8 comments
Labels
r: invalid Issue is closed as not valid

Comments

@jeffaknine
Copy link

jeffaknine commented Sep 22, 2021

Hi,
I am using latest flutter 2.5.1
after upgrading to latest flutter i cannot run application via VSCode or the terminal on iOS simulator (it runs perfectly from XCode).
I've tried to clean and delete podfile pods etc.
It looks like the same issue as #90382
Here are the log files using
flutter run -v > logs.txt
logs.txt

Here are my podfile

podfile
# 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__))
  pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '8.6.0'
  
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
    target.build_configurations.each do |config|
      #  Preprocessor definitions can be found in: https://github.com/Baseflow/flutter-permission-handler/blob/master/permission_handler/ios/Classes/PermissionHandlerEnums.h
      config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
        '$(inherited)',

        ## dart: PermissionGroup.calendar
        # 'PERMISSION_EVENTS=1',

        ## dart: PermissionGroup.reminders
        # 'PERMISSION_REMINDERS=1',

        ## dart: PermissionGroup.contacts
        # 'PERMISSION_CONTACTS=1',

        ## dart: PermissionGroup.camera
        'PERMISSION_CAMERA=1',

        ## dart: PermissionGroup.microphone
        'PERMISSION_MICROPHONE=1',

        ## dart: PermissionGroup.speech
        # 'PERMISSION_SPEECH_RECOGNIZER=1',

        ## dart: PermissionGroup.photos
        'PERMISSION_PHOTOS=1',

        ## dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse]
        # 'PERMISSION_LOCATION=1',
       
        ## dart: PermissionGroup.notification
        # 'PERMISSION_NOTIFICATIONS=1',

        ## dart: PermissionGroup.mediaLibrary
        # 'PERMISSION_MEDIA_LIBRARY=1',

        ## dart: PermissionGroup.sensors
        # 'PERMISSION_SENSORS=1',   
        
        ## dart: PermissionGroup.bluetooth
        # 'PERMISSION_BLUETOOTH=1',

        ## dart: PermissionGroup.appTrackingTransparency
        # 'PERMISSION_APP_TRACKING_TRANSPARENCY=1',

        ## dart: PermissionGroup.criticalAlerts
        # 'PERMISSION_CRITICAL_ALERTS=1'
      ]
    end
  end
end

podfile.lock

podfile.lock
PODS:
  - add_2_calendar (0.0.1):
    - Flutter
  - audioplayers (0.0.1):
    - Flutter
  - BSGridCollectionViewLayout (1.2.5)
  - BSImagePicker (2.10.3):
    - BSGridCollectionViewLayout (= 1.2.5)
    - BSImageView (= 1.0.3)
  - BSImageView (1.0.3)
  - connectivity_plus (0.0.1):
    - Flutter
    - Reachability
  - DKImagePickerController/Core (4.3.2):
    - DKImagePickerController/ImageDataManager
    - DKImagePickerController/Resource
  - DKImagePickerController/ImageDataManager (4.3.2)
  - DKImagePickerController/PhotoGallery (4.3.2):
    - DKImagePickerController/Core
    - DKPhotoGallery
  - DKImagePickerController/Resource (4.3.2)
  - DKPhotoGallery (0.0.17):
    - DKPhotoGallery/Core (= 0.0.17)
    - DKPhotoGallery/Model (= 0.0.17)
    - DKPhotoGallery/Preview (= 0.0.17)
    - DKPhotoGallery/Resource (= 0.0.17)
    - SDWebImage
    - SwiftyGif
  - DKPhotoGallery/Core (0.0.17):
    - DKPhotoGallery/Model
    - DKPhotoGallery/Preview
    - SDWebImage
    - SwiftyGif
  - DKPhotoGallery/Model (0.0.17):
    - SDWebImage
    - SwiftyGif
  - DKPhotoGallery/Preview (0.0.17):
    - DKPhotoGallery/Model
    - DKPhotoGallery/Resource
    - SDWebImage
    - SwiftyGif
  - DKPhotoGallery/Resource (0.0.17):
    - SDWebImage
    - SwiftyGif
  - file_picker (0.0.1):
    - DKImagePickerController/PhotoGallery
    - Flutter
  - Firebase/Analytics (8.6.0):
    - Firebase/Core
  - Firebase/Auth (8.6.0):
    - Firebase/CoreOnly
    - FirebaseAuth (~> 8.6.0)
  - Firebase/Core (8.6.0):
    - Firebase/CoreOnly
    - FirebaseAnalytics (~> 8.6.0)
  - Firebase/CoreOnly (8.6.0):
    - FirebaseCore (= 8.6.0)
  - Firebase/Crashlytics (8.6.0):
    - Firebase/CoreOnly
    - FirebaseCrashlytics (~> 8.6.0)
  - Firebase/Messaging (8.6.0):
    - Firebase/CoreOnly
    - FirebaseMessaging (~> 8.6.0)
  - firebase_analytics (8.3.2):
    - Firebase/Analytics (= 8.6.0)
    - firebase_core
    - Flutter
  - firebase_auth (3.1.1):
    - Firebase/Auth (= 8.6.0)
    - firebase_core
    - Flutter
  - firebase_core (1.6.0):
    - Firebase/CoreOnly (= 8.6.0)
    - Flutter
  - firebase_crashlytics (2.2.1):
    - Firebase/Crashlytics (= 8.6.0)
    - firebase_core
    - Flutter
  - firebase_messaging (10.0.7):
    - Firebase/Messaging (= 8.6.0)
    - firebase_core
    - Flutter
  - FirebaseAnalytics (8.6.0):
    - FirebaseAnalytics/AdIdSupport (= 8.6.0)
    - FirebaseCore (~> 8.0)
    - FirebaseInstallations (~> 8.0)
    - GoogleUtilities/AppDelegateSwizzler (~> 7.4)
    - GoogleUtilities/MethodSwizzler (~> 7.4)
    - GoogleUtilities/Network (~> 7.4)
    - "GoogleUtilities/NSData+zlib (~> 7.4)"
    - nanopb (~> 2.30908.0)
  - FirebaseAnalytics/AdIdSupport (8.6.0):
    - FirebaseCore (~> 8.0)
    - FirebaseInstallations (~> 8.0)
    - GoogleAppMeasurement (= 8.6.0)
    - GoogleUtilities/AppDelegateSwizzler (~> 7.4)
    - GoogleUtilities/MethodSwizzler (~> 7.4)
    - GoogleUtilities/Network (~> 7.4)
    - "GoogleUtilities/NSData+zlib (~> 7.4)"
    - nanopb (~> 2.30908.0)
  - FirebaseAuth (8.6.0):
    - FirebaseCore (~> 8.0)
    - GoogleUtilities/AppDelegateSwizzler (~> 7.4)
    - GoogleUtilities/Environment (~> 7.4)
    - GTMSessionFetcher/Core (~> 1.5)
  - FirebaseCore (8.6.0):
    - FirebaseCoreDiagnostics (~> 8.0)
    - GoogleUtilities/Environment (~> 7.4)
    - GoogleUtilities/Logger (~> 7.4)
  - FirebaseCoreDiagnostics (8.7.0):
    - GoogleDataTransport (~> 9.0)
    - GoogleUtilities/Environment (~> 7.4)
    - GoogleUtilities/Logger (~> 7.4)
    - nanopb (~> 2.30908.0)
  - FirebaseCrashlytics (8.6.0):
    - FirebaseCore (~> 8.0)
    - FirebaseInstallations (~> 8.0)
    - GoogleDataTransport (~> 9.0)
    - GoogleUtilities/Environment (~> 7.4)
    - nanopb (~> 2.30908.0)
    - PromisesObjC (< 3.0, >= 1.2)
  - FirebaseFirestore (8.6.0):
    - FirebaseFirestore/AutodetectLeveldb (= 8.6.0)
  - FirebaseFirestore/AutodetectLeveldb (8.6.0):
    - FirebaseFirestore/Base
    - FirebaseFirestore/WithLeveldb
  - FirebaseFirestore/Base (8.6.0)
  - FirebaseFirestore/WithLeveldb (8.6.0):
    - FirebaseFirestore/Base
  - FirebaseInstallations (8.7.0):
    - FirebaseCore (~> 8.0)
    - GoogleUtilities/Environment (~> 7.4)
    - GoogleUtilities/UserDefaults (~> 7.4)
    - PromisesObjC (< 3.0, >= 1.2)
  - FirebaseMessaging (8.6.0):
    - FirebaseCore (~> 8.0)
    - FirebaseInstallations (~> 8.0)
    - GoogleDataTransport (~> 9.0)
    - GoogleUtilities/AppDelegateSwizzler (~> 7.4)
    - GoogleUtilities/Environment (~> 7.4)
    - GoogleUtilities/Reachability (~> 7.4)
    - GoogleUtilities/UserDefaults (~> 7.4)
    - nanopb (~> 2.30908.0)
  - Flutter (1.0.0)
  - flutter_app_badger (0.0.1):
    - Flutter
  - flutter_image_compress (0.0.1):
    - Flutter
    - Mantle
    - SDWebImage
    - SDWebImageWebPCoder
  - flutter_inappwebview (0.0.1):
    - Flutter
    - flutter_inappwebview/Core (= 0.0.1)
    - OrderedSet (~> 5.0)
  - flutter_inappwebview/Core (0.0.1):
    - Flutter
    - OrderedSet (~> 5.0)
  - flutter_keyboard_visibility (0.0.1):
    - Flutter
  - flutter_ringtone_player (0.0.1):
    - Flutter
  - flutter_sound (8.3.12):
    - Flutter
    - mobile-ffmpeg-audio (= 4.4.LTS)
    - tau_core (= 8.3.12)
  - FMDB (2.7.5):
    - FMDB/standard (= 2.7.5)
  - FMDB/standard (2.7.5)
  - gallery_saver (0.0.1):
    - Flutter
  - GoogleAppMeasurement (8.6.0):
    - GoogleAppMeasurement/AdIdSupport (= 8.6.0)
    - GoogleUtilities/AppDelegateSwizzler (~> 7.4)
    - GoogleUtilities/MethodSwizzler (~> 7.4)
    - GoogleUtilities/Network (~> 7.4)
    - "GoogleUtilities/NSData+zlib (~> 7.4)"
    - nanopb (~> 2.30908.0)
  - GoogleAppMeasurement/AdIdSupport (8.6.0):
    - GoogleUtilities/AppDelegateSwizzler (~> 7.4)
    - GoogleUtilities/MethodSwizzler (~> 7.4)
    - GoogleUtilities/Network (~> 7.4)
    - "GoogleUtilities/NSData+zlib (~> 7.4)"
    - nanopb (~> 2.30908.0)
  - GoogleDataTransport (9.1.0):
    - GoogleUtilities/Environment (~> 7.2)
    - nanopb (~> 2.30908.0)
    - PromisesObjC (< 3.0, >= 1.2)
  - GoogleUtilities/AppDelegateSwizzler (7.5.2):
    - GoogleUtilities/Environment
    - GoogleUtilities/Logger
    - GoogleUtilities/Network
  - GoogleUtilities/Environment (7.5.2):
    - PromisesObjC (< 3.0, >= 1.2)
  - GoogleUtilities/Logger (7.5.2):
    - GoogleUtilities/Environment
  - GoogleUtilities/MethodSwizzler (7.5.2):
    - GoogleUtilities/Logger
  - GoogleUtilities/Network (7.5.2):
    - GoogleUtilities/Logger
    - "GoogleUtilities/NSData+zlib"
    - GoogleUtilities/Reachability
  - "GoogleUtilities/NSData+zlib (7.5.2)"
  - GoogleUtilities/Reachability (7.5.2):
    - GoogleUtilities/Logger
  - GoogleUtilities/UserDefaults (7.5.2):
    - GoogleUtilities/Logger
  - GTMSessionFetcher/Core (1.7.0)
  - image_cropper (0.0.4):
    - Flutter
    - TOCropViewController (~> 2.6.0)
  - image_picker (0.0.1):
    - Flutter
  - libwebp (1.2.0):
    - libwebp/demux (= 1.2.0)
    - libwebp/mux (= 1.2.0)
    - libwebp/webp (= 1.2.0)
  - libwebp/demux (1.2.0):
    - libwebp/webp
  - libwebp/mux (1.2.0):
    - libwebp/demux
  - libwebp/webp (1.2.0)
  - Mantle (2.1.6):
    - Mantle/extobjc (= 2.1.6)
  - Mantle/extobjc (2.1.6)
  - mobile-ffmpeg-audio (4.4.LTS)
  - multi_image_picker (4.8.00):
    - BSImagePicker (~> 2.10.3)
    - Flutter
  - nanopb (2.30908.0):
    - nanopb/decode (= 2.30908.0)
    - nanopb/encode (= 2.30908.0)
  - nanopb/decode (2.30908.0)
  - nanopb/encode (2.30908.0)
  - open_file (0.0.1):
    - Flutter
  - OrderedSet (5.0.0)
  - package_info_plus (0.4.5):
    - Flutter
  - path_provider (0.0.1):
    - Flutter
  - "permission_handler (5.1.0+2)":
    - Flutter
  - printing (1.0.0):
    - Flutter
  - PromisesObjC (2.0.0)
  - Reachability (3.2)
  - SDWebImage (5.11.1):
    - SDWebImage/Core (= 5.11.1)
  - SDWebImage/Core (5.11.1)
  - SDWebImageWebPCoder (0.8.4):
    - libwebp (~> 1.0)
    - SDWebImage/Core (~> 5.10)
  - shared_preferences (0.0.1):
    - Flutter
  - sqflite (0.0.2):
    - Flutter
    - FMDB (>= 2.7.5)
  - SwiftyGif (5.4.0)
  - tau_core (8.3.12)
  - TOCropViewController (2.6.0)
  - url_launcher (0.0.1):
    - Flutter
  - vibration (1.7.4-nullsafety.0):
    - Flutter
  - video_compress (0.3.0):
    - Flutter
  - video_player (0.0.1):
    - Flutter
  - wakelock (0.0.1):
    - Flutter
  - webview_flutter (0.0.1):
    - Flutter

DEPENDENCIES:
  - add_2_calendar (from `.symlinks/plugins/add_2_calendar/ios`)
  - audioplayers (from `.symlinks/plugins/audioplayers/ios`)
  - connectivity_plus (from `.symlinks/plugins/connectivity_plus/ios`)
  - file_picker (from `.symlinks/plugins/file_picker/ios`)
  - firebase_analytics (from `.symlinks/plugins/firebase_analytics/ios`)
  - firebase_auth (from `.symlinks/plugins/firebase_auth/ios`)
  - firebase_core (from `.symlinks/plugins/firebase_core/ios`)
  - firebase_crashlytics (from `.symlinks/plugins/firebase_crashlytics/ios`)
  - firebase_messaging (from `.symlinks/plugins/firebase_messaging/ios`)
  - FirebaseFirestore (from `https://github.com/invertase/firestore-ios-sdk-frameworks.git`, tag `8.6.0`)
  - Flutter (from `Flutter`)
  - flutter_app_badger (from `.symlinks/plugins/flutter_app_badger/ios`)
  - flutter_image_compress (from `.symlinks/plugins/flutter_image_compress/ios`)
  - flutter_inappwebview (from `.symlinks/plugins/flutter_inappwebview/ios`)
  - flutter_keyboard_visibility (from `.symlinks/plugins/flutter_keyboard_visibility/ios`)
  - flutter_ringtone_player (from `.symlinks/plugins/flutter_ringtone_player/ios`)
  - flutter_sound (from `.symlinks/plugins/flutter_sound/ios`)
  - gallery_saver (from `.symlinks/plugins/gallery_saver/ios`)
  - image_cropper (from `.symlinks/plugins/image_cropper/ios`)
  - image_picker (from `.symlinks/plugins/image_picker/ios`)
  - multi_image_picker (from `.symlinks/plugins/multi_image_picker/ios`)
  - open_file (from `.symlinks/plugins/open_file/ios`)
  - package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)
  - path_provider (from `.symlinks/plugins/path_provider/ios`)
  - permission_handler (from `.symlinks/plugins/permission_handler/ios`)
  - printing (from `.symlinks/plugins/printing/ios`)
  - shared_preferences (from `.symlinks/plugins/shared_preferences/ios`)
  - sqflite (from `.symlinks/plugins/sqflite/ios`)
  - url_launcher (from `.symlinks/plugins/url_launcher/ios`)
  - vibration (from `.symlinks/plugins/vibration/ios`)
  - video_compress (from `.symlinks/plugins/video_compress/ios`)
  - video_player (from `.symlinks/plugins/video_player/ios`)
  - wakelock (from `.symlinks/plugins/wakelock/ios`)
  - webview_flutter (from `.symlinks/plugins/webview_flutter/ios`)

SPEC REPOS:
  trunk:
    - BSGridCollectionViewLayout
    - BSImagePicker
    - BSImageView
    - DKImagePickerController
    - DKPhotoGallery
    - Firebase
    - FirebaseAnalytics
    - FirebaseAuth
    - FirebaseCore
    - FirebaseCoreDiagnostics
    - FirebaseCrashlytics
    - FirebaseInstallations
    - FirebaseMessaging
    - FMDB
    - GoogleAppMeasurement
    - GoogleDataTransport
    - GoogleUtilities
    - GTMSessionFetcher
    - libwebp
    - Mantle
    - mobile-ffmpeg-audio
    - nanopb
    - OrderedSet
    - PromisesObjC
    - Reachability
    - SDWebImage
    - SDWebImageWebPCoder
    - SwiftyGif
    - tau_core
    - TOCropViewController

EXTERNAL SOURCES:
  add_2_calendar:
    :path: ".symlinks/plugins/add_2_calendar/ios"
  audioplayers:
    :path: ".symlinks/plugins/audioplayers/ios"
  connectivity_plus:
    :path: ".symlinks/plugins/connectivity_plus/ios"
  file_picker:
    :path: ".symlinks/plugins/file_picker/ios"
  firebase_analytics:
    :path: ".symlinks/plugins/firebase_analytics/ios"
  firebase_auth:
    :path: ".symlinks/plugins/firebase_auth/ios"
  firebase_core:
    :path: ".symlinks/plugins/firebase_core/ios"
  firebase_crashlytics:
    :path: ".symlinks/plugins/firebase_crashlytics/ios"
  firebase_messaging:
    :path: ".symlinks/plugins/firebase_messaging/ios"
  FirebaseFirestore:
    :git: https://github.com/invertase/firestore-ios-sdk-frameworks.git
    :tag: 8.6.0
  Flutter:
    :path: Flutter
  flutter_app_badger:
    :path: ".symlinks/plugins/flutter_app_badger/ios"
  flutter_image_compress:
    :path: ".symlinks/plugins/flutter_image_compress/ios"
  flutter_inappwebview:
    :path: ".symlinks/plugins/flutter_inappwebview/ios"
  flutter_keyboard_visibility:
    :path: ".symlinks/plugins/flutter_keyboard_visibility/ios"
  flutter_ringtone_player:
    :path: ".symlinks/plugins/flutter_ringtone_player/ios"
  flutter_sound:
    :path: ".symlinks/plugins/flutter_sound/ios"
  gallery_saver:
    :path: ".symlinks/plugins/gallery_saver/ios"
  image_cropper:
    :path: ".symlinks/plugins/image_cropper/ios"
  image_picker:
    :path: ".symlinks/plugins/image_picker/ios"
  multi_image_picker:
    :path: ".symlinks/plugins/multi_image_picker/ios"
  open_file:
    :path: ".symlinks/plugins/open_file/ios"
  package_info_plus:
    :path: ".symlinks/plugins/package_info_plus/ios"
  path_provider:
    :path: ".symlinks/plugins/path_provider/ios"
  permission_handler:
    :path: ".symlinks/plugins/permission_handler/ios"
  printing:
    :path: ".symlinks/plugins/printing/ios"
  shared_preferences:
    :path: ".symlinks/plugins/shared_preferences/ios"
  sqflite:
    :path: ".symlinks/plugins/sqflite/ios"
  url_launcher:
    :path: ".symlinks/plugins/url_launcher/ios"
  vibration:
    :path: ".symlinks/plugins/vibration/ios"
  video_compress:
    :path: ".symlinks/plugins/video_compress/ios"
  video_player:
    :path: ".symlinks/plugins/video_player/ios"
  wakelock:
    :path: ".symlinks/plugins/wakelock/ios"
  webview_flutter:
    :path: ".symlinks/plugins/webview_flutter/ios"

CHECKOUT OPTIONS:
  FirebaseFirestore:
    :git: https://github.com/invertase/firestore-ios-sdk-frameworks.git
    :tag: 8.6.0

SPEC CHECKSUMS:
  add_2_calendar: e9d68636aed37fb18e12f5a3d74c2e0589487af0
  audioplayers: 455322b54050b30ea4b1af7cd9e9d105f74efa8c
  BSGridCollectionViewLayout: 333dcb457a5a3bdd9212607ab5756553dcfe06cb
  BSImagePicker: 07404254f2fcdaf5a2eb403c0f8c337267ce8738
  BSImageView: a149459433a2687157d034c78e059d30ac7f2544
  connectivity_plus: 5f0eb61093bec56935f21a1699dd2758bc895587
  DKImagePickerController: b5eb7f7a388e4643264105d648d01f727110fc3d
  DKPhotoGallery: fdfad5125a9fdda9cc57df834d49df790dbb4179
  file_picker: 3e6c3790de664ccf9b882732d9db5eaf6b8d4eb1
  Firebase: 21ac9f28b09a8bdfc005f34c984fca84e7e8786d
  firebase_analytics: 039357074df292fb8a58e119206762d10483a8ec
  firebase_auth: a5da789c2876fda3ad7407bd2828e502dfeebc42
  firebase_core: c21ac09a8d23afd3594b56ed786bad12e5266bba
  firebase_crashlytics: b0581024be6112af8821de61e5a37fdb292373f0
  firebase_messaging: 0fddeca6fcfee0bed23c66210391d782af8f8d0e
  FirebaseAnalytics: 8f32ae54ad42754f503354782575c4ddfc1425c3
  FirebaseAuth: 223adeeb2262b417532e89bf06a960e3a0a1e9e4
  FirebaseCore: 620b677f70f5470a8e59cb77f3ddc666f6f09785
  FirebaseCoreDiagnostics: b63732f581a1c6a453ec7241f9ab60b3a5bd3450
  FirebaseCrashlytics: 58f8ecea7c799c61c50e8111d2e438424a8a1d2e
  FirebaseFirestore: 113b2724b363d79c98c965f43e8af970745c13f3
  FirebaseInstallations: ede6fb72bb6337914e5888b399271259d0c4910c
  FirebaseMessaging: ce0a5ee974f7bfe83b6cc5acce88c2d969e37c41
  Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
  flutter_app_badger: 65de4d6f0c34a891df49e6cfb8a1c0496426fa68
  flutter_image_compress: fd2b476345226e1a10ea352fa306af95704642c1
  flutter_inappwebview: bfd58618f49dc62f2676de690fc6dcda1d6c3721
  flutter_keyboard_visibility: 0339d06371254c3eb25eeb90ba8d17dca8f9c069
  flutter_ringtone_player: 15eba85187230b87b2512f0e1b92225618bc03e7
  flutter_sound: 49d06bd22a3eddb54af3cf22db63fcbf1c641d52
  FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
  gallery_saver: 9fc173c9f4fcc48af53b2a9ebea1b643255be542
  GoogleAppMeasurement: 2c0c6e2a7ab3fe730ade6379f732bdefb46f50b0
  GoogleDataTransport: 85fd18ff3019bb85d3f2c551d04c481dedf71fc9
  GoogleUtilities: 8de2a97a17e15b6b98e38e8770e2d129a57c0040
  GTMSessionFetcher: 43748f93435c2aa068b1cbe39655aaf600652e91
  image_cropper: f1668dd8d2cad2d357955caad15a40547856edcb
  image_picker: 9aa50e1d8cdacdbed739e925b7eea16d014367e6
  libwebp: e90b9c01d99205d03b6bb8f2c8c415e5a4ef66f0
  Mantle: 4c0ed6ce47c96eccc4dc3bb071deb3def0e2c3be
  mobile-ffmpeg-audio: 1e0a053f8a6de57114e50ff48b3a85ff1c60f902
  multi_image_picker: 443e776a762d7901641854043b60abf88a85d5ef
  nanopb: a0ba3315591a9ae0a16a309ee504766e90db0c96
  open_file: 02eb5cb6b21264bd3a696876f5afbfb7ca4f4b7d
  OrderedSet: aaeb196f7fef5a9edf55d89760da9176ad40b93c
  package_info_plus: 6c92f08e1f853dc01228d6f553146438dafcd14e
  path_provider: d1e9807085df1f9cc9318206cd649dc0b76be3de
  permission_handler: ccb20a9fad0ee9b1314a52b70b76b473c5f8dab0
  printing: eafa00acb682c0ca029d4d98d0798f55a1e27102
  PromisesObjC: 68159ce6952d93e17b2dfe273b8c40907db5ba58
  Reachability: 33e18b67625424e47b6cde6d202dce689ad7af96
  SDWebImage: a7f831e1a65eb5e285e3fb046a23fcfbf08e696d
  SDWebImageWebPCoder: f93010f3f6c031e2f8fb3081ca4ee6966c539815
  shared_preferences: 5033afbb22d372e15aff8ff766df9021b845f273
  sqflite: 6d358c025f5b867b29ed92fc697fd34924e11904
  SwiftyGif: 5d4af95df24caf1c570dbbcb32a3b8a0763bc6d7
  tau_core: 4b7be325f37983d3c74e1692d70e41e12b24d9be
  TOCropViewController: 3105367e808b7d3d886a74ff59bf4804e7d3ab38
  url_launcher: b6e016d912f04be9f5bf6e8e82dc599b7ba59649
  vibration: 1ec279c4a1a7a646627b54039d812334b3f1114a
  video_compress: fce97e4fb1dfd88175aa07d2ffc8a2f297f87fbe
  video_player: ecd305f42e9044793efd34846e1ce64c31ea6fcb
  wakelock: d0fc7c864128eac40eba1617cb5264d9c940b46f
  webview_flutter: 5fb4def2bbd4339889ee14d045b605cefc5bc232

PODFILE CHECKSUM: 78e0c67a94cbac40f07d6bb4e12bc043a61d438a

COCOAPODS: 1.11.2

pubsec.yaml

pubspec.yaml
name: horsiz
description: A new Flutter project.

# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.1.9+204
publish_to: none

environment:
  sdk: ">=2.7.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  flutter_localizations:
    sdk: flutter
  add_2_calendar: ^2.1.0 # only ios/android
  audioplayers: ^0.20.0
  badges: ^2.0.1
  cached_network_image: ^3.1.0
  chewie: ^1.0.0 # only ios/android/web
  collection: ^1.15.0
  crypto: ^3.0.1
  cupertino_icons: ^1.0.2
  darq: ^1.1.1
  dospace:
    git:
      url: https://github.com/jeffaknine/dospace
      ref: master
  firebase_core: ^1.2.0
  firebase_auth: ^3.1.0
  firebase_analytics: ^8.0.2
  firebase_crashlytics: ^2.2.1
  firebase_messaging: ^10.0.0
  flutter_html: ^2.1.1
  flutter_linkify: ^5.0.2
  file_picker: ^4.0.2 # ios/android/web
  flutter_app_badger: ^1.1.2 # ios/android
  flutter_image_compress: ^1.0.0 # ios/android -- can be replaced
  flutter_ringtone_player: ^3.0.0 # ios/android -- can be replaced
  flutter_sound: ^8.1.1 # ios/android/web
  flutter_slidable: ^0.6.0
  flutter_svg: ^0.22.0
  flutter_spinkit: ^5.1.0
  flutter_quill: ^2.0.2 # ios/android/web
  video_compress: ^3.0.0 # ios/android/macos
  gallery_saver: ^2.1.0 # ios/android
  graphql: ^5.0.0
  graphql_flutter: ^5.0.0
  html_unescape: ^2.0.0
  image_cropper: ^1.4.0 # ios/android -- can be replaced with https://pub.dev/packages/crop
  image_picker: ^0.8.3+2 # ios/android/web
  intl: ^0.17.0
  json_serializable: ^5.0.0
  multi_image_picker: ^4.8.0 # to replace with wechat_assets_picker ios/android/macos
  open_file: ^3.2.0 # ios/android
  package_info_plus: ^1.0.4
  path_provider: ^2.0.1
  pdf: ^3.3.0
  percent_indicator: ^3.0.1
  permission_handler: ^8.1.6 # ios/android
  photo_view: ^0.12.0
  printing: ^5.2.1
  provider: ^6.0.0
  pull_to_reveal: ^0.0.3-nullsafety.0
  shared_preferences: ^2.0.5
  shimmer: ^2.0.0
  timeago: ^3.0.2
  universal_html: ^2.0.8
  url_launcher: ^6.0.3
  uuid: ^3.0.1
  vibration: ^1.7.4-nullsafety.0 #ios/android/web
  video_player: ^2.1.1 #ios/android/web
  webview_flutter: ^2.0.4 #ios/android
dependency_overrides:
  wakelock: 0.5.3+3
dev_dependencies:
  flutter_test:
    sdk: flutter
  flutter_launcher_icons: ^0.9.0
  json_annotation: ^4.0.0
  build_runner: ^2.0.3

flutter_icons:
  android: true
  ios: true
  image_path: "assets/icon/icon.png"

# For information on the generic Dart part of this file, see the
# following page: https://www.dartlang.org/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:
  # The following line ensures that the Material Icons font is
  # included with your application, so that you can use the icons in
  # the material Icons class.
  uses-material-design: true
  # To add assets to your application, add an assets section, like this:
  assets:
    - assets/
    - assets/icon/
    - assets/parcours/
    - fonts/
  # An image asset can refer to one or more resolution-specific "variants", see
  # https://flutter.dev/assets-and-images/#resolution-aware.
  # For details regarding adding assets from package dependencies, see
  # https://flutter.dev/assets-and-images/#from-packages
  # To add custom fonts to your application, add a fonts section here,
  # in this "flutter" section. Each entry in this list should have a
  # "family" key with the font family name, and a "fonts" key with a
  # list giving the asset and other descriptors for the font. For
  # example:
  fonts:
    - family: HorseyAppIcons
      fonts:
        - asset: fonts/HorseyAppIcons.ttf
    - family: SourceSansPro
      fonts:
        - asset: fonts/SourceSansPro-Black.ttf
        - asset: fonts/SourceSansPro-BlackItalic.ttf
        - asset: fonts/SourceSansPro-Bold.ttf
        - asset: fonts/SourceSansPro-BoldItalic.ttf
        - asset: fonts/SourceSansPro-SemiBold.ttf
        - asset: fonts/SourceSansPro-SemiBoldItalic.ttf
        - asset: fonts/SourceSansPro-Italic.ttf
        - asset: fonts/SourceSansPro-Light.ttf
        - asset: fonts/SourceSansPro-LightItalic.ttf
        - asset: fonts/SourceSansPro-ExtraLight.ttf
        - asset: fonts/SourceSansPro-ExtraLightItalic.ttf
        - asset: fonts/SourceSansPro-Regular.ttf
  #   - family: Trajan Pro
  #     fonts:
  #       - asset: fonts/TrajanPro.ttf
  #       - asset: fonts/TrajanPro_Bold.ttf
  #         weight: 700
  #
  # For details regarding fonts from package dependencies,
  # see https://flutter.dev/custom-fonts/#from-packages
@CarGuo
Copy link

CarGuo commented Sep 22, 2021

I have the same problem after update Xcode 13, build iOS for simulator fail , but success in real devices

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel unknown, 2.5.1, on macOS 11.6 20G165 darwin-x64, locale
    zh-Hans-CN)
[!] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for
      more details.
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.3.5)
[✓] Connected device (3 available)
  ld: building for iOS Simulator, but linking in dylib built for iOS, file '/Users/xxxxx/.pub-cache/git/xxxxxx-01d03bf549e512f6e15dd539411a8c236d77cd47/ios/Framework/CocoaLumberjack.framework/CocoaLumberjack' for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    note: Using new build system

I fix this issue with

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
    target.build_configurations.each do |config|
        #add this code
        config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64'
    end
  end
end

add config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64' in Podfile

run flutter clean

run pod install in ios/

then run for simulator success

@TahaTesser TahaTesser added the in triage Presently being triaged by the triage team label Sep 22, 2021
@TahaTesser
Copy link
Member

Hi @jeffaknine

ld: in /Users/jeff/Projects/horsiz_app/ios/Pods/mobile-ffmpeg-audio/lame.framework/lame(VbrTag.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/jeff/Projects/horsiz_app/ios/Pods/mobile-ffmpeg-audio/lame.framework/lame' for architecture arm64

There was an issue on simulator for packages, can you please upgrade your packages such as image_picker, video_player, and others and try again

See #87243 & #87242

@TahaTesser TahaTesser added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Sep 22, 2021
@cubegao
Copy link

cubegao commented Sep 23, 2021

same problem.
XCode is work, 'flutter run'or VSCode is not work.

@jeffaknine
Copy link
Author

Hi @jeffaknine

ld: in /Users/jeff/Projects/horsiz_app/ios/Pods/mobile-ffmpeg-audio/lame.framework/lame(VbrTag.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/jeff/Projects/horsiz_app/ios/Pods/mobile-ffmpeg-audio/lame.framework/lame' for architecture arm64

There was an issue on simulator for packages, can you please upgrade your packages such as image_picker, video_player, and others and try again

See #87243 & #87242

I tried updating every package but no luck

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Sep 23, 2021
@TahaTesser
Copy link
Member

Hi @CarGuo
Make sure the app is running with a fresh build, maybe try flutter clean and then run it

If the problem persists
Can you please provide a minimal complete reproducible code sample without third-party packages
Thank you

@TahaTesser TahaTesser added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Sep 23, 2021
@CarGuo
Copy link

CarGuo commented Sep 23, 2021

@TahaTesser thx , add config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64' in Podfile fix my issue

@jmagman
Copy link
Member

jmagman commented Sep 28, 2021

  - flutter_sound (8.3.12):
    - Flutter
    - mobile-ffmpeg-audio (= 4.4.LTS)
    - tau_core (= 8.3.12)

flutter_sound depends on the deprecated mobile-ffmpeg-audio, which has been replaced by https://github.com/tanersener/ffmpeg-kit. mobile-ffmpeg-audio includes frameworks that were not build for the M1 simulator.
Download URL at
mobile-ffmpeg-audio.podspec
is https://github.com/tanersener/mobile-ffmpeg/releases/download/v4.4/mobile-ffmpeg-audio-4.4-ios-xcframework.zip which contains ios-x86_64-simulator (not arm64). However, mobile-ffmpeg-audio doesn't actually declare that it doesn't support the arm64 simulator, so the Flutter tool tries to build for it, and fails.

That's why the suggested workaround works, it's telling Xcode not to build any Pods and Flutter not to build the app for the arm64 simulator.

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['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64'
    end
  end
end

Since mobile-ffmpeg-audio is deprecated they probably won't be willing to publish a new version. Your best bet is to file an issue against flutter_sound at https://github.com/Canardoux/tau/issues/new and ask them to add

s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }

to https://github.com/Canardoux/tau/blob/master/flutter_sound/ios/flutter_sound.podspec
I had to do something similar for google_sign_in flutter/plugins#4208.

For anyone else seeing this, please file a new issue and include your flutter --verbose logs.

Closing--this is a third-party plugin issue.

@jmagman jmagman closed this as completed Sep 28, 2021
@TahaTesser TahaTesser added p: third party r: invalid Issue is closed as not valid and removed waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds in triage Presently being triaged by the triage team labels Sep 29, 2021
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
r: invalid Issue is closed as not valid
Projects
None yet
Development

No branches or pull requests

5 participants