I am trying to make MoPub native ads to work on example demo app (using Swift).
I am getting the following exception when table it trying to load native ads:
2017-03-24 18:02:57.095 mopub-native-adapter[31020:844300] MOPUB: Successfully loaded native ad.
2017-03-24 18:02:57.143 mopub-native-adapter[31020:844300] This application is modifying the autolayout engine from a background thread after the engine was accessed from the main thread. This can lead to engine corruption and weird crashes.
Stack:(
0 CoreFoundation 0x04137bf2 __exceptionPreprocess + 194
1 libobjc.A.dylib 0x038c5e66 objc_exception_throw + 52
2 CoreFoundation 0x041a9f85 +[NSException raise:format:] + 133
3 Foundation 0x00fcbf61 _AssertAutolayoutOnAllowedThreadsOnly + 197
4 Foundation 0x00ddd876 -[NSISEngine withBehaviors:performModifications:] + 28
5 Foundation 0x00ddd855 -[NSISEngine withAutomaticOptimizationDisabled:] + 31
6 UIKit 0x01bca2cb -[UIView(Hierarchy) _postMovedFromSuperview:] + 880
7 UIKit 0x01bdb5f0 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 2318
8 UIKit 0x01bc7d64 -[UIView(Hierarchy) insertSubview:atIndex:] + 47
9 UIKit 0x01c7030d -[UITableView _addContentSubview:atBack:] + 390
10 UIKit 0x01c9282d __53-[UITableView _configureCellForDisplay:forIndexPath:]_block_invoke + 3151
11 UIKit 0x01bd30e9 +[UIView(Animation) performWithoutAnimation:] + 102
12 UIKit 0x01bd3133 +[UIView(Animation) _performWithoutAnimation:] + 32
13 UIKit 0x01c91bc5 -[UITableView _configureCellForDisplay:forIndexPath:] + 506
14 UIKit 0x01c89b94 -[UITableView dequeueReusableCellWithIdentifier:forIndexPath:] + 446
15 mopub-native-adapter 0x0018694b -[MPTableViewAdPlacer tableView:cellForRowAtIndexPath:] + 219
16 UIKit 0x01c9e408 -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 772
17 UIKit 0x01c9e6d0 -[UITableView _createPreparedCellForGlobalRow:willDisplay:] + 92
18 UIKit 0x0201a6ca -[_UITableViewUpdateSupport(Private) _setupAnimationsForNewlyInsertedCells] + 8260
19 UIKit 0x02024edd -[_UITableViewUpdateSupport _setupAnimations] + 265
20 UIKit 0x01c73f5d -[UITableView _updateWithItems:updateSupport:] + 3123
21 UIKit 0x01c6c01d -[UITableView _endCellAnimationsWithContext:] + 18826
22 UIKit 0x01c84b05 -[UITableView endUpdatesWithContext:] + 49
23 UIKit 0x01c84b29 -[UITableView endUpdates] + 31
24 mopub-native-adapter 0x0018b61d -[UITableView(MPTableViewAdPlacer) mp_endUpdates] + 45
25 mopub-native-adapter 0x00186082 -[MPTableViewAdPlacer adPlacer:didLoadAdAtIndexPath:] + 674
26 mopub-native-adapter 0x00183eb6 -[MPStreamAdPlacer fillAdsInConsideredRange] + 726
27 mopub-native-adapter 0x00183ffe -[MPStreamAdPlacer adSourceDidFinishRequest:] + 78
28 mopub-native-adapter 0x0015de37 -[MPNativeAdSource adSourceQueueAdIsAvailable:] + 119
29 mopub-native-adapter 0x0015ead0 __39-[MPNativeAdSourceQueue replenishCache]_block_invoke + 384
30 mopub-native-adapter 0x0015af77 _45-[MPNativeAdRequest assignCompletionHandler:]block_invoke + 151
31 mopub-native-adapter 0x0015c1d2 -[MPNativeAdRequest completeAdRequestWithAdObject:error:] + 626
32 mopub-native-adapter 0x0015c95e -[MPNativeAdRequest nativeCustomEvent:didLoadAd:] + 990
33 mopub-native-adapter 0x000db8b9 TFFC20mopub_native_adapter24YouAppiNativeCustomEvent9requestAdFT19withCustomEventInfoGSQGVs10DictionaryVs11AnyHashableP____T_U_FGSqCS_7AdModel_T + 457
34 mopub-native-adapter 0x000dba3b TPA__TFFC20mopub_native_adapter24YouAppiNativeCustomEvent9requestAdFT19withCustomEventInfoGSQGVs10DictionaryVs11AnyHashableP____T_U_FGSqCS_7AdModel_T + 91
35 mopub-native-adapter 0x000e8db0 TFFC20mopub_native_adapter15YouAppiNativeAd6loadAdFT10onAdLoadedFGSqCS_7AdModel_T_9onAdErrorFGSqPs5Error__T__T_U_FTGSqV10Foundation4Data_GSqCSo11URLResponse_GSqPS2____T + 1888
36 mopub-native-adapter 0x000e96e7 TPA__TFFC20mopub_native_adapter15YouAppiNativeAd6loadAdFT10onAdLoadedFGSqCS_7AdModel_T_9onAdErrorFGSqPs5Error__T__T_U_FTGSqV10Foundation4Data_GSqCSo11URLResponse_GSqPS2____T + 135
37 mopub-native-adapter 0x000e8fde TTRXFo_oGSqV10Foundation4Data_oGSqCSo11URLResponse_oGSqPs5Error____XFdCb_dGSqCSo6NSData_dGSqS1__dGSqCSo7NSError + 206
38 CFNetwork 0x05053176 __75-[__NSURLSessionLocal taskForClass:request:uploadFile:bodyData:completion:]_block_invoke + 33
39 CFNetwork 0x050529c0 __49-[__NSCFLocalSessionTask _task_onqueue_didFinish]_block_invoke + 333
40 Foundation 0x00dc3f8b NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK + 12
41 Foundation 0x00dc3c5e -[NSBlockOperation main] + 105
42 Foundation 0x00dc2436 -[__NSOperationInternal _start:] + 672
43 Foundation 0x00dc218e -[NSOperation start] + 70
44 Foundation 0x00dbe23e __NSOQSchedule_f + 220
45 libdispatch.dylib 0x05ad3cc3 _dispatch_client_callout + 14
46 libdispatch.dylib 0x05ab03ae _dispatch_queue_serial_drain + 1619
47 libdispatch.dylib 0x05ab0bc2 _dispatch_queue_invoke + 1109
48 libdispatch.dylib 0x05ab35e4 _dispatch_root_queue_drain + 470
49 libdispatch.dylib 0x05ab33a6 _dispatch_worker_thread3 + 143
50 libsystem_pthread.dylib 0x05e4fd3e _pthread_wqthread + 1070
51 libsystem_pthread.dylib 0x05e4f8ea start_wqthread + 34
)
Anything I am missing?