ios - 在模拟器上运行 RoboVM iOS MapView 后出错
<p><p>**</p>
<p>当我尝试使用 RoboVM IDE 运行 MapView iOs 时,应用程序启动后出现以下错误,没有编译错误,我尝试将 xcode 更新到当前版本 7.1.1 (7B1005.</p>
<p>感谢您的帮助。</p>
<p>**</p>
<pre><code>2015-11-14 10:34:25.715 Main *** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named MKMapView'
*** First throw call stack:
(
0 CoreFoundation 0x0000000108ae2f45 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000108020deb objc_exception_throw + 48
2 CoreFoundation 0x0000000108ae2e7d + + 205
3 UIKit 0x0000000106b7d5b1 UINibDecoderDecodeObjectForValue + 312
4 UIKit 0x0000000106b7d470 - + 278
5 UIKit 0x00000001069abfe1 - + 180
6 UIKit 0x0000000106b7d73a UINibDecoderDecodeObjectForValue + 705
7 UIKit 0x0000000106b7d8fb UINibDecoderDecodeObjectForValue + 1154
8 UIKit 0x0000000106b7d470 - + 278
9 UIKit 0x00000001069ab1f3 - + 1255
10UIKit 0x0000000106785c16 - + 381
11UIKit 0x0000000106786542 - + 178
12UIKit 0x00000001067868a0 - + 138
13UIKit 0x0000000106787013 - + 27
14UIKit 0x000000010666051c - + 61
15UIKit 0x0000000106660c05 - + 282
16UIKit 0x00000001066724a5 - + 42
17UIKit 0x00000001065ec396 - + 4131
18UIKit 0x00000001065f29c3 - + 1750
19UIKit 0x00000001065efba3 - + 188
20FrontBoardServices 0x00000001096ec784 - + 192
21FrontBoardServices 0x00000001096ecaf2 - + 45
22CoreFoundation 0x0000000108a0f011 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
23CoreFoundation 0x0000000108a04f3c __CFRunLoopDoSources0 + 556
24CoreFoundation 0x0000000108a043f3 __CFRunLoopRun + 867
25CoreFoundation 0x0000000108a03e08 CFRunLoopRunSpecific + 488
26UIKit 0x00000001065ef4f5 - + 402
27UIKit 0x00000001065f430d UIApplicationMain + 171
28Main 0x000000010361a260 org.robovm.apple.uikit.UIApplication.main(ILorg/robovm/rt/bro/ptr/BytePtr$BytePtrPtr;Ljava/lang/String;Ljava/lang/String;)I + 195
29Main 0x000000010361976b org.robovm.apple.uikit.UIApplication.main([Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;)V + 944
30Main 0x0000000103618930 org.robovm.apple.uikit.UIApplication.main( + 68
31Main 0x000000010314dad6 com.datavox.deliver.Main.main([Ljava/lang/String;)V + 171
32Main 0x00000001037c00ae _call0 + 142
33Main 0x00000001037b52ac callVoidMethod + 104
34Main 0x00000001037b7a86 rvmCallVoidClassMethodA + 277
35Main 0x00000001037b7b5a rvmCallVoidClassMethod + 134
36Main 0x00000001037afc5a rvmRun + 217
37Main 0x00000001037a77f5 main + 285
38libdyld.dylib 0x0000000107cc692d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Process finished with exit code 0
</code></pre></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>好的。 RoboVm 团队回答了我的问题。我只需要在 robovm.xml 配置文件中添加框架。</p>
<pre><code><frameworks>
<framework>MapKit</framework>
</frameworks>
</code></pre></p>
<p style="font-size: 20px;">关于ios - 在模拟器上运行 RoboVM iOS MapView 后出错,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/33710238/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/33710238/
</a>
</p>
页:
[1]