Coder Social home page Coder Social logo

appspector / ios-sdk Goto Github PK

View Code? Open in Web Editor NEW
69.0 13.0 5.0 4.9 GB

AppSpector is a debugging service for mobile apps

Home Page: https://appspector.com

License: Other

Ruby 64.16% Swift 35.84%
xcode ios swift debug debugging-tool debugger-visualizer objective-c coredata http sqlite network-monitoring ios-sdk remote-logging logging introspection logs logger debugger nslog network-analysis

ios-sdk's Introduction

GitHub release

AppSpector

With AppSpector you can remotely debug your app running in the same room or on another continent. You can measure app performance, view database content, logs, network requests and many more in realtime. This is the instrument that you've been looking for. Don't limit yourself only to simple logs. Debugging don't have to be painful!

Installation

Each app you want to use with AppSpector SDK you have to register on the web (https://app.appspector.com). After adding the application navigate to app settings and copy API key. To use AppSpector on tvOS just follow installation steps below but use AppSpectorTVSDK instead.

CocoaPods

To use CocoaPods add this line to your podfile and run pod install:

pod 'AppSpectorSDK'

To get SDK version with encryption feature use AppSpectorE2E pod:

pod 'AppSpectorSDKE2E'

Carthage

  • Install Carthage
  • Add binary "https://github.com/appspector/ios-sdk/raw/1.4.0/AppSpector.json" to your Cartfile
  • Run carthage update
  • Drag AppSpectorSDK.framework from the appropriate platform directory in Carthage/Build/ to the “Linked Frameworks and Libraries” section of your Xcode project’s “General” settings

To get SDK version with encryption feature use AppSpectorE2E link: https://raw.githubusercontent.com/appspector/ios-sdk/1.4.0/AppSpectorE2E.json

SPM

AppSpector supports SPM but unfortunately not for E2E version. Long story short: we have to wait for guys from openssl to support Apple Sillicon, so if you need version with end-to-end encryption please refer to the main repo (https://github.com/appspector/ios-sdk) and use one of the installation methods available.

For the rest of you: to install SDK via SPM just press '+' sign in Xcode list of packages and paste repo address: 'https://github.com/appspector/ios-sdk-spm' into the search field: Two targets will be available: for iOS and tvOS, choose which one you need, press 'next' and you are done:

Manually

To manually link just download AppSpectorSDK.framework and drop AppSpectorSDK.framework to your XCode project. Then navigate to your project settings and under 'General' tab add AppSpectorSDK framework to 'Embedded Binaries' section.

If you plan either to submit builds with AppSpector SDK to the Apple TestFlight for testing or archive them for AdHoc distribution you'll have to perform one more step: create a new “Run Script Phase” in your app’s target’s “Build Phases” and paste the following script:

code_sign() {
    echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}"
    echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements $1"
    /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements "$1"
}

cd "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}"

for file in $(find . -type f -perm +111); do
    if ! [[ "$(file "$file")" == *"dynamically linked shared library"* ]]; then
        continue
    fi

    archs="$(lipo -info "${file}" | rev | cut -d ':' -f1 | rev)"
    stripped=""
    for arch in $archs; do
        if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then
            lipo -remove "$arch" -output "$file" "$file" || exit 1
            stripped="$stripped $arch"
        fi
    done

    if [[ "$stripped" != "" ]]; then
        echo "Stripped $file of architectures:$stripped"
        if [ "${CODE_SIGNING_REQUIRED}" == "YES" ]; then
            code_sign "${file}"
        fi
    fi
done

This script is required as a workaround for this Apple AppStore bug

Apple TV

AppSpector is also available for tvOS, you can use any of described above methods to install it, all you need is just use AppSpectorTVSDK pod instead of AppSpectorSDK and include AppSpectorTVSDK.framework instead of AppSpectorSDK.framework.

Join our slack to discuss setup process and features

Features

AppSpector provides 10 monitors that tracks different activities inside your app:

Monitors

CoreData monitor

Browser for CoreData stores in your app. Shows model scheme just like Xcode editor, allows to navigate data, follow relations, switching contexts and running custom fetch requests against any model / context.

CoreData

SQLite monitor

Provides browser for sqlite databases found in your app. Allows to track all queries, shows DB scheme and data in DB. You can issue custom SQL query on any DB and see results in browser immediately.

SQLite monitor

HTTP monitor

Shows all HTTP traffic in your app. You can examine any request, see request/response headers and body. We provide XML and JSON highliting for request/responses with formatting and folding options so even huge responses are easy to look through.

SQLite monitor

Logs monitor

Displays all logs generated by your app. We provide integration with popular logging framework CocoaLumberjack, all your logs written with loggers from it will be displayed with respect to their logging levels.

Logs

Location monitor

Most of the apps are location-aware. Testing it requires changing locations yourself. In this case, location mocking is a real time saver. Just point to the location on the map and your app will change its geodata right away.

Location

Screenshot monitor

Simply captures screenshot from the device.

Performance monitor

Displays real-time graphs of the CPU / Memory/ Network / Disk / Battery usage.

Environment monitor

Gathers all of the environment variables and arguments in one place, info.plist, cli arguments and much more.

Notification Center monitor

Tracks all posted notifications and subscriptions. You can examine notification user info, sender/reciever objects, etc. And naturally you can post notifications to your app from the frontend.

File System monitor

Provides access to the application sandbox and bundle. Using this monitor you can download, remove or upload files, create directories and just walk around your app FS.

Commands monitor

In short commands monitor is a remote callback collection. It allows you to register custom class as a command then trigger it from the frontend and complete or fail it from your code after performing some actions.

Events monitor

Events monitor allows you to send custom built event to the current session. Event will be processed as any other monitor event, displayed and stored in history.

End-to-End encryption

AppSpector SDK collects and stores user data including logs, DB content and network traffic. All of this can contain sensetive data so to protect your privacy we offer separate build of the SDK with E2EE feature. It allows you to encrypt all data AppSpector sends from or to your device and be sure only you can decrypt it. To use encryption all you need is a special SDK version (see Installation for more details) and AppSpector desktop application. Due to security reasons encrypted sessions are only available in desktop app.

To start using encryption you have to create a new application from the desktop app and enable E2E switch. After that please navigate to setup guide where you can as usual get your API key and public key used for encrypted sessions. Pass this keys to the AppSpectorConfig and you are ready to go. Please refer to the Configure section for more details.

Docs

Please refer to AppSpector documentation for detailed features description and guides.

Feedback

Let us know what do you think or what would you like to be improved: [email protected].

ios-sdk's People

Contributors

deszip avatar mmasterson avatar sergeyzenchenko avatar xnekoix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ios-sdk's Issues

AppSpector iOS Crash on v1.4.5

I'm experiencing crash on app start up when running the project directly from XCode (debug configuration), due to AppSpector. Here's more detail about it:

Installed version: v1.4.5 via Cocoapods

Running device: iPhone 6s
iOS version: 14.3

Crash log:
Screen Shot 2022-01-04 at 11 18 30 AM

*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]
(
	0   CoreFoundation                      0x0000000185e759ec 6FD5304A-9759-3E22-A863-456EAB55F4CC + 1157612
	1   libobjc.A.dylib                     0x000000019a1deb54 objc_exception_throw + 56
	2   CoreFoundation                      0x0000000185edfd98 6FD5304A-9759-3E22-A863-456EAB55F4CC + 1592728
	3   CoreFoundation                      0x0000000185eeb1f4 6FD5304A-9759-3E22-A863-456EAB55F4CC + 1638900
	4   CoreFoundation                      0x0000000185d708a8 6FD5304A-9759-3E22-A863-456EAB55F4CC + 88232
	5   CoreFoundation                      0x0000000185d63c04 6FD5304A-9759-3E22-A863-456EAB55F4CC + 35844
	6   AppSpectorSDK                       0x00000001065cb6bc -[ASSessionStarter errorFromAPIError:] + 124
	7   AppSpectorSDK                       0x00000001065ca938 __55-[ASSessionStarter startSessionWithRequest:completion:]_block_invoke + 260
	8   AppSpectorSDK                       0x00000001065403a0 __85+[ASNetworkObserver asyncCompletionWrapperForOriginalRequestID:mechanism:completion:]_block_invoke + 448
	9   NewRelic                            0x0000000109d1bd34 NRMAOverride__uploadTaskWithStreamedRequest + 880
	10  CFNetwork                           0x000000018646b8e4 CFNetServiceBrowserSearchForServices + 75936
	11  CFNetwork                           0x000000018647c3b4 _CFHTTPMessageSetResponseProxyURL + 9332
	12  libdispatch.dylib                   0x0000000110813ce4 _dispatch_call_block_and_release + 24
	13  libdispatch.dylib                   0x0000000110815528 _dispatch_client_callout + 16
	14  libdispatch.dylib                   0x000000011081c5ac _dispatch_lane_serial_drain + 748
	15  libdispatch.dylib                   0x000000011081d268 _dispatch_lane_invoke + 504
	16  libdispatch.dylib                   0x0000000110828a5c _dispatch_workloop_worker_thread + 1456
	17  libsystem_pthread.dylib             0x00000001ce56f5a4 _pthread_wqthread + 272
	18  libsystem_pthread.dylib             0x00000001ce572874 start_wqthread + 8

Anyone can help?
Thanks.


P.S.: Can anyone tell me what is the last stable version?

AppSpector crash

AppSpector CoreDataMonitor has crashed a couple times for us (we're not using core data so I'll just disable it, but just wanted to report it). This is with sdk version 1.3.2

Frameworks/CoreFoundation.framework/CoreFoundation___exceptionPreprocess	
/usr/lib/libobjc.A.dylib_objc_exception_throw	
Frameworks/CoreFoundation.framework/CoreFoundation__CFThrowFormattedException	
Frameworks/CoreFoundation.framework/CoreFoundation-[__NSPlaceholderArray initWithObjects:count:].cold.3	
Frameworks/CoreFoundation.framework/CoreFoundation-[__NSPlaceholderArray initWithObjects:count:]	
Frameworks/CoreFoundation.framework/CoreFoundation-[NSArray initWithArray:range:copyItems:]	
Frameworks/AppSpectorSDK.framework/AppSpectorSDK-[ASCDOEventDispatcher dequeueEventsOfType:]	
Frameworks/AppSpectorSDK.framework/AppSpectorSDK-[ASCDOEventDispatcher addHandler:forEventType:]	
Frameworks/AppSpectorSDK.framework/AppSpectorSDK-[ASCoreDataMonitor start]	
Frameworks/AppSpectorSDK.framework/AppSpectorSDK__43-[ASMonitorsController startLoadedMonitors]_block_invoke	
Frameworks/CoreFoundation.framework/CoreFoundation___NSDICTIONARY_IS_CALLING_OUT_TO_A_BLOCK__	
Frameworks/CoreFoundation.framework/CoreFoundation-[__NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:]	
Frameworks/AppSpectorSDK.framework/AppSpectorSDK-[ASMonitorsController startLoadedMonitors]	
Frameworks/AppSpectorSDK.framework/AppSpectorSDK-[AppSpector startMonitors]	
Frameworks/AppSpectorSDK.framework/AppSpectorSDK__28+[AppSpector runWithConfig:]_block_invoke```

Building ADHOC/enterprise build with fastlane leads to errors

This occours since the last pod update to version 1.3.7.

Any ideas?

Console output:
xcodebuild -exportArchive -exportOptionsPlist /var/folders/8c/qsrsp2kj2d1b3jy8xhn92l6r0000gn/T/gym_config20201123-57298-xcz5d0.plist -archivePath '/Users/katsumoto/Library/Developer/Xcode/Archives/2020-11-23/IOM_beta 2020-11-23 17.38.05.xcarchive' -exportPath /var/folders/8c/qsrsp2kj2d1b3jy8xhn92l6r0000gn/T/gym_output20201123-57298-15185kr 2020-11-23 17:39:00.024 xcodebuild[59646:3201780] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/8c/qsrsp2kj2d1b3jy8xhn92l6r0000gn/T/MerchantBETA_2020-11-23_17-39-00.023.xcdistributionlogs'. error: exportArchive: ipatool failed with an exception: #<CmdSpec::NonZeroExitException: $ /Applications/Xcode_RC.app/Contents/Developer/usr/bin/python3 /Applications/Xcode_RC.app/Contents/Developer/usr/bin/bitcode-build-tool -v -t /Applications/Xcode_RC.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin --sdk /Applications/Xcode_RC.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk -o /var/folders/8c/qsrsp2kj2d1b3jy8xhn92l6r0000gn/T/ipatool20201123-59649-3e037h/thinned-out/armv7/Payload/ParcellyMerchantBeta.app/Frameworks/AppSpectorSDK.framework/AppSpectorSDK --generate-dsym /var/folders/8c/qsrsp2kj2d1b3jy8xhn92l6r0000gn/T/ipatool20201123-59649-3e037h/thinned-out/armv7/Payload/ParcellyMerchantBeta.app/Frameworks/AppSpectorSDK.framework/AppSpectorSDK.dSYM --strip-swift-symbols /var/folders/8c/qsrsp2kj2d1b3jy8xhn92l6r0000gn/T/ipatool20201123-59649-3e037h/thinned-in/armv7/Payload/ParcellyMerchantBeta.app/Frameworks/AppSpectorSDK.framework/AppSpectorSDK Status: pid 59877 exit 1 Stdout: SDK path: /Applications/Xcode_RC.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk SDK version: 14.2 PATH: ['/Applications/Xcode_RC.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin', '/Applications/Xcode_RC.app/Contents/Developer/usr/bin'] Using: /Applications/Xcode_RC.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo MachoInfo: cd / ['/Applications/Xcode_RC.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo', '-info', '/var/folders/8c/qsrsp2kj2d1b3jy8xhn92l6r0000gn/T/ipatool20201123-59649-3e037h/thinned-in/armv7/Payload/ParcellyMerchantBeta.app/Frameworks/AppSpectorSDK.framework/AppSpectorSDK']

Performance mode is always active

Hello,
I encountered one issue with your library, in configuration I added four monitors that I need (http, logs, sqlite and userDefaults). Every time appspector starts it turns on these 4 monitors and performance monitor alongside them. I do not want to run performance monitor because I don't need it and it consumes a lot of data. This is the exact code I use in my application:
let appSpectorConfig = AppSpectorConfig(apiKey: "ios_.................................", monitorIDs: [Monitor.http, Monitor.logs,Monitor.sqlite, Monitor.userdefaults]) AppSpector.run(with: appSpectorConfig!)
Please check if there is some issue with performance mode or am I doing something wrong? I am looking forward to hearing from you.

AppSpectorSDK 1.4.6 exception being thrown on app start

There are times when launching our app that it crashes on start up. The issue seems to be related to AppSpectorSDK 1.4.6, I could not reproduce the issue on 1.4.5. This particular stack trace is from running a UI test that consistently crashes.

Invalid type in JSON write (NSError)
(
	0   CoreFoundation                      0x00007fff20406d44 __exceptionPreprocess + 242
	1   libobjc.A.dylib                     0x00007fff201a4a65 objc_exception_throw + 48
	2   Foundation                          0x00007fff208a9ca9 _writeJSONValue + 672
	3   Foundation                          0x00007fff208ae32e ___writeJSONObject_block_invoke + 350
	4   CoreFoundation                      0x00007fff2035e4e5 __NSDICTIONARY_IS_CALLING_OUT_TO_A_BLOCK__ + 7
	5   CoreFoundation                      0x00007fff20477c38 -[__NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:] + 255
	6   Foundation                          0x00007fff208ad8fb _writeJSONObject + 555
	7   Foundation                          0x00007fff208ae32e ___writeJSONObject_block_invoke + 350
	8   CoreFoundation                      0x00007fff2035e4e5 __NSDICTIONARY_IS_CALLING_OUT_TO_A_BLOCK__ + 7
	9   CoreFoundation                      0x00007fff20477c38 -[__NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:] + 255
	10  Foundation                          0x00007fff208ad8fb _writeJSONObject + 555
	11  Foundation                          0x00007fff208a99c8 -[_NSJSONWriter dataWithRootObject:options:] + 71
	12  Foundation                          0x00007fff208accf8 +[NSJSONSerialization dataWithJSONObject:options:error:] + 117
	13  AppSpectorSDK                       0x0000000112b22b2d -[ASSentryLogger logSentryEvent:] + 81
	14  AppSpectorSDK                       0x0000000112b22ac2 -[ASSentryLogger logEntry:] + 329
	15  AppSpectorSDK                       0x0000000112a8f4ab -[ASLogger logLevel:tag:extra:file:lineNumber:message:] + 544
	16  AppSpectorSDK                       0x0000000112a8f24e -[ASLogger logLevel:tag:extra:file:lineNumber:format:] + 267
	17  AppSpectorSDK                       0x0000000112aa69a3 -[ASHTTPCache cacheData:withKey:] + 313
	18  AppSpectorSDK                       0x0000000112aa6487 -[ASHTTPCache cacheResponse:body:withUUID:] + 130
	19  AppSpectorSDK                       0x0000000112ab260b -[ASHTTPRecorder recordLoadingFinishedWithRequestID:responseBody:] + 278
	20  AppSpectorSDK                       0x0000000112a7fcde __85+[ASNetworkObserver asyncCompletionWrapperForOriginalRequestID:mechanism:completion:]_block_invoke + 402
	21  CFNetwork                           0x00007fff23e39a92 CFNetwork + 31378
	22  CFNetwork                           0x00007fff23e55118 _CFHTTPMessageSetResponseProxyURL + 16297
	23  libdispatch.dylib                   0x00007fff201148e4 _dispatch_call_block_and_release + 12
	24  libdispatch.dylib                   0x00007fff20115b25 _dispatch_client_callout + 8
	25  libdispatch.dylib                   0x00007fff2011c0df _dispatch_lane_serial_drain + 753
	26  libdispatch.dylib                   0x00007fff2011ccf8 _dispatch_lane_invoke + 455
	27  libdispatch.dylib                   0x00007fff2012797b _dispatch_workloop_worker_thread + 779
	28  libsystem_pthread.dylib             0x00007fff6fb05fd0 _pthread_wqthread + 326
	29  libsystem_pthread.dylib             0x00007fff6fb04f57 start_wqthread + 15
)dyld4 config: DYLD_ROOT_PATH=/Applications/Xcode-13.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot DYLD_LIBRARY_PATH=/Users/<redacted>/Library/Developer/Xcode/DerivedData/BuzzFeed-hddfoxdzduycxlhjqvwmycwqlvux/Build/Products/Debug-iphonesimulator DYLD_INSERT_LIBRARIES=/Applications/Xcode-13.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libMainThreadChecker.dylib DYLD_FRAMEWORK_PATH=/Users/<redacted>/Library/Developer/Xcode/DerivedData/BuzzFeed-hddfoxdzduycxlhjqvwmycwqlvux/Build/Products/Debug-iphonesimulator:/Users/<redacted>/Library/Developer/Xcode/DerivedData/BuzzFeed-hddfoxdzduycxlhjqvwmycwqlvux/Build/Products/Debug-iphonesimulator/PackageFrameworks
CoreSimulator 802.6 - Device: iPhone 8 (D68B2444-9D94-4E28-A20A-1F9802089E69) - Runtime: iOS 15.4 (19E240) - DeviceType: iPhone 8

Carthage complains that there "no shared framework schemes"

➜  Example git:(feature/example-app) ✗ carthage update
*** Cloning ios-sdk
*** Checking out ios-sdk at "1.2.1"
*** xcodebuild output can be found in /var/folders/54/dsdz_97x6hs3x71k9v_h22j80000gn/T/carthage-xcodebuild.u7Utmb.log
*** Skipped building ios-sdk due to the error:
Dependency "ios-sdk" has no shared framework schemes

If you believe this to be an error, please file an issue with the maintainers at https://github.com/appspector/ios-sdk/issues/new

I imagine this may be because Appspector is a binary/closed-source dependency, but the final result remains that Carthage produces no .framework bundle for use in my project.

(the log file mentioned above turns out to be empty)

v1.4.9 Missing path 'DebugSymbolsPath'

I updated to the latest version with SPM, and it cannot build, it fails with that error:

Missing path (/Users/.../SourcePackages/artifacts/ios-sdk-spm/AppSpectorSDK/AppSpectorSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs) from XCFramework 'AppSpectorSDK.xcframework' as defined by 'DebugSymbolsPath' in its Info.plist file

No versions of 'ios-sdk-spm' match the requirement 1.4.9

When trying to update 'ios-sdk-spm' package in Xcode I get the following error:

Failed to resolve dependencies Dependencies could not be resolved because no versions of 'ios-sdk-spm' match the requirement 1.4.9..<2.0.0 and root depends on 'ios-sdk-spm' 1.4.9..<2.0.0.

I believe this is because the CFBundleVersion value in the plist file is set to 1.4.8 for AppSpectorSDK, and AppSpectorTVSDK.

Screenshot 2024-03-20 at 14 25 40 Screenshot 2024-03-20 at 14 25 52

How to reproduce it:

  • In Xcode, go to Package Dependencies and update 'ios-sdk-spm' to 1.4.9
  • Download the latest release source code , unzip AppSpectorSDK and inspect the plist file.

Crash on iOS 15 - Release version

On iOS 15 beta, my app crash on launch.
AppSpector v 1.4.0. Haven't tried on 1.4.2 yet.

In logs I can see:

Incident Identifier: 30BC18D6-866D-4534-9AE6-C7A0008BF89D
Hardware Model:      iPhone10,6
Process:             **** [25383]
Path:                /private/var/containers/Bundle/Application/8869313F-24EB-479D-AE18-A2R98303F764/****-.app/****
Identifier:          ****
Version:             ****
AppStoreTools:       12E506
AppVariant:          1:iPhone10,6:14
Beta:                YES
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           **** [1958]

Date/Time:           2021-07-12 14:12:43.2043 +0300
Launch Time:         2021-07-12 14:12:42.7230 +0300
OS Version:          iPhone OS 15.0 (19A5281j)
Release Type:        Beta
Baseband Version:    4.50.01
Report Version:      104

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Subtype: KERN_PROTECTION_FAILURE at 0x00000001ea3709f8
Exception Codes: 0x0000000000000002, 0x00000001ea3709f8
VM Region Info: 0x1ea3709f8 is in 0x1ea36dff0-0x1ea3bbfb0;  bytes after start: 10760  bytes before end: 308663
      REGION TYPE                 START - END      [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      __DATA_CONST             1ea339a28-1ea36dff0 [  209K] r--/rw- SM=COW  ...CoreTelephony
--->  __DATA_CONST             1ea36dff0-1ea3bbfb0 [  312K] r--/rw- SM=COW  ...ork/CFNetwork
      __DATA_CONST             1ea3bbfb0-1ea3de4b0 [  137K] r--/rw- SM=COW  ...network.dylib
Exception Note:  EXC_CORPSE_NOTIFY
Terminating Process: exc handler [25383]
Triggered by Thread:  0


Thread 0 name:
Thread 0 Crashed:
0   AppSpectorSDK                 	0x0000000102cddf7c perform_rebinding_with_section + 468 (fishhook.c:144)
1   AppSpectorSDK                 	0x0000000102cddf24 perform_rebinding_with_section + 380 (fishhook.c:135)
2   AppSpectorSDK                 	0x0000000102cddc8c rebind_symbols_for_image + 568 (fishhook.c:240)
3   dyld                          	0x0000000101524138 ___ZN5dyld44APIs33_dyld_register_func_for_add_imageEPFvPK11mach_headerlE_block_invoke + 164 (DyldAPIs.cpp:0)
4   dyld                          	0x000000010151ba18 dyld4::RuntimeState::withLoadersReadLock(void () block_pointer) + 60 (DyldRuntimeState.cpp:139)
5   dyld                          	0x0000000101523910 dyld4::APIs::_dyld_register_func_for_add_image(void (*)(mach_header const*, long)) + 124 (DyldAPIs.cpp:801)
6   AppSpectorSDK                 	0x0000000102cddd7c aps_rebind_symbols + 144 (fishhook.c:274)
7   AppSpectorSDK                 	0x0000000102c4b698 +[ASSQLiteQueryInterceptor load] + 284 (ASSQLiteQueryInterceptor.m:0)
8   libobjc.A.dylib               	0x000000019c259d90 load_images + 1076 (objc-loadmethod.mm:204)
9   dyld                          	0x000000010151d720 dyld4::RuntimeState::notifyObjCInit(dyld4::Loader const*) + 160 (DyldRuntimeState.cpp:1542)
10  dyld                          	0x000000010151f198 dyld4::Loader::runInitializersBottomUp(dyld4::RuntimeState&, dyld3::Array<dyld4::Loader const*>&) const + 192 (Loader.cpp:1264)
11  dyld                          	0x000000010151f180 dyld4::Loader::runInitializersBottomUp(dyld4::RuntimeState&, dyld3::Array<dyld4::Loader const*>&) const + 168 (Loader.cpp:1258)
12  dyld                          	0x0000000101526d14 dyld4::Loader::runInitializersBottomUpPlusUpwardLinks(dyld4::RuntimeState&) const + 120 (Loader.cpp:1277)
13  dyld                          	0x0000000101522ea0 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 2600 (dyldMain.cpp:757)
14  dyld                          	0x000000010153580c start + 412 (dyldMain.cpp:879)

Thread 1 name:
Thread 1:
0   libobjc.A.dylib               	0x000000019c25136c realizeClassWithoutSwift(objc_class*, objc_class*) + 44 (objc-object.h:97)
1   libobjc.A.dylib               	0x000000019c251518 realizeClassWithoutSwift(objc_class*, objc_class*) + 472 (objc-runtime-new.mm:2620)
2   libobjc.A.dylib               	0x000000019c251500 realizeClassWithoutSwift(objc_class*, objc_class*) + 448 (objc-runtime-new.mm:2619)
3   libobjc.A.dylib               	0x000000019c25eecc realizeClassMaybeSwiftMaybeRelock(objc_class*, mutex_tt<false>&, bool) + 336 (objc-runtime-new.mm:2817)
4   libobjc.A.dylib               	0x000000019c26cd68 realizeAllClasses() + 164 (objc-runtime-new.mm:2864)
5   libobjc.A.dylib               	0x000000019c26dde0 objc_getClassList + 92 (objc-runtime-new.mm:5069)
6   AppSpectorSDK                 	0x0000000102c424e4 __64+[ASNetworkObserver injectIntoAllNSURLConnectionDelegateClasses]_block_invoke + 196 (ASNetworkObserver.m:232)
7   libdispatch.dylib             	0x0000000184bf8394 _dispatch_client_callout + 16 (object.m:560)
8   libdispatch.dylib             	0x0000000184bc7a30 _dispatch_once_callout + 28 (once.c:52)
9   AppSpectorSDK                 	0x0000000102c4241c _dispatch_once + 16 (once.h:84)
10  AppSpectorSDK                 	0x0000000102c4241c +[ASNetworkObserver injectIntoAllNSURLConnectionDelegateClasses] + 104 (ASNetworkObserver.m:203)
11  AppSpectorSDK                 	0x0000000102c41e6c +[ASNetworkObserver setEnabled:] + 168 (ASNetworkObserver.m:103)
12  libdispatch.dylib             	0x0000000184bf8394 _dispatch_client_callout + 16 (object.m:560)
13  libdispatch.dylib             	0x0000000184bc7a30 _dispatch_once_callout + 28 (once.c:52)
14  AppSpectorSDK                 	0x0000000102c42168 _dispatch_once + 16 (once.h:84)
15  AppSpectorSDK                 	0x0000000102c42168 +[ASNetworkObserver sharedObserver] + 112 (ASNetworkObserver.m:151)
16  AppSpectorSDK                 	0x0000000102c4204c __25+[ASNetworkObserver load]_block_invoke + 52 (ASNetworkObserver.m:133)
17  libdispatch.dylib             	0x0000000184bf738c _dispatch_call_block_and_release + 24 (init.c:1510)
18  libdispatch.dylib             	0x0000000184bf8394 _dispatch_client_callout + 16 (object.m:560)
19  libdispatch.dylib             	0x0000000184bcee4c _dispatch_continuation_pop$VARIANT$armv81 + 472 (inline_internal.h:2603)
20  libdispatch.dylib             	0x0000000184bce4b8 _dispatch_async_redirect_invoke + 708 (queue.c:818)
21  libdispatch.dylib             	0x0000000184bdc260 _dispatch_root_queue_drain + 364 (inline_internal.h:0)
22  libdispatch.dylib             	0x0000000184bdcaac _dispatch_worker_thread2 + 168 (queue.c:6924)
23  libsystem_pthread.dylib       	0x00000001de0646f8 _pthread_wqthread + 224 (pthread.c:2508)
24  libsystem_pthread.dylib       	0x00000001de064874 start_wqthread + 8

Thread 2:
0   libsystem_pthread.dylib       	0x00000001de06486c start_wqthread + 0

Thread 3:
0   libsystem_pthread.dylib       	0x00000001de06486c start_wqthread + 0


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000102d14135   x2: 0x0000000000000003   x3: 0xfffffffffffffff2
    x4: 0x0000000000000000   x5: 0x0000000000000000   x6: 0x0000000000000000   x7: 0x0000000000000ed0
    x8: 0x0000000102c4b4a4   x9: 0x00000001a7a3384c  x10: 0x0000000102c4b4a4  x11: 0x00000001ea36dff0
   x12: 0x0000000102d3fad3  x13: 0x0000000000000000  x14: 0x0000000020000000  x15: 0x0000000000000014
   x16: 0x00000001de05e490  x17: 0x0000000000000050  x18: 0x0000000000000000  x19: 0x0000000206c4c97c
   x20: 0x0000000000000000  x21: 0x0000000281930820  x22: 0x0000000000000001  x23: 0x0000000283d067c0
   x24: 0x0000000000000003  x25: 0x0000000000000001  x26: 0x0000000209dc6596  x27: 0x0000000000000541
   x28: 0x00000000000005dc   fp: 0x000000016f9a5bb0   lr: 0x0000000102cddf24
    sp: 0x000000016f9a5ae0   pc: 0x0000000102cddf7c cpsr: 0x20000000
   esr: 0x9200004f (Data Abort) byte write Permission fault


Binary Images:
0x101518000 - 0x10156bfff dyld arm64  <44cc83e330c03f04b61c53db749f255a> /usr/lib/dyld
0x102c1c000 - 0x102d43fff AppSpectorSDK arm64  <d9b2ad4228523f848c356d0747eff96c> /private/var/containers/Bundle/Application/8869313F-24EB-479D-AE18-A2E96303F764/****.app/Frameworks/AppSpectorSDK.framework/AppSpectorSDK
0x184b92000 - 0x184c16fff libdispatch.dylib arm64  <7ae5c3b1add53948a627660dd06bd032> /usr/lib/system/libdispatch.dylib
0x19c24b000 - 0x19c281fff libobjc.A.dylib arm64  <7deb8bdfdce831aea0485b3c86663c19> /usr/lib/libobjc.A.dylib
0x1de063000 - 0x1de073fff libsystem_pthread.dylib arm64  <f844c6be53ec38d79420c41a3bb073d5> /usr/lib/system/libsystem_pthread.dylib

It happens all the time.
In addition I do remember there was something SQL-related while crash happening when debugger is attached.

Although Version 1.3.6 and below should be compatible with iOS 9.3 - Frameworks Target is

It seems your SKDs Versions below 1.3.7 should work with iOS 9.3.
But the Framework itself has MinimumOSVersion set to 11.0

This leads when building to errors like
❌ Undefined symbols for architecture armv7

Symbol: _AS_LOG_MONITOR

We would like to use your service, but need to stay compatible with iOS9.3 - as our app is an enterprise in-house app where the dedicated device are already in the field...and with them some which can not be updated to iOS 11.

Thanks

Unable to add SPM dependency

Afer a long wait on Resolving ios-sdk I get a 404 resource not found error

Same error on versions 1.4.0, 1.3.7 and 1.3.6

themis liberary not loaded error on app launch

I am using cocoapods 1.10.0 , AppSpectorSDKE2E- 1.3.5 and themis -0.13.4 on app launch getting "Library not loaded" error for themis but app works fine if i use cocoapods 1.9.3 , AppSpectorSDKE2E- 1.3.5 and themis -0.13.3.

Error:
dyld: Library not loaded: @rpath/themis.framework/themis
Referenced from: ~/Frameworks/AppSpectorSDKE2E.framework/AppSpectorSDKE2E
Reason: image not found

`isRunning` return false

Hello)

I want manually start and stop SDK AppSpectorSDK 1.3.3

After I call AppSpector.run(with: config) i want know that sdk is running
But if i call AppSpector.isRunning() it's return false

AppSpector.isRunning() returns true only if i call run at start of application

AppSpectorSDK via CocoaPods arm64

I'd like to use AppSpectorSDK on arm64-based device using a CocoaPods installation. Now the podspec file contains excluding build for that architecture.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.