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

Force close on iOS #8

Closed
brizaldi opened this issue Mar 23, 2020 · 14 comments
Closed

Force close on iOS #8

brizaldi opened this issue Mar 23, 2020 · 14 comments
Assignees

Comments

@brizaldi
Copy link

I got an error like this after i add dependency stream_chat_flutter: ^0.1.11
when i try to run it on iOS, my app suddenly got force close

*** First throw call stack: ( 0 CoreFoundation 0x00007fff23c7127e __exceptionPreprocess + 350 1 libobjc.A.dylib 0x00007fff513fbb20 objc_exception_throw + 48 2 CoreFoundation 0x00007fff23c70ff8 +[NSException raise:format:arguments:] + 88 3 Foundation 0x00007fff256e9b51 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 191 4 Flutter 0x000000010249ae32 -[FlutterEngine registrarForPlugin:] + 282 5 Runner 0x000000010173bdd0 +[GeneratedPluginRegistrant registerWithRegistry:] + 1040 6 Runner 0x000000010173c2e0 $s6Runner11AppDelegateC11application_29didFinishLaunchingWithOptionsSbSo13UIApplicationC_SDySo0j6LaunchI3KeyaypGSgtF + 176 7 Runner <…>

@imtoori
Copy link
Contributor

imtoori commented Mar 23, 2020

Hi, I tried to build a project from scratch using iOS and (un)fortunately I don't have any problem.
Can you try to run flutter clean and try to rebuild the project?

@tbarbugli
Copy link
Member

@brizaldi can you also include the entire stack trace error as well as information about the flutter version you are using?

@brizaldi
Copy link
Author

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.12.13+hotfix.8, on Mac OS X 10.15.3 19D76, locale en-US)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
✗ Android license status unknown.
Try re-installing or updating your Android SDK Manager.
See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup for detailed instructions.
[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
[✓] Android Studio (version 3.6)
[✓] Connected device (1 available)

image

@imtoori
Copy link
Contributor

imtoori commented Mar 25, 2020

@brizaldi did you do everything written here in the readme? https://github.com/GetStream/stream-chat-flutter#ios

@brizaldi
Copy link
Author

@imtoori yeah, but still got crash whenever i try to open the app, btw i test it on iOS Simulator though

@imtoori
Copy link
Contributor

imtoori commented Mar 26, 2020

So, I googled your stacktrace and I reach this issue on the Flutter repository, but unfortunately it's still waiting for customer response

A question: have you modified the iOS project in any way?

@brizaldi
Copy link
Author

i only change deployment target to 9.0 and add google gms api key in AppDelegate.swift

this is from simulator system.log
Mar 27 10:02:52 rhezas-mbp-2 nanotimekitcompaniond[6524]: objc[6524]: Class NTKDActivityTracker is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/NanoTimeKitCompanion.framework/NanoTimeKitCompanion (0x7fff88ed28f0) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/NanoTimeKitCompanion.framework/nanotimekitcompaniond (0x109975b18). One of the two will be used. Which one is undefined. Mar 27 10:02:52 rhezas-mbp-2 nanotimekitcompaniond[6524]: objc[6524]: Class NTKDZIPArchivist is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/NanoTimeKitCompanion.framework/NanoTimeKitCompanion (0x7fff88ed3f70) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/NanoTimeKitCompanion.framework/nanotimekitcompaniond (0x109975e38). One of the two will be used. Which one is undefined. Mar 27 10:02:52 rhezas-mbp-2 Runner[6527]: objc[6527]: Class FLTKeyboardVisibilityPlugin is implemented in both /Users/berkatbejana/Library/Developer/CoreSimulator/Devices/7DF0C3FB-7CFA-4AF0-A975-4C02084F3B33/data/Containers/Bundle/Application/C325B17B-08FF-4A02-8EFD-7F3BF5957DE8/Runner.app/Frameworks/keyboard_visibility.framework/keyboard_visibility (0x10f83bf48) and /Users/berkatbejana/Library/Developer/CoreSimulator/Devices/7DF0C3FB-7CFA-4AF0-A975-4C02084F3B33/data/Containers/Bundle/Application/C325B17B-08FF-4A02-8EFD-7F3BF5957DE8/Runner.app/Frameworks/flutter_keyboard_visibility.framework/flutter_keyboard_visibility (0x10f779f48). One of the two will be used. Which one is undefined. Mar 27 10:02:52 rhezas-mbp-2 Runner[6527]: assertion failed: 19D76 17C45: libxpc.dylib + 83135 [F4467130-D9DA-3791-A4D0-F41C91F1CFEA]: 0x7d Mar 27 10:02:52 rhezas-mbp-2 com.apple.CoreSimulator.SimDevice.7DF0C3FB-7CFA-4AF0-A975-4C02084F3B33[4768] (UIKitApplication:id.homy.homyMobile[702c][rb-legacy][6527]): Service exited due to SIGABRT

i dont know if this gonna help but i got an error in GeneratedPluginRegistrant.m saying Module 'file_picker' not found
Screen Shot 2020-03-27 at 10 11 04 AM

here's my GeneratedPluginRegistrant.m
GeneratedPluginRegistrant.m.zip

@imtoori
Copy link
Contributor

imtoori commented Mar 27, 2020

I think something broke during flutter packages get. Sometimes it happens with Flutter

Can you try this?

  • delete the file ios/Podfile
  • run flutter clean
  • retry to run the app

@brizaldi
Copy link
Author

still got the same error

@brizaldi
Copy link
Author

@imtoori @tbarbugli i think i've found the culprit, its because this plugin is incompatible with flutter_form_builder, when i remove flutter_form_builder from dependency, the error suddenly gone, maybe you guys can find out whats the problem, because my app depends a lot from that plugin

@tbarbugli
Copy link
Member

@brizaldi thank you for the additional information; if possible would you mind sharing a dart file that reproduce the problem with the form builder and chat?

@brizaldi
Copy link
Author

just create a new flutter project, and then add flutter_form_builder and stream_chat_flutter dependency

@imtoori
Copy link
Contributor

imtoori commented Mar 31, 2020

@brizaldi can you retry now using the new version 0.1.12?

We were using the plugin keyboard_visibility while flutter_form_builder was using flutter_keyboard_visibility. The former is a fork of the latter and it seems better maintained so we'll stick to that.

@brizaldi
Copy link
Author

it seems working fine now, thanks @imtoori, i'm closing this now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants