2017-04-12 7 views
0

私はXamarin Forms、特にIos共有コードを使用してプロジェクトを開発しようとしていますが、Google Vr SDKライブラリをApDefinitionに完全にバインドした後は& StructAndEnumsクラスとGVRSDK静的ライブラリ、私は解決するいくつかの問題を抱えています。 GVRVideoViewウィジェットをViewControllerに挿入すると、FullscreenとCardboard View Modeの2つのボタンが表示されません。私はそれを行うために独自のメソッドをコードに挿入しました。 また、私はそれらをタップすると、アプリケーションがクラッシュし、デバッグコンソールが私にこれらの例外を与えます。私は何をしようとするべきか分からない。 誰も助けて、これらの問題を私と話すことができますか?NSInvalidArgumentException *** - [NSURL initFileURLWithPath:]:nil文字列パラメータ

2017-04-12 12:45:00.413 App18.iOS[1335:1127396] INFO 
[vr/gvr/capi/src/gvr.cc:109] Initialized GVR version 1.30.0 
2017-04-12 12:45:04.872 App18.iOS[1335:1127349] Xamarin.iOS: Received 
unhandled ObjectiveC exception: NSInvalidArgumentException *** -[NSURL 
initFileURLWithPath:]: nil string parameter 
2017-04-12 12:45:05.179 App18.iOS[1335:1127349] Objective-C exception 
thrown. Name: NSInvalidArgumentException Reason: *** -[NSURL 
initFileURLWithPath:]: nil string parameter 
Native stack trace: 
0 CoreFoundation      0x1b773b55 <redacted> + 152 
1 libobjc.A.dylib      0x1a9fb067 objc_exception_throw + 38 
2 CoreFoundation      0x1b773a85 <redacted> + 0 
3 Foundation       0x1c01fc69 <redacted> + 120 
4 Foundation       0x1c01fbdb <redacted> + 42 
5 App18.iOS       0x00098e67 -[GVRTransitionView 
loadView] + 510 
6 App18.iOS       0x00098c0f -[GVRTransitionView 
initWithFrame:delegate:] + 190 
7 App18.iOS       0x0008e277 - 
[GVROverlayViewController init] + 246 
8 App18.iOS       0x000a0f6d -[GVRWidgetView 
goIntoFullscreenMode] + 76 
9 App18.iOS       0x000a198d -[GVRWidgetView 
didTapFullscreenButton:] + 20 
1 
0 UIKit        0x209d6805 <redacted> + 76 
11 UIKit        0x209d6799 <redacted> + 62 
12 UIKit        0x209c0dc9 <redacted> + 478 
13 UIKit        0x209d60d5 <redacted> + 604 
14 UIKit        0x209d5c1f <redacted> + 2094 
15 UIKit        0x209d0b5f <redacted> + 2798 
16 UIKit        0x209a2703 <redacted> + 308 
17 UIKit        0x21135d37 <redacted> + 2254 
18 UIKit        0x211306db <redacted> + 4186 
19 UIKit        0x21130abd <redacted> + 144 
20 CoreFoundation      0x1b72ffdd <redacted> + 12 
21 CoreFoundation      0x1b72fb05 <redacted> + 424 
22 CoreFoundation      0x1b72df51 <redacted> + 1160 
23 CoreFoundation      0x1b6810ef CFRunLoopRunSpecific + 
470 
24 CoreFoundation      0x1b680 
f11 CFRunLoopRunInMode + 104 
25 GraphicsServices     0x1ce2bb41 GSEventRunModal + 80 
26 UIKit        0x20a05e83 UIApplicationMain + 150 
27 App18.iOS       0x00fd2d6c 

wrapper_managed_to_native_UIKit_UIApplication_UIApplicationMain_int_string___int ptr_intptr + 324 28 App18.iOS 0x00f764b0 UIKit_UIApplication_Main_string___intptr_intptr + 52 29 App18.iOS UIKit_UIApplication_Main_string___string_string + 204 30 App18.iOS 0x0042d820 0x00f76470 App18_iOS_Application_Main_string__ + 192 31 App18.iOS 0x00690ae4

wrapper_runtime_invoke_obj ect_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 256 32 App18.iOS 0x0036cd45 mono_jit_runtime_invoke + 1528 33 App18.iOS 0x003b9937 do_runtime_invoke + 78 34 App18.iOS 0x003bb90d do_exec_main_checked + 84 35 App18.iOS
0x0035b0ad mono_jit_exec + 194 36 App18.iOS 0x0042c660 xamarin_main +どういうわけか、メソッドにパラメータとして 'ゼロ' を通過している2484 37 App18.iOS 0x01143be1 112 38 +メインlibdyld.dylibの0x1ae6e4eb + 2

答えて

0

[NSURL initFileURLWithPath:]。 メソッドで渡す値をチェックするためにブレークポイントを追加します。 コードを共有して、より良いアドバイスをすることもできます。

関連する問題