从Xamarin iOS 8中的地址簿中选择联系人时崩溃

时间:2015-06-04 13:12:57

标签: c# ios xamarin abaddressbook addressbookui

当我从模拟器中的地址簿中选择联系人时,我的应用程序出现了崩溃。当我使用QuickContacts sample时,我遇到了类似的崩溃。这些是在模拟器中启动QuickContacts应用程序后的步骤:

  1. 选择显示选择器
  2. 选择John Appleseed
  3. 选择第一个手机号码
  4. 应用程序崩溃,下面是堆栈跟踪。有没有其他人遇到过类似的问题?有解决方法吗?任何帮助将非常感激。

    这是我的Xamarin设置:

    • Xamarin Studio版本5.9.3(版本1)
    • 运行时:
      • Mono 4.0.1((分离/ ed1d3ec)
      • GTK + 2.24.23(罗利主题)

    Apple Developer Tools

    • Xcode 6.3.2(7718)
    • 构建6D2105

    Xamarin.iOS

    • 版本:8.10.1.64(独立版)
    • 哈希:e6ebd18
    • 分支:主人
    • 建造日期:2015-05-21 21:55:09-0400

    堆栈追踪:

    2015-06-04 13:30:50.664 QuickContacts[1322:44259] critical: Stacktrace:
    
    2015-06-04 13:30:50.664 QuickContacts[1322:44259] critical:   at <unknown> <0xffffffff>
    2015-06-04 13:30:50.664 QuickContacts[1322:44259] critical:   at (wrapper managed-to-native) AddressBook.ABRecord.ABRecordCopyValue (intptr,int) <IL 0x0002e, 0xffffffff>
    2015-06-04 13:30:50.686 QuickContacts[1322:44259] critical:   at AddressBook.ABRecord.CopyValue (int) [0x00000] in /Users/builder/data/lanes/1503/e6ebd18b/source/maccore/src/AddressBook/ABRecord.cs:190
    2015-06-04 13:30:50.687 QuickContacts[1322:44259] critical:   at AddressBook.ABRecord.PropertyToString (int) [0x00000] in /Users/builder/data/lanes/1503/e6ebd18b/source/maccore/src/AddressBook/ABRecord.cs:214
    2015-06-04 13:30:50.687 QuickContacts[1322:44259] critical:   at AddressBook.ABPerson.get_FirstName () [0x00000] in /Users/builder/data/lanes/1503/e6ebd18b/source/maccore/src/AddressBook/ABPerson.cs:709
    2015-06-04 13:30:50.687 QuickContacts[1322:44259] critical:   at QuickContacts.QuickContactsViewController.HandlePerformAction2 (object,AddressBookUI.ABPeoplePickerPerformAction2EventArgs) [0x00007] in /Users/MChipeta/Downloads/QuickContacts/QuickContacts/QuickContactsViewController.cs:220
    2015-06-04 13:30:50.688 QuickContacts[1322:44259] critical:   at AddressBookUI.ABPeoplePickerNavigationController.OnPerformAction2 (AddressBookUI.ABPeoplePickerPerformAction2EventArgs) [0x00012] in /Users/builder/data/lanes/1503/e6ebd18b/source/maccore/src/AddressBookUI/ABPeoplePickerNavigationController.cs:232
    2015-06-04 13:30:50.688 QuickContacts[1322:44259] critical:   at AddressBookUI.InternalABPeoplePickerNavigationControllerDelegate.DidSelectPerson (AddressBookUI.ABPeoplePickerNavigationController,AddressBook.ABPerson,int,int) [0x0002e] in /Users/builder/data/lanes/1503/e6ebd18b/source/maccore/src/AddressBookUI/ABPeoplePickerNavigationController.cs:128
    2015-06-04 13:30:50.688 QuickContacts[1322:44259] critical:   at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object_object_int_int (object,intptr,intptr,intptr) <IL 0x00082, 0xffffffff>
    2015-06-04 13:30:50.688 QuickContacts[1322:44259] critical:   at <unknown> <0xffffffff>
    2015-06-04 13:30:50.689 QuickContacts[1322:44259] critical:   at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <IL 0x000ae, 0xffffffff>
    2015-06-04 13:30:50.690 QuickContacts[1322:44259] critical:   at UIKit.UIApplication.Main (string[],intptr,intptr) [0x00005] in /Users/builder/data/lanes/1503/e6ebd18b/source/maccore/src/UIKit/UIApplication.cs:63
    2015-06-04 13:30:50.690 QuickContacts[1322:44259] critical:   at UIKit.UIApplication.Main (string[],string,string) [0x00038] in /Users/builder/data/lanes/1503/e6ebd18b/source/maccore/src/UIKit/UIApplication.cs:47
    2015-06-04 13:30:50.690 QuickContacts[1322:44259] critical:   at QuickContacts.Application.Main (string[]) [0x00008] in /Users/MChipeta/Downloads/QuickContacts/QuickContacts/Main.cs:17
    2015-06-04 13:30:50.690 QuickContacts[1322:44259] critical:   at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <IL 0x00060, 0xffffffff>
    2015-06-04 13:30:50.691 QuickContacts[1322:44259] critical: 
    Native stacktrace:
    
    2015-06-04 13:30:50.691 QuickContacts[1322:44259] critical: 
    Got a SIGSEGV while executing native code. This usually indicates
    a fatal error in the mono runtime or one of the native libraries 
    used by your application.
    

1 个答案:

答案 0 :(得分:0)

这是known bug

解决方法:添加&#39; - registrar:static&#39;添加其他mtouch参数。