fluttercommunity / flutter_contacts

Contacts Service - A Flutter plugin to retrieve and manage contacts on Android and iOS devices. Maintainer: @lukasgit
https://pub.dev/packages/contacts_service
MIT License
153 stars 69 forks source link

Crashes on iOS Simulator at launch. #41

Closed neriksso closed 5 years ago

neriksso commented 6 years ago

Hi,

I keep having problems with this plugin even on a completely fresh project. It builds fine but crashes as it tries to launch on the iOS simulator. As the example project runs fine, it must be something simple I'm missing here.. Any help would be greatly appreciated!

Steps to reproduce:

  1. Create a fresh project using the flutter tool: flutter create -i swift -t app <<appname>>
  2. Open the iOS simulator: open -a Simulator
  3. Run the app on the simulator: flutter run
  4. Add contacts_service to pubspec.yaml and run packages get: flutter packages get
  5. Edit Info.plist to include the permissions
  6. Run the app again: flutter run

On my side it flashes a white screen before crashing.

Flutter doctor output:

[✓] Flutter (Channel master, v0.10.2-pre.20, on Mac OS X 10.12.6 16G1510, locale
    en-ZA)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.0)
[✓] Android Studio (version 3.2)
[!] VS Code (version 1.23.0)
[✓] Connected device (1 available)

Simulator: Version 10.0 (SimulatorApp-829.6) XCode: Version 9.0 (9A235)

Simulator logs:

Oct 21 12:31:04 Nicks-MacBook-Pro com.apple.CoreSimulator.SimDevice.860655C8-A060-43B3-AFEE-EFDE2DAF0F39[41208] (com.apple.videosubscriptionsd[43574]): Service exited with abnormal code: 1
Oct 21 12:31:05 Nicks-MacBook-Pro com.apple.CoreSimulator.SimDevice.860655C8-A060-43B3-AFEE-EFDE2DAF0F39[41208] (com.apple.videosubscriptionsd): Service only ran for 1 seconds. Pushing respawn out by 9 seconds.
Oct 21 12:31:06 Nicks-MacBook-Pro callservicesd[43575]: objc[43575]: Class VCWeakObjectHolder is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AVConference.framework/Frameworks/ViceroyTrace.framework/ViceroyTrace (0x1150b2490) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AVConference.framework/AVConference (0x1084b9fc0). One of the two will be used. Which one is undefined.
Oct 21 12:31:07 Nicks-MacBook-Pro com.apple.CoreSimulator.SimDevice.860655C8-A060-43B3-AFEE-EFDE2DAF0F39[41208] (com.apple.intents.intents-image-service): Unknown key for Boolean: EnableTransactions
Oct 21 12:31:07 Nicks-MacBook-Pro com.apple.CoreSimulator.SimDevice.860655C8-A060-43B3-AFEE-EFDE2DAF0F39[41208] (com.apple.intents.intents-image-service): Unknown key for Boolean: EnablePressuredExit
Oct 21 12:31:07 Nicks-MacBook-Pro com.apple.CoreSimulator.SimDevice.860655C8-A060-43B3-AFEE-EFDE2DAF0F39[41208] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for Boolean: EnableTransactions
Oct 21 12:31:07 Nicks-MacBook-Pro com.apple.CoreSimulator.SimDevice.860655C8-A060-43B3-AFEE-EFDE2DAF0F39[41208] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit
Oct 21 12:31:07 Nicks-MacBook-Pro com.apple.CoreSimulator.SimDevice.860655C8-A060-43B3-AFEE-EFDE2DAF0F39[41208] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for Boolean: EnablePressuredExit
Oct 21 12:31:07 Nicks-MacBook-Pro com.apple.CoreSimulator.SimDevice.860655C8-A060-43B3-AFEE-EFDE2DAF0F39[41208] (com.apple.CallKit.CallDirectoryMaintenance): Unknown key for Boolean: EnableTransactions
Oct 21 12:31:07 Nicks-MacBook-Pro com.apple.CoreSimulator.SimDevice.860655C8-A060-43B3-AFEE-EFDE2DAF0F39[41208] (com.apple.CallKit.CallDirectoryMaintenance): Unknown key for Boolean: EnablePressuredExit
Oct 21 12:31:07 Nicks-MacBook-Pro com.apple.CoreSimulator.SimDevice.860655C8-A060-43B3-AFEE-EFDE2DAF0F39[41208] (com.apple.CallKit.CallDirectory): Unknown key for Boolean: EnableTransactions
Oct 21 12:31:07 Nicks-MacBook-Pro com.apple.CoreSimulator.SimDevice.860655C8-A060-43B3-AFEE-EFDE2DAF0F39[41208] (com.apple.CallKit.CallDirectory): Unknown key for Boolean: EnablePressuredExit
Oct 21 12:31:09 Nicks-MacBook-Pro com.apple.CoreSimulator.SimDevice.860655C8-A060-43B3-AFEE-EFDE2DAF0F39[41208] (com.apple.CallKit.CallDirectoryMaintenance): Unknown key for Boolean: EnableTransactions
Oct 21 12:31:09 Nicks-MacBook-Pro com.apple.CoreSimulator.SimDevice.860655C8-A060-43B3-AFEE-EFDE2DAF0F39[41208] (com.apple.CallKit.CallDirectoryMaintenance): Unknown key for Boolean: EnablePressuredExit
Oct 21 12:31:09 Nicks-MacBook-Pro com.apple.CoreSimulator.SimDevice.860655C8-A060-43B3-AFEE-EFDE2DAF0F39[41208] (com.apple.CallKit.CallDirectory): Unknown key for Boolean: EnableTransactions
Oct 21 12:31:09 Nicks-MacBook-Pro com.apple.CoreSimulator.SimDevice.860655C8-A060-43B3-AFEE-EFDE2DAF0F39[41208] (com.apple.CallKit.CallDirectory): Unknown key for Boolean: EnablePressuredExit
Oct 21 12:31:09 Nicks-MacBook-Pro calaccessd[43584]: DEPRECATED USE in libdispatch client: Setting timer interval to 0 requests a 1ns timer, did you mean FOREVER (a one-shot timer)?
Oct 21 12:31:10 Nicks-MacBook-Pro com.apple.CoreSimulator.SimDevice.860655C8-A060-43B3-AFEE-EFDE2DAF0F39[41208] (com.apple.intents.intents-image-service): Unknown key for Boolean: EnableTransactions
Oct 21 12:31:10 Nicks-MacBook-Pro com.apple.CoreSimulator.SimDevice.860655C8-A060-43B3-AFEE-EFDE2DAF0F39[41208] (com.apple.intents.intents-image-service): Unknown key for Boolean: EnablePressuredExit
Oct 21 12:31:10 Nicks-MacBook-Pro com.apple.CoreSimulator.SimDevice.860655C8-A060-43B3-AFEE-EFDE2DAF0F39[41208] (com.apple.DictionaryServiceHelper): Unknown key for Boolean: EnableTransactions
Oct 21 12:31:10 Nicks-MacBook-Pro com.apple.CoreSimulator.SimDevice.860655C8-A060-43B3-AFEE-EFDE2DAF0F39[41208] (com.apple.DictionaryServiceHelper): Unknown key for Boolean: EnablePressuredExit
Oct 21 12:31:10 Nicks-MacBook-Pro com.apple.CoreSimulator.SimDevice.860655C8-A060-43B3-AFEE-EFDE2DAF0F39[41208] (com.apple.StreamingUnzipService): Unknown key for Boolean: EnableTransactions
Oct 21 12:31:10 Nicks-MacBook-Pro com.apple.CoreSimulator.SimDevice.860655C8-A060-43B3-AFEE-EFDE2DAF0F39[41208] (com.apple.StreamingUnzipService): Unknown key for Boolean: EnablePressuredExit
Oct 21 12:31:10 Nicks-MacBook-Pro com.apple.CoreSimulator.SimDevice.860655C8-A060-43B3-AFEE-EFDE2DAF0F39[41208] (com.apple.uifoundation-bundle-helper): Unknown key for Boolean: EnableTransactions
Oct 21 12:31:10 Nicks-MacBook-Pro com.apple.CoreSimulator.SimDevice.860655C8-A060-43B3-AFEE-EFDE2DAF0F39[41208] (com.apple.uifoundation-bundle-helper): Unknown key for Boolean: EnablePressuredExit
Oct 21 12:31:10 Nicks-MacBook-Pro Runner[43585]: assertion failed: 16G1510 15A372: libxpc.dylib + 69578 [D870A237-D3A7-31F5-AAD4-CE880C0C8E7B]: 0x7d
Oct 21 12:31:11 Nicks-MacBook-Pro com.apple.CoreSimulator.SimDevice.860655C8-A060-43B3-AFEE-EFDE2DAF0F39[41208] (UIKitApplication:com.example.myt[0x4b5e][41234][43585]): Service exited due to signal: Segmentation fault: 11 sent by exc handler[0]
Oct 21 12:31:14 Nicks-MacBook-Pro com.apple.CoreSimulator.SimDevice.860655C8-A060-43B3-AFEE-EFDE2DAF0F39[41208] (com.apple.videosubscriptionsd[43590]): Service exited with abnormal code: 1
adamway commented 6 years ago

I have the same issue! Please help!

umuieme commented 6 years ago

same issue here. Any updates?

jeroen-meijer commented 5 years ago

Is this issue still relevant for all of you?

lukasgit commented 5 years ago

@neriksso @adamway @umuieme I've confirmed the latest build is working so closing this issue. If you are still having problems, please check that you are running the latest version of Xcode and Flutter. If you are still experiencing this issue, please let us know.