- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我的应用程序在 iOS 模拟器上调试良好,当我构建 ipa 文件并将其部署到设备时它运行良好。但是,如果我尝试在设备(iPhone 9.3.1 和 iPad 9.3)上进行调试,应用程序会在启动时立即崩溃。我正在使用带有 Xamarin 的 Visual Studio。问题似乎与构建/配置/版本相关,因为它在模拟器和 IPA 文件版本上运行良好,但我无法弄清楚问题所在。
Visual Studio 2013 更新 5Xamarin 4.0.3.214Xamarin.iOS 9.6.1.8
有效和无效构建之间的项目配置:
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhoneSimulator' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\iPhoneSimulator\Debug</OutputPath>
<DefineConstants>DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<MtouchDebug>True</MtouchDebug>
<MtouchSdkVersion>8.1</MtouchSdkVersion>
<MtouchArch>i386</MtouchArch>
<MtouchOptimizePNGs>True</MtouchOptimizePNGs>
<MtouchUseSGen>True</MtouchUseSGen>
<MtouchUseRefCounting>True</MtouchUseRefCounting>
<MtouchI18n>
</MtouchI18n>
<MtouchProfiling>True</MtouchProfiling>
<MtouchLink>None</MtouchLink>
<CodesignKey>iPhone Developer</CodesignKey>
<CodesignProvision>
</CodesignProvision>
<CodesignExtraArgs>
</CodesignExtraArgs>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhone' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\iPhone\Debug</OutputPath>
<DefineConstants>DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<CodesignKey>iPhone Developer</CodesignKey>
<MtouchSdkVersion>8.1</MtouchSdkVersion>
<MtouchArch>ARMv7</MtouchArch>
<MtouchOptimizePNGs>True</MtouchOptimizePNGs>
<MtouchI18n>
</MtouchI18n>
<MtouchUseSGen>True</MtouchUseSGen>
<MtouchDebug>True</MtouchDebug>
<MtouchProfiling>True</MtouchProfiling>
<SignAssembly>true</SignAssembly>
<CodesignProvision>
</CodesignProvision>
<CodesignExtraArgs>
</CodesignExtraArgs>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Ad-Hoc|iPhone' ">
<DebugType>none</DebugType>
<Optimize>True</Optimize>
<OutputPath>bin\iPhone\Ad-Hoc</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>False</ConsolePause>
<CodesignKey>xxx</CodesignKey>
<BuildIpa>True</BuildIpa>
<MtouchSdkVersion>8.1</MtouchSdkVersion>
<MtouchArch>ARMv7</MtouchArch>
<MtouchOptimizePNGs>True</MtouchOptimizePNGs>
<MtouchI18n>
</MtouchI18n>
<IpaPackageName>
</IpaPackageName>
<SignAssembly>true</SignAssembly>
<CodesignProvision>xxx</CodesignProvision>
<IpaMetadata>
</IpaMetadata>
<MtouchExtraArgs>
</MtouchExtraArgs>
<CodesignExtraArgs>
</CodesignExtraArgs>
</PropertyGroup>
崩溃报告:
Incident Identifier: 3F2078C2-B276-4CCE-A5A0-43DCE3F4EB07
CrashReporter Key: 0ae3fc42ef86d1610013598af050cfcc24f778c2
Hardware Model: iPhone7,2
Process: RadResponder [3832]
Path: /private/var/containers/Bundle/Application/30274A5D-271C-4E00-87B1-D3CE93033A8F/RadResponder.app/RadResponder
Identifier: com.ChainbridgeTechnologies.RadResponder
Version: 45 (3.2.0)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2016-04-20 09:41:34.34 -0600
Launch Time: 2016-04-20 09:41:31.31 -0600
OS Version: iOS 9.3.1 (13E238)
Report Version: 105
Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000084020400
Triggered by Thread: 0
Filtered syslog:
None found
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x20677c5c __pthread_kill + 8
1 libsystem_pthread.dylib 0x2071db47 pthread_kill + 63
2 libsystem_c.dylib 0x2060c0c5 abort + 109
3 RadResponder 0x02e3a3e1 mono_handle_native_sigsegv (mini-exceptions.c:2186)
4 RadResponder 0x02e405c9 mono_sigsegv_signal_handler (mini-runtime.c:2481)
5 libsystem_platform.dylib 0x2071985f _sigtramp + 43
6 RadResponder 0x01f83fa0 System_Linq_Enumerable_ToArray_T_INT_System_Collections_Generic_IEnumerable_1_T_INT (Enumerable.cs:830)
7 RadResponder 0x00de5d74 MvvmCross_Platform_iOS_Platform_MvxIosSystem_BuildVersion (/C:\vcs\git\MvvmCross\MvvmCross\Platform\iOS\Platform\MvxIosSystem.cs:27)
8 RadResponder 0x00de5b38 MvvmCross_Platform_iOS_Platform_MvxIosSystem__ctor (/C:\vcs\git\MvvmCross\MvvmCross\Platform\iOS\Platform\MvxIosSystem.cs:22)
9 RadResponder 0x01025628 MvvmCross_iOS_Platform_MvxIosSetup_CreateIosSystemProperties (/C:\vcs\git\MvvmCross\MvvmCross\iOS\iOS\Platform\MvxIosSetup.cs:114)
10 RadResponder 0x01025514 MvvmCross_iOS_Platform_MvxIosSetup_RegisterPlatformProperties (/C:\vcs\git\MvvmCross\MvvmCross\iOS\iOS\Platform\MvxIosSetup.cs:109)
11 RadResponder 0x0102538c MvvmCross_iOS_Platform_MvxIosSetup_InitializePlatformServices (/C:\vcs\git\MvvmCross\MvvmCross\iOS\iOS\Platform\MvxIosSetup.cs:100)
12 RadResponder 0x0105c284 MvvmCross_Core_Platform_MvxSetup_InitializePrimary + 1532
13 RadResponder 0x0105bc04 MvvmCross_Core_Platform_MvxSetup_Initialize + 120
14 RadResponder 0x000bfaac RadResponder_Mobile_UI_iPhone_AppDelegate_FinishedLaunching_UIKit_UIApplication_Foundation_NSDictionary (/c:\tfs\rr\wksp\mbl-dev\RadResponder.Mobile.UI.iPhone\AppDelegate.cs:54)
15 RadResponder 0x005689f4 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 256
16 RadResponder 0x02e42bff mono_jit_runtime_invoke (mini-runtime.c:2335)
17 RadResponder 0x02e852a5 mono_runtime_invoke (object.c:2783)
18 RadResponder 0x02dfcb6b native_to_managed_trampoline_6(objc_object*, objc_selector*, _MonoMethod**, objc_object*, objc_object*, char const*, char const*, char const*, char const*) (registrar.m:211)
19 RadResponder 0x02dfc9bd -[AppDelegate application:didFinishLaunchingWithOptions:] (registrar.m:2962)
20 UIKit 0x2502f8ff -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 395
21 UIKit 0x252590bf -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3087
22 UIKit 0x2525d079 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1589
23 UIKit 0x25271649 __84-[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:]_block_invoke3286 + 37
24 UIKit 0x2525a59f -[UIApplication workspaceDidEndTransaction:] + 135
25 FrontBoardServices 0x220b7bf7 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 19
26 FrontBoardServices 0x220b7aa7 -[FBSSerialQueue _performNext] + 227
27 FrontBoardServices 0x220b7da5 -[FBSSerialQueue _performNextFromRunLoopSource] + 45
28 CoreFoundation 0x209aba67 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
29 CoreFoundation 0x209ab657 __CFRunLoopDoSources0 + 455
30 CoreFoundation 0x209a99bf __CFRunLoopRun + 807
31 CoreFoundation 0x208f8289 CFRunLoopRunSpecific + 517
32 CoreFoundation 0x208f807d CFRunLoopRunInMode + 109
33 UIKit 0x25028dc7 -[UIApplication _run] + 527
34 UIKit 0x250232c5 UIApplicationMain + 145
35 RadResponder 0x00aa5218 wrapper_managed_to_native_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr + 272
36 RadResponder 0x00a0e58c UIKit_UIApplication_Main_string___intptr_intptr (UIApplication.cs:77)
37 RadResponder 0x00a0e54c UIKit_UIApplication_Main_string___string_string (UIApplication.cs:61)
38 RadResponder 0x000bf204 RadResponder_Mobile_UI_iPhone_Application_Main_string__ (/c:\tfs\rr\wksp\mbl-dev\RadResponder.Mobile.UI.iPhone\Main.cs:12)
39 RadResponder 0x005689f4 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 256
40 RadResponder 0x02e42bff mono_jit_runtime_invoke (mini-runtime.c:2335)
41 RadResponder 0x02e852a5 mono_runtime_invoke (object.c:2783)
42 RadResponder 0x02e885d1 mono_runtime_exec_main (object.c:4038)
43 RadResponder 0x02ef5778 xamarin_main (monotouch-main.m:404)
44 RadResponder 0x02e15261 main (main.armv7.m:158)
45 libdyld.dylib 0x205a4873 start + 3
Thread 1:
0 libsystem_kernel.dylib 0x20678864 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x2071ae19 _pthread_wqthread + 1037
2 libsystem_pthread.dylib 0x2071a9fc start_wqthread + 8
Thread 2 name: Dispatch queue: com.apple.libdispatch-manager
Thread 2:
0 libsystem_kernel.dylib 0x206792f8 kevent_qos + 24
1 libdispatch.dylib 0x2058b837 _dispatch_mgr_invoke + 255
2 libdispatch.dylib 0x2057d917 _dispatch_mgr_thread + 39
Thread 3:
0 libsystem_kernel.dylib 0x20678864 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x2071ae19 _pthread_wqthread + 1037
2 libsystem_pthread.dylib 0x2071a9fc start_wqthread + 8
Thread 4:
0 libsystem_kernel.dylib 0x20677da0 __recvfrom + 20
1 libsystem_c.dylib 0x205c7d5b recv + 23
2 RadResponder 0x02ef3dcc recv_uninterrupted(int, void*, int) (monotouch-debug.m:387)
3 RadResponder 0x02ef3fb0 monotouch_process_connection(int) (monotouch-debug.m:790)
4 RadResponder 0x02ef2f5c monotouch_connect_usb() (monotouch-debug.m:697)
5 RadResponder 0x02ef25e8 monotouch_configure_debugging (monotouch-debug.m:333)
6 RadResponder 0x02edc8bc -[CocoaThreadInitializer entryPoint:] (shared.m:124)
7 Foundation 0x2121662d __NSThread__start__ + 1145
8 libsystem_pthread.dylib 0x2071cc7f _pthread_body + 139
9 libsystem_pthread.dylib 0x2071cbf3 _pthread_start + 111
10 libsystem_pthread.dylib 0x2071aa08 thread_start + 8
Thread 5:
0 libsystem_kernel.dylib 0x20677998 __psynch_cvwait + 24
1 libsystem_pthread.dylib 0x2071c1a5 _pthread_cond_wait + 537
2 libsystem_pthread.dylib 0x2071d0b9 pthread_cond_wait + 41
3 RadResponder 0x02ebeec5 thread_func (sgen-thread-pool.c:118)
4 libsystem_pthread.dylib 0x2071cc7f _pthread_body + 139
5 libsystem_pthread.dylib 0x2071cbf3 _pthread_start + 111
6 libsystem_pthread.dylib 0x2071aa08 thread_start + 8
Thread 6:
0 libsystem_kernel.dylib 0x20677da0 __recvfrom + 20
1 libsystem_c.dylib 0x205c7d5b recv + 23
2 RadResponder 0x02ef3dcc recv_uninterrupted(int, void*, int) (monotouch-debug.m:387)
3 RadResponder 0x02ef3ec8 sdb_recv(void*, int) (monotouch-debug.m:403)
4 RadResponder 0x02e22a07 debugger_thread (debugger-agent.c:1515)
5 RadResponder 0x02ed3927 inner_start_thread (mono-threads-posix.c:97)
6 libsystem_pthread.dylib 0x2071cc7f _pthread_body + 139
7 libsystem_pthread.dylib 0x2071cbf3 _pthread_start + 111
8 libsystem_pthread.dylib 0x2071aa08 thread_start + 8
Thread 7:
0 libsystem_kernel.dylib 0x206638f8 semaphore_wait_trap + 8
1 RadResponder 0x02ed312b mono_sem_wait (mono-semaphore.c:109)
2 RadResponder 0x02e644b7 finalizer_thread (gc.c:1096)
3 RadResponder 0x02ea4d89 start_wrapper (threads.c:655)
4 RadResponder 0x02ed3927 inner_start_thread (mono-threads-posix.c:97)
5 libsystem_pthread.dylib 0x2071cc7f _pthread_body + 139
6 libsystem_pthread.dylib 0x2071cbf3 _pthread_start + 111
7 libsystem_pthread.dylib 0x2071aa08 thread_start + 8
Thread 8:
0 libsystem_kernel.dylib 0x20678864 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x2071ae19 _pthread_wqthread + 1037
2 libsystem_pthread.dylib 0x2071a9fc start_wqthread + 8
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000000 r3: 0x00000000
r4: 0x00000006 r5: 0x376cd000 r6: 0xa10bb850 r7: 0x08721358
r8: 0x15bc32ac r9: 0x376cd908 r10: 0x0457fe7f r11: 0x15bc3200
ip: 0x00000148 sp: 0x0872134c lr: 0x2071db47 pc: 0x20677c5c
cpsr: 0x00000010
最佳答案
我是在原生应用的基础上回复的,如果你在项目的build设置中将 Adhoc Provisional Profile 设置为 Debug 选项,就会发生这种情况。这意味着要调试您的代码,您需要为“Debug”设置调试临时配置文件,而不是 adhoc 类型的临时配置文件。
关于ios - 在设备上调试时应用程序崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36771579/
iphone设备UDID、iphone设备ID和iphone设备Token之间有什么区别? 通常,当我们使用苹果推送通知服务时,会使用 iPhone 设备 token 。 但我的目标只是识别唯一的 i
我们使用 firebase 从服务器向 Android 和 IOS 设备发送通知,并且我们使用旧版 FCM 发送通知。但是当我们的应用程序在后台时,通知由系统本身处理,因此我们无法通过应用程序处理它。
在 Google 上搜索后,我发现人们说只能通过“MFi 程序”将 iOS 设备与非 iOS 设备连接起来。这是真的吗? 我的项目主要集中于直接通过蓝牙与Arduino设备发送和接收信息。 iOS和非
所以我有一个通用应用程序,我正在设置 UIScrollView 的内容大小。显然,iPhone 和 iPad 上的内容大小会有所不同。如何为 iPad 设置某种尺寸,为 iPhone 和 iPod t
问题:如何在 pod 中使用连接到主机的原始设备作为 block 设备。 我尝试使用类型为“BlockDevice”的“hostPath” volumes: - my-data: hostPath
Implemented GCKDeviceScannerListener Singleton Class on ViewController, however its delegate methods
我有一个 (PhoneGap) 应用程序,它将成功获得 Passbook 通行证,并且还将成功接收与 Passbook 分开的推送通知(当伪造设备 ID 时)。 我遇到的问题是发送给注册设备的设备 I
我正在尝试找到一种方法,通过我目前正在使用的 iOS 应用程序访问我的信标的电池电量。我正在使用 Kontakt 的 iBeacon 设备。我浏览了 Estimote iOS SDK,他们提供了一种实
我正在努力让 CUDA 应用程序也能监控 GPU 的核心温度。可通过 NVAPI 访问该信息。 问题是我想确保在运行代码时监控的是同一个 GPU。 但是,似乎有信息表明我从 NvAPI_EnumPhy
从沙箱模式到生产模式,设备 token 有何不同? 我认为我已将一些设备 token 锁定为生产模式,并且无法将它们从开发中插入。 关于如何检查有什么想法吗? 最佳答案 当您使用开发证书构建应用程序时
目录 /run/user/1000/gvfs 和 ~/.gvfs 分别是空的和不存在的。我的图形文件管理器 (Thunar) 能够检测和访问设备的内部和外部存储器。 命令 gvfs-mount -l
我有一个 Android 平板电脑,它有一个迷你 USB 端口和一个 USB 端口,我想编写一个与 USB key 通信的应用程序。我写了一个demo来找出U盘,但是没有任何反应。 令我不安的是,如果
我们将 PHP 版本从 5.4.25 更改为 5.4.45,并在服务器上安装了 MS SQL 驱动程序。在更改服务器之前,一切正常,但在更改服务器之后,我遇到了 Web 服务问题。我们的身份验证 So
我想知道是否有人使用此 API 在 Android 设备上同时从 2 个后置摄像头捕获图像或视频:https://source.android.com/docs/core/camera/concurr
我正在为客户构建一个物联网解决方案,网络管理员坚持要求设备仅通过访客网络进行连接,该网络有一个强制门户,其中的服务条款必须通过按下 UI 按钮来接受,然后才能获得外部互联网访问。到目前为止,我见过的大
我无法弄清楚这里的格式规则..在我的示例中,代码行太多,无法为每行添加 4 个空格,因此这里是我需要帮助的代码的链接 http://nitemsg.blogspot.com/2011/01/heres
如果我在我的设备上接受推送通知,并且不保存设备 token ,那么我如何在自定义 View 中查看设备 token 或恢复警报 View ? 我删除了应用程序并重新安装,但看不到设备 token 警报
我试图找出在尝试并行比较和复制设备 block 与 pthreads 时我做错了什么。看起来我正在脱离同步并且比较阶段无法正常工作。任何帮助将不胜感激 #ifndef __dbg_h__ #defin
我刚刚写完所有这些内容,但这个红色的小栏告诉我我不能发布图片或两个以上的链接。因此,如果您可以引用 this Imgur album , 那简直太好了。谢谢。 我在这里相对较新,甚至对 android
我需要启用 mysql 常规日志并将其通过 nsf 移动到我系统中的另一个驱动器/设备! 所以,我在 my.cnf 中启用了它: general_log = 1 general_log_fi
我是一名优秀的程序员,十分优秀!