Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Problems using AdobeMobileSDK under iOS 11

mtrybus_bsk
Level 1
Level 1

Hi,

I've received issue from iOS developing team working with beta version of newest Apple system, as follows:

We run  collectLifecycleData just after application starts:

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {

        #if DEBUG

ADBMobile.setDebugLogging(true)

        #endif

     

        ADBMobile.overrideConfigPath(Bundle(for: object_getClass(self)).path(forResource: "ADBMobileConfig", ofType: "json"));

ADBMobile.collectLifecycleData()

initializeServices()

on iOS 11 there's an Adobe crash in log:

=================================================================

Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState]

PID: 451, TID: 51548, Thread name: (none), Queue name: com.adobe.analytics.processing, QoS: 0

Backtrace:

4   AdobeMobileSDK 0x000000010268bd14 +[ADBApplicationOnlyFunctionality isRunningOnBackground] + 40

5   AdobeMobileSDK 0x00000001026764b4 +[ADBAppOnlyFuncBridge isRunningOnBackground] + 100

6   AdobeMobileSDK 0x000000010267b360 __ADBLifecycleStartInternal_block_invoke + 76

7   libdispatch.dylib                   0x0000000103eb18ec _dispatch_call_block_and_release + 24

8   libdispatch.dylib                   0x0000000103eb18ac _dispatch_client_callout + 16

9   libdispatch.dylib                   0x0000000103ec0380 _dispatch_queue_serial_drain + 692

10  libdispatch.dylib                   0x0000000103eb4e30 _dispatch_queue_invoke + 332

11  libdispatch.dylib                   0x0000000103ec135c _dispatch_root_queue_drain_deferred_wlh + 424

12  libdispatch.dylib                   0x0000000103ec8298 _dispatch_workloop_worker_thread + 652

13  libsystem_pthread.dylib             0x0000000186e5824c _pthread_wqthread + 932

14  libsystem_pthread.dylib             0x0000000186e57e9c start_wqthread + 4

We suppose the reason: iOS11 not allow run UI function in background thread. We know that is sometimes strange mean "UI function" f.ex function like Appdelegate.sharedInstance is for apple UI function.

We use AdobeMobileSDK (4.13.5) from CocoaPods.

Thanks in advance,

Michał

1 Accepted Solution
Kaushalendra
Correct answer by
Employee
Employee

Hi mtrybus_bsk​,

I believe that this issue needs a more secure channel to proceed with analysis as we need to share the below details:

- App Build using which the crash can be replicated

- Adobe Debug Logs (in console logs)

- Code files

Hence, I would suggest one of the Supported Users in your organization to raise a ticket with Adobe ClientCare <clientcare@adobe.com>

View solution in original post

2 Replies
Kaushalendra
Correct answer by
Employee
Employee

Hi mtrybus_bsk​,

I believe that this issue needs a more secure channel to proceed with analysis as we need to share the below details:

- App Build using which the crash can be replicated

- Adobe Debug Logs (in console logs)

- Code files

Hence, I would suggest one of the Supported Users in your organization to raise a ticket with Adobe ClientCare <clientcare@adobe.com>

View solution in original post

lbeksa_ing
Level 1
Level 1

Hi!

In message from mtrybus_bsk 2017-08-07 03:10 you have a code snippet and Adobe Debug Logs,

this is all who you need to reproduce and debug a problem. Just connect Adobe library to sample project and add that line: ADBMobile.collectLifecycleData() to didFinishLaunchingWithOptions event.