我正在我的应用程序中实现AWS DynamoDB。由于某些原因,当我运行应用程序时,由于服务配置为零,所以出现“ NSInternalInconsistencyExceptionException”错误。指示我在“使用此方法”之前配置Info.plist或设置“ defaultServiceConfiguration”。这是什么意思,我应该采取什么措施才能完成此配置?
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'The service configuration is `nil`. You need to configure `Info.plist` or set `defaultServiceConfiguration` before using this method.'
*** First throw call stack:
(
0 CoreFoundation 0x00000001090361e6 __exceptionPreprocess + 294
1 libobjc.A.dylib 0x0000000105acc031 objc_exception_throw + 48
2 AWSDynamoDB 0x0000000105390a9c __54+[AWSDynamoDBObjectMapper defaultDynamoDBObjectMapper]_block_invoke + 492
3 libdispatch.dylib 0x000000010a0c17ec _dispatch_client_callout + 8
4 libdispatch.dylib 0x000000010a0c2d64 dispatch_once_f + 285
5 AWSDynamoDB 0x0000000105390884 +[AWSDynamoDBObjectMapper defaultDynamoDBObjectMapper] + 84
6 Pathway 0x0000000104dfa1bf _T07Pathway16CreateNewAccountC10createUserySSSg9firstName_AE04lastH0AE8usernameAE8passwordtF + 1279
7 Pathway 0x0000000104df96e9 _T07Pathway16CreateNewAccountC6sendToyypF + 457
8 Pathway 0x0000000104df97bc _T07Pathway16CreateNewAccountC6sendToyypFTo + 76
9 UIKit 0x00000001063693e8 -[UIApplication sendAction:to:from:forEvent:] + 83
10 UIKit 0x00000001064e47a4 -[UIControl sendAction:to:forEvent:] + 67
11 UIKit 0x00000001064e4ac1 -[UIControl _sendActionsForEvents:withEvent:] + 450
12 UIKit 0x00000001064e3a09 -[UIControl touchesEnded:withEvent:] + 580
13 UIKit 0x00000001063de0bf -[UIWindow _sendTouchesForEvent:] + 2729
14 UIKit 0x00000001063df7c1 -[UIWindow sendEvent:] + 4086
15 UIKit 0x0000000106383310 -[UIApplication sendEvent:] + 352
16 UIKit 0x0000000106cc46af __dispatchPreprocessedEventFromEventQueue + 2796
17 UIKit 0x0000000106cc72c4 __handleEventQueueInternal + 5949
18 CoreFoundation 0x0000000108fd8bb1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
19 CoreFoundation 0x0000000108fbd4af __CFRunLoopDoSources0 + 271
20 CoreFoundation 0x0000000108fbca6f __CFRunLoopRun + 1263
21 CoreFoundation 0x0000000108fbc30b CFRunLoopRunSpecific + 635
22 GraphicsServices 0x000000010d8d3a73 GSEventRunModal + 62
23 UIKit 0x0000000106368057 UIApplicationMain + 159
24 Pathway 0x0000000104e00b97 main + 55
25 libdyld.dylib 0x000000010a13e955 start + 1
26 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)