flutterfire
flutterfire copied to clipboard
🐛 [Firebase/Messaging] getting Undefined symbol: _OBJC_CLASS_$_FlutterMethodChannel error after adding the library
Bug report
I have added Firebase/Messaging to my flutter iOS project for handling image notification.
Notification is working fine but trying to archive build getting this error

Flutter doctor
Run flutter doctor and paste the output below:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.2.3, on macOS 12.0.1 21A559 darwin-x64, locale
en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] VS Code (version 1.63.2)
[✓] Connected device (4 available)
• No issues found!
@vijay-subramani
Since you are on older version of stable, I recommend to upgrade to latest and then try again to see if it helps.
If not, provide plugin version you are using.
What command are you running to archive the build ? Please add --verbose flag to it and provide the entire log that shows the undefined symbol entries in it and in properly formatted text.
Hey @darshankawar , Thanks for the response! Much appreciated
I'm using xcode for run and archive the build.
here is my plugins version. Please check
Changing current working directory to: /Users/vijay/Documents/Flutter/Projects/sportwalk-mobile
Resolving dependencies...
args 2.3.0
async 2.6.1 (2.8.2 available)
badges 2.0.2
bloc 6.1.3 (8.0.1 available)
boolean_selector 2.1.0
cached_network_image 3.2.0
cached_network_image_platform_interface 1.0.0
cached_network_image_web 1.0.1
characters 1.1.0 (1.2.0 available)
charcode 1.2.0 (1.3.1 available)
clock 1.1.0
collection 1.15.0
connectivity_plus 1.4.0 (2.1.0 available)
connectivity_plus_linux 1.1.0 (1.1.1 available)
connectivity_plus_macos 1.2.1
connectivity_plus_platform_interface 1.1.0 (1.1.1 available)
connectivity_plus_web 1.1.0+1
connectivity_plus_windows 1.2.0
country_code_picker 1.7.0 (2.0.2 available)
crypto 3.0.1
cupertino_icons 1.0.4
dbus 0.5.6 (0.6.6 available)
device_info 2.0.3
device_info_platform_interface 2.0.1
equatable 1.2.6 (2.0.3 available)
expand_tap_area 1.1.0
fake_async 1.2.0
ffi 1.1.2
file 6.1.2
firebase_core 1.10.6
firebase_core_platform_interface 4.2.3
firebase_core_web 1.5.3
firebase_dynamic_links 2.0.11 (4.0.3 available)
firebase_messaging 10.0.9 (11.2.4 available)
firebase_messaging_platform_interface 3.1.4
firebase_messaging_web 2.2.5
flutter 0.0.0 from sdk flutter
flutter_bloc 6.1.3 (8.0.0 available)
flutter_blurhash 0.6.0
flutter_cache_manager 3.3.0
flutter_dotenv 5.0.2
flutter_local_notifications 5.0.0+4 (9.1.5 available)
flutter_local_notifications_platform_interface 3.0.0 (5.0.0 available)
flutter_secure_storage 3.3.5 (5.0.2 available)
flutter_svg 0.22.0 (1.0.0 available)
flutter_test 0.0.0 from sdk flutter
flutter_web_plugins 0.0.0 from sdk flutter
get 4.1.4 (4.6.1 available)
> google_fonts 2.1.1 (was 2.1.0)
gql 0.13.0
gql_dedupe_link 2.0.0
gql_error_link 0.2.0
gql_exec 0.3.0
gql_http_link 0.4.0
gql_link 0.4.0
gql_transform_link 0.2.0
graphql 5.0.0
graphql_flutter 5.0.0
hive 2.0.5
http 0.13.3 (0.13.4 available)
http_parser 4.0.0
infinite_scroll_pagination 3.1.0
js 0.6.3
launch_review 3.0.1
localstorage 4.0.0+1
mailto 2.0.0
matcher 0.12.10 (0.12.11 available)
meta 1.3.0 (1.7.0 available)
mime 0.9.7 (1.0.1 available)
modal_bottom_sheet 1.0.0+1 (2.0.0 available)
nested 1.0.0
nm 0.3.0 (0.4.2 available)
normalize 0.5.5
octo_image 1.0.1
overlay_support 1.2.1
package_info_plus 1.3.0
package_info_plus_linux 1.0.3
package_info_plus_macos 1.3.0
package_info_plus_platform_interface 1.0.2
package_info_plus_web 1.0.4
package_info_plus_windows 1.0.4
path 1.8.0 (1.8.1 available)
path_drawing 0.5.1+1 (1.0.0 available)
path_parsing 0.2.1 (1.0.0 available)
path_provider 2.0.4 (2.0.8 available)
path_provider_linux 2.1.4
path_provider_macos 2.0.4
path_provider_platform_interface 2.0.1
path_provider_windows 2.0.4
pedantic 1.11.1 (discontinued replaced by lints)
petitparser 4.1.0 (4.4.0 available)
platform 3.1.0
plugin_platform_interface 2.0.2
process 4.2.3 (4.2.4 available)
provider 4.3.3 (6.0.1 available)
rxdart 0.26.0 (0.27.3 available)
share 0.6.5+4 (2.0.4 available)
sky_engine 0.0.99 from sdk flutter
sliver_tools 0.2.5
social_embed_webview 0.3.2
source_span 1.8.1
! sqflite 1.3.1+2 (overridden) (2.0.1 available)
sqflite_common 2.0.1+1 (2.1.0 available)
stack_trace 1.10.0
stream_channel 2.1.0
string_scanner 1.1.0
synchronized 3.0.0
term_glyph 1.2.0
test_api 0.3.0 (0.4.9 available)
timezone 0.7.0 (0.8.0 available)
typed_data 1.3.0
uni_links 0.5.1
uni_links_platform_interface 1.0.0
uni_links_web 0.1.0
url_launcher 6.0.10 (6.0.17 available)
url_launcher_linux 2.0.2
url_launcher_macos 2.0.2
url_launcher_platform_interface 2.0.4
url_launcher_web 2.0.5
url_launcher_windows 2.0.2
uuid 3.0.5
vector_math 2.1.0 (2.1.1 available)
video_player 2.2.3 (2.2.9 available)
video_player_platform_interface 4.2.0 (5.0.0 available)
video_player_web 2.0.5
web_socket_channel 2.1.0
webview_flutter 2.0.13 (3.0.0 available)
win32 2.2.10 (2.3.2 available)
xdg_directories 0.2.0
xml 5.1.2 (5.3.1 available)
youtube_parser 2.0.0
Warning: You are using these overridden dependencies:
! sqflite 1.3.1+2 (2.0.1 available)
Downloading google_fonts 2.1.1...
Changed 1 dependency!
44 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.```
When i try to add arm64 in excluded architecture on my extension target it shows different issue. If i revert then again getting undefinedsymbol issue
@vijay-subramani
Do you get the Undefined Symbol error only after adding messaging library ? or without it too ?
If it's after adding the library, try below commands and see if it works:
flutter clean && \ rm -rf ios/Pods \ rm -rf ios/Flutter/Flutter.podspec
If above doesn't help, provide your ios/podfile and the xcode build logs in text format so that's easier to look up, instead of screenshots.
Also, did you upgrade to latest and try ?
Moreover, getting Undefined symbol: _OBJC_CLASS_$_FlutterMethodChannel is very common issue after adding or upgrading plugins, so you can search for the same error messages on Stackoverflow too for solutions.
@darshankawar Yes, i'm getting this error after adding extension(Notification service extension) target to my project. I have tried the command but no use.
Podfile
# Uncomment this line to define a global platform for your project
platform :ios, '10.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'] = '10.0'
end
end
end
target 'ImageNotification' do
use_frameworks!
pod 'Firebase/Messaging'
end
Xcode Logs
Ld /Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Intermediates.noindex/Runner.build/Debug-qa-iphoneos/ImageNotification.build/Objects-normal/armv7/Binary/ImageNotification normal armv7 (in target 'ImageNotification' from project 'Runner')
cd /Users/vijay/Documents/Flutter/Projects/sportwalk-mobile/ios
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target armv7-apple-ios10.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk -L/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/FMDB -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/FirebaseCore -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/FirebaseCoreDiagnostics -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/FirebaseDynamicLinks -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/FirebaseInstallations -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/FirebaseMessaging -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/GoogleDataTransport -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/GoogleUtilities -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/PromisesObjC -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/Reachability -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/connectivity_plus -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/device_info -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/firebase_core -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/firebase_dynamic_links -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/firebase_messaging -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/flutter_local_notifications -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/flutter_secure_storage -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/launch_review -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/nanopb -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/package_info_plus -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/path_provider -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/share -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/sqflite -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/uni_links -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/url_launcher -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/video_player -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/webview_flutter -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/FirebaseCore -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/FirebaseCoreDiagnostics -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/FirebaseInstallations -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/FirebaseMessaging -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/GoogleDataTransport -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/GoogleUtilities -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/PromisesObjC -F/Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/nanopb -filelist /Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Intermediates.noindex/Runner.build/Debug-qa-iphoneos/ImageNotification.build/Objects-normal/armv7/ImageNotification.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/../../Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/../../Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Intermediates.noindex/Runner.build/Debug-qa-iphoneos/ImageNotification.build/Objects-normal/armv7/ImageNotification_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fobjc-arc -fobjc-link-runtime -fapplication-extension -ObjC -lsqlite3 -lz -framework CoreTelephony -framework FBLPromises -framework FMDB -framework FirebaseCore -framework FirebaseCoreDiagnostics -framework FirebaseDynamicLinks -framework FirebaseInstallations -framework FirebaseMessaging -framework Foundation -framework GoogleDataTransport -framework GoogleUtilities -framework QuartzCore -framework Reachability -framework Security -framework SystemConfiguration -framework UIKit -framework connectivity_plus -framework device_info -framework firebase_core -framework firebase_dynamic_links -framework firebase_messaging -framework flutter_local_notifications -framework flutter_secure_storage -framework launch_review -framework nanopb -framework package_info_plus -framework path_provider -framework share -framework sqflite -framework uni_links -framework url_launcher -framework video_player -framework webview_flutter -weak_framework UserNotifications -weak_framework WebKit -lsqlite3 -lz -framework CoreTelephony -framework FBLPromises -framework FirebaseCore -framework FirebaseCoreDiagnostics -framework FirebaseInstallations -framework FirebaseMessaging -framework Foundation -framework GoogleDataTransport -framework GoogleUtilities -framework Security -framework SystemConfiguration -framework UIKit -framework nanopb -weak_framework UserNotifications -ObjC -e _NSExtensionMain -framework Pods_ImageNotification -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Intermediates.noindex/Runner.build/Debug-qa-iphoneos/ImageNotification.build/Objects-normal/armv7/ImageNotification_dependency_info.dat -o /Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Intermediates.noindex/Runner.build/Debug-qa-iphoneos/ImageNotification.build/Objects-normal/armv7/Binary/ImageNotification
ld: warning: linking against a dylib which is not safe for use in application extensions: /Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/FMDB/FMDB.framework/FMDB
ld: warning: linking against a dylib which is not safe for use in application extensions: /Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/FirebaseDynamicLinks/FirebaseDynamicLinks.framework/FirebaseDynamicLinks
ld: warning: linking against a dylib which is not safe for use in application extensions: /Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/Reachability/Reachability.framework/Reachability
ld: warning: linking against a dylib which is not safe for use in application extensions: /Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/connectivity_plus/connectivity_plus.framework/connectivity_plus
ld: warning: linking against a dylib which is not safe for use in application extensions: /Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/device_info/device_info.framework/device_info
ld: warning: linking against a dylib which is not safe for use in application extensions: /Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/flutter_local_notifications/flutter_local_notifications.framework/flutter_local_notifications
ld: warning: linking against a dylib which is not safe for use in application extensions: /Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/flutter_secure_storage/flutter_secure_storage.framework/flutter_secure_storage
ld: warning: linking against a dylib which is not safe for use in application extensions: /Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/launch_review/launch_review.framework/launch_review
ld: warning: linking against a dylib which is not safe for use in application extensions: /Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/package_info_plus/package_info_plus.framework/package_info_plus
ld: warning: linking against a dylib which is not safe for use in application extensions: /Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/path_provider/path_provider.framework/path_provider
ld: warning: linking against a dylib which is not safe for use in application extensions: /Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/share/share.framework/share
ld: warning: linking against a dylib which is not safe for use in application extensions: /Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/sqflite/sqflite.framework/sqflite
ld: warning: linking against a dylib which is not safe for use in application extensions: /Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/uni_links/uni_links.framework/uni_links
ld: warning: linking against a dylib which is not safe for use in application extensions: /Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/url_launcher/url_launcher.framework/url_launcher
ld: warning: linking against a dylib which is not safe for use in application extensions: /Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/video_player/video_player.framework/video_player
ld: warning: linking against a dylib which is not safe for use in application extensions: /Users/vijay/Library/Developer/Xcode/DerivedData/Runner-fdztcfeaennpapekcmpyrymiixoo/Build/Products/Debug-qa-iphoneos/webview_flutter/webview_flutter.framework/webview_flutter
ld: warning: Could not find or use auto-linked framework 'Flutter'
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_FlutterError", referenced from:
objc-class-ref in firebase_core(FLTFirebasePlugin.o)
objc-class-ref in firebase_dynamic_links(FLTFirebaseDynamicLinksPlugin.o)
"_FlutterMethodNotImplemented", referenced from:
-[FLTFirebaseCorePlugin handleMethodCall:result:] in firebase_core(FLTFirebaseCorePlugin.o)
-[FLTFirebaseDynamicLinksPlugin handleMethodCall:result:] in firebase_dynamic_links(FLTFirebaseDynamicLinksPlugin.o)
-[FLTFirebaseMessagingPlugin handleMethodCall:result:] in firebase_messaging(FLTFirebaseMessagingPlugin.o)
"_OBJC_CLASS_$_FlutterMethodChannel", referenced from:
objc-class-ref in firebase_core(FLTFirebaseCorePlugin.o)
objc-class-ref in firebase_dynamic_links(FLTFirebaseDynamicLinksPlugin.o)
objc-class-ref in firebase_messaging(FLTFirebaseMessagingPlugin.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
@vijay-subramani
Undefined symbols for architecture armv7: seems to be targeting armv7.
Can you try adding below line in your podfile inside post_install and try again to see if it helps ?
config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'armv7'
@darshankawar Hey sorry for the super late reply!
I've tried this but no use. Still getting the same error. some times it shows like
Undefined symbols for architecture armv64:
Try adding armv64 as well in config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'armv7' and see if it helps.
Tried that too!
@vijay-subramani Is this behavior on latest stable or are you still on 2.2.3 ?
@darshankawar it's latest stable version.
Keeping it open for further input from the team.
/cc @russellwheatley
I'm having the same issue, and have the latest version of stable channel.
Any updates?
the same issue
I met the same issue and I found this solution: https://github.com/OneSignal/OneSignal-Flutter-SDK/issues/399#issuecomment-850647412
It can solve my problem, but I didn't know the reason. If someone knows the reason, please share it to me. Share this solution to you and hope it can solve your issue.
I'm going to need steps on how to repro. I've just done the following:
- From Xcode top menu: File > New > Target
- Selected "Notification Service Extension". Pressed Next.
- Added a product named "ImageNotification", set Language to Objective-C and click Finish.
- Enabled the scheme by clicking Activate.
- Ran
flutter run --release& also triedflutter build ios
No issues. What am I missing?
flutter doctor:
[✓] Flutter (Channel stable, 3.3.0, on macOS 12.5 21G72 darwin-x64, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] IntelliJ IDEA Community Edition (version 2020.1.1)
[✓] VS Code (version 1.71.0)
[✓] Connected device (3 available)
[✓] HTTP Host Availability
Also running against the latest iOS SDK: 9.5.0.
Hey @vijay-subramani. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.
If you have more information that will help us get to the bottom of this, just add a comment!
Closing out due to lack of activity and is not reproducible.