Git Product home page Git Product logo

rollbar-ios's Introduction

DEPRECATED: Rollbar Apple SDK v3.0.0 deprecates this Rollbar iOS SDK. The Apple SDK is a modernized approach to collecting errors from Apple devices and fixes many iOS SDK pain points. Please, consider migrating over to the Apple SDK. You can find its documentation here. Please open an issue or contact our support if you encounter problems.

Rollbar for iOS and macOS

Objective-C & Swift library for crash reporting and logging with Rollbar. It works on iOS and macOS.

CocoaPods Compatible Carthage compatible

Roadmap Note

We are recommending all current users of the Rollbar-iOS SDK to start making plans for upgrading from this SDK by moving to its new reincarnation that is our new Rollbar-Apple SDK. All new feature development will be happening only within the new SDK and this SDK will be retiring soon. All the new users that are looking into using Rollbar on any of the Apple platforms should start by using the new Rollbar-Apple SDK.

Setup Instructions

  1. Sign up for a Rollbar account
  2. Follow the Installation instructions in our iOS and macOS SDK docs to install rollbar-ios

Usage and Reference

For complete usage instructions and configuration reference, see our iOS/macOS SDK docs.

Release History & Changelog

See our Releases page for a list of all releases, including changes.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Help / Support

If you run into any problems, please email us at [email protected] or file a bug report.

rollbar-ios's People

Contributors

ajcantu avatar akornich avatar benwong0 avatar brianr avatar chrisbarmonde avatar coryvirok avatar crisfole avatar ezarowny avatar fddecc avatar grime2d avatar janten avatar jontsai avatar kshep avatar lchenay avatar mpurland avatar mrap avatar mrunalk avatar newyorkpizza avatar ninjz avatar nooges avatar rivkahstandig3636 avatar rokob avatar sbezboro avatar waltjones 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

Watchers

 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

rollbar-ios's Issues

Getting Unable to satisfy the following requirements while installing Rollbar

Hi,

I am trying to install Rollbar notifier inside my sample application by followed steps.

  1. Added the below content inside pod file.

platform :ios, '7.0'

target 'Rollbar-Example' do

Comment the next line if you're not using Swift and don't want to use dynamic frameworks

use_frameworks!
pod "Rollbar", "~> 1.0.0-alpha"
end

  1. Ran the pod install but getting the following error.

snip20180119_2

I have created the sample application repository, Here is the link fi want more info.
https://github.com/RollbarExample/Rollbar-Ios-Example

Please help me out.

Occasionally, no symbolicated backtrace available & '(unknown)' in the item description

As we have been testing it, and deliberately submitting crashes, we observe that sometimes there is no symbolicated backtrace available. It also seems that those reports contain '(unknown)' in the item description.

The detailed information on the occurrences indicates "This backtrace could not be symbolicated because a matching dSYM upload was not present" but there is a dSYM with the correct version uploaded.

https://app.intercom.io/a/apps/rlisg82q/respond/inbox/813334/conversations/12600046934

Reachability conflict

Hi, a619d68 added a re-named Reachability implementation but did not change the public kReachabilityChangedNotification constant. This causes a collision at the linking step if you try to bundle Reachability via another library or another dependency using CocoaPods

Perhaps a good solution is to rename the constant to kRollbarReachabilityChangedNotification ?

How to locate error via crash log uploaded to Rollbar?

Hi,

I referenced Rollbar framework into my project and I can see crash log on Rollbar, by the way, I also upload .dsYM file to Rollbar for each version. Then how can I symbolicate the crash log via .dsYM file?

Thanks a lot.

this crashes my app

NSMutableDictionary* data = [NSMutableDictionary new];
[data setObject:[CookieManager summary] forKey:@"cookies after"];
[Rollbar logWithLevel:@"some level" data:data];

where [CookieManager summary] returns a string

dsym upload build script fails

I had to use BUILT_PRODUCTS_DIR instead of INSTALL_DIR.

info_file_path = os.path.join(os.environ['BUILT_PRODUCTS_DIR'], os.environ['INFOPLIST_PATH'])

Build error: Shell Script Invocation Error with symbolication script

When trying to run the symbolication script:

Print: Entry, ":CFBundleVersion", Does Not Exist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Traceback (most recent call last):
File /Users/sirIO/Library/Developer/Xcode/DerivedData/Geolink-gmcefbekcjjyivcorktofuzjxwhp/Build/Intermediates/Geolink.build/Debug-iphoneos/Geolink.build/Script-B34CF00E1A9F403E00F212D8.s, line 27, in <module> version, identifier = stdout.split()
ValueError: too many values to unpack
Command /bin/sh failed with exit code 1

Thank you

Mach-O Linker error

"OBJC_CLASS$_PLCrashReportTextFormatter", referenced from:
objc-class-ref in libRollbar.a(Rollbar.o)
"OBJC_CLASS$_PLCrashReport", referenced from:
objc-class-ref in libRollbar.a(Rollbar.o)
"OBJC_CLASS$_PLCrashReporter", referenced from:
objc-class-ref in libRollbar.a(Rollbar.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Just updated to v0.2.0

Getting Error : Apple Mach-O Linker Error Group

Hi,

I have tried to integrate Rollbar framework inside my application but getting the Apple Mach-O Linker Error Group error while building the application.

Steps that i have followed.
Without Cocoapods

  1. Download the Rollbar framework.

  2. Extract the Rollbar directory in the zip file to your Xcode project directory.

  3. In Xcode, select File -> Add Files to "[your project name]" and choose the Rollbar directory from step 2.

Note: if step three doesn't work you can also extract the Rollbar directory anywhere, and drag the .framework files into XCode, allowing XCode to correctly configure the Frameworks.

  1. Added the below code fragment inside Bridging-Header file.
  2. Added the below code fragment inside AppDelegate.

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
let config: RollbarConfiguration = RollbarConfiguration()
config.environment = "production"

Rollbar.initWithAccessToken("POST_CLIENT_ITEM_ACCESS_TOKEN", configuration: config)

return true

}

While building the app getting error please help me out. Here i have attached screen shot of error.

rollbarerror

Thanks.

Wahid Ali

Nullability

Hi there,

are there any plans on updating the Rollbar for iOS framework? Nullability APIs have been around for over a year now, not to mention light-weight generics. We've migrated all of our code to Swift and dealing with Rollbar framework as it is now is not pretty.

Thanks! Charlie

Update podspec for KSCrash

The current podspec is designed to work with the PLCrashReporter framework. After moving to use KSCrash as the crash reporter dependency, the podspec no longer resolves all of the transitive dependencies correctly.

Wrong code_version on ios

Hello, I'm working on a react native app and I have some issues with the code_version retrieved.

When i'm opening an item on my account on rollbar.com, I can see

client.ios.short_version: 1.6.1

And that is the version users see an the app store.

But I have an issue with this value

code_version : 19

This is the value used when I click on "resolved in" for an item.

So my issue is the following: how can I use the short version as the code version ?

In the RollbarNotifier.m file we can see these lines of code :

@"code_version" refers to NSString *version = [mainBundle objectForInfoDictionaryKey:(NSString*)kCFBundleVersionKey];

Instead I would prefer to use

NSString *shortVersion = [mainBundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"];

Fatal Exception: NSInvalidArgumentException (data parameter is nil)

Hi, we are seeing this crash reported inside of Crashlytics. We are using Rollbar to record app errors, and Crashlytics for crashes. It's pretty rare, but it happens enough that we need to look into it. We are using the latest framework released here.

Here's the log data:
Fatal Exception: NSInvalidArgumentException 0 (Missing) 0x18118ad8c (Missing) 1 (Missing) 0x1803445ec (Missing) 2 (Missing) 0x18118ac6c (Missing) 3 (Missing) 0x181af8360 (Missing) 4 Freebird 0x103340ffc -[RollbarNotifier initWithAccessToken:configuration:isRoot:] (RollbarNotifier.m:57) 5 Freebird 0x1033530b4 +[Rollbar initWithAccessToken:configuration:enableCrashReporter:] (Rollbar.m:43) 6 Freebird 0x102f9f750 AppDelegate.application(_:didFinishLaunchingWithOptions:) (AppDelegate.swift:80) 7 Freebird 0x102fa28a0 @objc AppDelegate.application(_:didFinishLaunchingWithOptions:) (AppDelegate.swift) 8 UIKit 0x18ad5ae38 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] 9 UIKit 0x18ad5a240 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] 10 UIKit 0x18ad2765c -[UIApplication _runWithMainScene:transitionContext:completion:] 11 UIKit 0x18b357a0c __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke 12 UIKit 0x18ad26e4c +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] 13 UIKit 0x18ad26ce8 -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] 14 UIKit 0x18ad25b78 -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] 15 UIKit 0x18b9bb72c __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke 16 UIKit 0x18ad25268 -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] 17 UIKit 0x18b7a09b8 __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke 18 UIKit 0x18b8eeae8 _performActionsWithDelayForTransitionContext 19 UIKit 0x18ad24c88 -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] 20 UIKit 0x18ad24624 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] 21 UIKit 0x18ad2165c -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] 22 UIKit 0x18ad213ac -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] 23 (Missing) 0x183988470 (Missing) 24 (Missing) 0x183990d6c (Missing) 25 (Missing) 0x180a7cae4 (Missing) 26 (Missing) 0x180ab8b0c (Missing) 27 (Missing) 0x1839bc878 (Missing) 28 (Missing) 0x1839bc51c (Missing) 29 (Missing) 0x1839bcab8 (Missing) 30 (Missing) 0x181133404 (Missing) 31 (Missing) 0x181132c2c (Missing) 32 (Missing) 0x18113079c (Missing) 33 (Missing) 0x181050da8 (Missing) 34 (Missing) 0x183033020 (Missing) 35 UIKit 0x18b03178c UIApplicationMain 36 Freebird 0x102faa744 main (AppDelegate.swift:21) 37 (Missing) 0x180ae1fc0 (Missing)

Image also from Crashlytics, since the log isn't easily readable...
image

Any ideas? Thanks!

Turn off Enable Bitcode XCode 7

I ran into a similar problem that another user had when integrating the Rollbar iOS library into XCode 7 wherein it was telling me to disable bitcode in the app if I wanted the library to work, which I then did, and it still threw the same disable bitcode error. What's the status on this issue?

Use of undeclared type 'RollbarConfiguration'

I get a Swift compiler Error "Use of undeclared type 'RollbarConfiguration'" in the following

let config: RollbarConfiguration = RollbarConfiguration() line.
I use Swift, iOS 10.2+ with Xcode 8.2.1

What might be the issues ? Any feedback is appreciated.

Update: Work perfectly without Cocoapods.

Compiler error: RollbarNotifier.h not found

Hi,

I am trying to import Rollbar framework into my app, but I get compiler error RollbarNotifier.h not found. My steps are:

  1. Download the zip file by using the link provided by Rollbar for iOS, the actual URL is https://github.com/rollbar/rollbar-ios/releases/download/v1.0.0-alpha2/Rollbar.zip
  2. Unzip the Rollbar.zip file
  3. Put the Rollbar.framework file to project root folder and add it to Linked frameworks and libraries
  4. Import header #import <Rollbar/Rollbar.h>

see below:
image

Anything I did is wrong? or is the provided zip has a bug?

Thanks

Vic

Carthage Support

Do you have plans to support installation with Carthage?

Currently when you try to install it with Carthage you get the following error:

$ carthage bootstrap --platform=iOS
*** No Cartfile.resolved found, updating dependencies
*** Fetching rollbar-ios
*** Downloading rollbar-ios at "Fix a compiler error when used in a Swift application"
*** Checking out rollbar-ios at "v0.1.5"
*** xcodebuild output can be found in /var/folders/ys/0pfrw_ts4z7gpr8j9tz0bvnm0000gn/T/carthage-xcodebuild.OeOw10.log
Dependency "rollbar-ios" has no shared framework schemes

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

Keep up the good work! ๐Ÿ’–

Crash report is not symbolized and crashLevel does not work

Hi,

I have configured Rollbar in my project as below by using v1.0.0-alpha6, it did send crash report to Rollbar website, I can see it, but the crash report is not symbolized, I contacted Rollbar support, they replied me that the crash report is stored in message field, it's wrong, it should be stored in crash_report field.

RollbarConfiguration *config = [RollbarConfiguration configuration];
config.crashLevel = @"critical";
config.environment = isDevMode ? @"Development" : @"Production";
[config setRequestId: [NSString stringWithFormat:@"Request-%f", [[NSDate date] timeIntervalSince1970]]];
[config setCaptureLogAsTelemetryData:NO];
[config setCaptureConnectivityAsTelemetryData:YES];
[config setPersonId:userHash username:userHash email:nil];
[config setNotifierName:userHash version:version];
    
[Rollbar initWithAccessToken:@"<my project access token>" configuration:config];

By the way, as above, I configured the crashLevel to critical, but on Rollbar website, I see crash item is still Error level.

Any comments?

Thanks,

Vic

Signing error: bundle format unrecognized, invalid, or unsuitable

This is happening to me when trying to archive my application in order to upload it to AppStore (adding the .framework manually):

CodeSign PROJECT_PATH/Frameworks/Rollbar.framework
    cd PROJECT_PATH
    export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"

Signing Identity:     "iPhone Distribution: MY_SIGNING_IDENTITY"

/usr/bin/codesign --force --sign 61430F105530A00798A5E6975308AFF65A9AC0A9 --preserve-metadata=identifier,entitlements --timestamp=none DERIVED_DATA_PROJECT_PATH/Frameworks/Rollbar.framework

DERIVED_DATA_PROJECT_PATH/Frameworks/Rollbar.framework: bundle format unrecognized, invalid, or unsuitable
Command /usr/bin/codesign failed with exit code 1

Instead, when adding the project using cocoa pods, I have the BITCODE issue. I did what the documentation says (disabling bitcode for my target, which I did), but problem is still there.

ld: 'PROJECT_PATH/Pods/Rollbar/Vendor/CrashReporter.framework/CrashReporter(libCrashReporter-iphoneos.a-armv7-master.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I really appreaciate any help.

Warning: 'sendSynchronousRequest:returningResponse:error:' is deprecated.

Description

The project's master branch currently generates a deprecation warning from the call sendSynchronousRequest:returningResponse:error:.

  • Does this request need to be sent synchronously?
  • Is there a reason we're using NSURLConnection?

Steps to Reproduce

  1. Open the project.
  2. Build.

Expected Behaviour

  • In the issue navigator you will see the following warning:
RollbarNotifier.m:337:37: 'sendSynchronousRequest:returningResponse:error:' is deprecated: first deprecated in iOS 9.0 - Use [NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h

Umbrella header for module 'Rollbar' does not include header 'X'

We get a number of warnings when including Rollbar as a dependency for our application because the umbrella header for the module is not including all public header files.

Umbrella header for module 'Rollbar' does not include header 'RollbarFileReader.h'
Umbrella header for module 'Rollbar' does not include header 'RollbarFramework.h'
Umbrella header for module 'Rollbar' does not include header 'RollbarLogger.h'
Umbrella header for module 'Rollbar' does not include header 'RollbarNotifier.h'
Umbrella header for module 'Rollbar' does not include header 'RollbarReachability.h'
Umbrella header for module 'Rollbar' does not include header 'RollbarThread.h'

Very small issue with missing license in Cocoapods

When I add 'pod 'Rollbar', '~> 0.1.2' to my Podfile and run pod install. It produces the below warning, this is likely that a license file wasn't present in the repository when the 0.1.2 tag was created.

[!] Unable to read the license file /Users/Justin/Projects/Cookbrite/ios/Pods/Rollbar/LICENSE for the spec Rollbar (0.1.2)

Error: Request entity too large

When running the dSYM upload shell script the server responses with this error:

{
    "err": 1,
    "message": "Error: Request Entity Too Large"
}

In addition, is it possible to stop the build process (with an exit(1)), in case the api returns an error?

Thank you!

How about support for macOS?

Hi have an app with both an iOS and a macOS version and would like to track errors from both of them into rollbar. Do you have any plans on also supporting macOS?

Shell Script Invocation Error

Unpacking /Users/Vaiha/.rncache/boost_1_63_0.tar.gz...
tar: (Empty error message)
tar: Error exit delayed from previous errors.
Command /bin/sh failed with exit code 1

Error Please Help me..
Thanks

Xcode 7 builds fail due to missing bitcode

Attempting to build the Rollbar 0.1.5 pod for an iOS device using Xcode 7 fails:
ld: '~/Library/Developer/Xcode/DerivedData/<...>/Build/Products/Debug-iphoneos/Rollbar.framework/Rollbar' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64

Looks like resolving this requires an updated PLCrashReporter framework (see also https://opensource.plausible.coop/bugs/browse/PLCR-581).

Are you folks aware of this and working with Plausible Labs on a solution?

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.