I’m integrating Firebase Crashlytics into my Flutter venture utilizing the FlutterFire CLI. Throughout this course of, I encountered two main points:
-
Pod Set up Warning:
After I runpod set up
within theios
listing, I see the next warning:Undertaking at /Customers/hazratbilal/Paperwork/HHD/Runner.xcodeproj doesn't exist. Please test paths or incorporate Crashlytics add symbols manually.
The
Runner.xcodeproj
file certainly doesn’t exist in that path. My precise path toRunner.xcodeproj
is:/Customers/hazratbilal/Paperwork/HHD softwares/scribemedix-app/ios/Runner.xcodeproj
How can I repair this path problem in order that
pod set up
acknowledges the proper location?
enter picture description right here -
Xcode Construct Error:
After I run the app, I get the next error in Xcode:Undefined symbols: Linker command failed with exit code 1 (use -v to see invocation)
This happens after I added Firebase Crashlytics to the venture.
enter picture description right here
Steps I Have Taken:
Surroundings:
- Flutter model:
flutter --version
- Firebase Crashlytics model: (from Podfile.lock, e.g.,
10.6.0
) - macOS model:
uname -a
My Questions:
- How do I configure
pod set up
to acknowledge the properRunner.xcodeproj
path? - What causes the
Undefined symbols
error in Xcode after including Firebase Crashlytics, and the way can I resolve it? - Do I must manually add symbols, or is that this dealt with by the Crashlytics script added by the FlutterFire CLI?
Further Info:
Right here’s my full Podfile for reference:
platform :ios, '13.0'
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
venture 'Runner.xcodeproj', {
'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__)
except File.exist?(generated_xcode_build_settings_path)
elevate "#{generated_xcode_build_settings_path} should exist. In case you're working pod set up manually, make sure that 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
elevate "FLUTTER_ROOT not present in #{generated_xcode_build_settings_path}. Strive 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__))
pod 'Firebase/Core'
pod 'Firebase/Crashlytics'
pod 'Firebase/Analytics'
goal 'RunnerTests' do
inherit! :search_paths
finish
finish
post_install do |installer|
installer.pods_project.targets.every do |goal|
flutter_additional_ios_build_settings(goal)
finish
finish
I’d tremendously admire any assist in resolving these points. Thanks prematurely!