• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Instabug/Instabug-iOS: In-app feedback and bug reporting tool for apps.

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

Instabug/Instabug-iOS

开源软件地址:

https://github.com/Instabug/Instabug-iOS

开源编程语言:

Ruby 100.0%

开源软件介绍:

Instabug iOS SDK

CocoaPods Compatible Twitter

Instabug is an in-app feedback and bug reporting tool for mobile apps. With just a simple shake, your users or beta testers can report bugs or send in-app feedback and the SDK will capture an environment snapshot of your user's device including all console logs, server-side network requests and bug reproduction steps compiling all these details in one organised dashboard to help you debug and fix bugs faster.

Instabug also provides you with a reliable crash reporter that automatically captures a detailed report of the running environment, the different threads’ states, the steps to reproduce the crash, and the network request logs. All the data is captured automatically with no need for breadcrumbs, and you can always reply back to your users and they will receive your messages within the app.

For more info, visit Instabug.com.

Installation

CocoaPods

To integrate Instabug into your Xcode project using CocoaPods, add it to your Podfile:

pod 'Instabug'

Then, run the following command:

$ pod install

Carthage

To integrate Instabug into your Xcode project using Carthage, add it to your Cartfile:

binary "https://raw.githubusercontent.com/Instabug/Instabug-iOS/master/Instabug.json"

Then, run the following command:

$ carthage update

Then drag Instabug.framework into your Xcode project.

Manually

  1. Download the Instabug SDK

  2. Extract it then drag & drop Instabug.xcframework to your project's "Frameworks, Libraries, and Embedded Content" section under the "General" tab, and make sure that the "Copy items if needed" checkbox is checked

  3. Create a new "Run Script Phase" in your project’s target "Build Phases" and add the following snippet

bash "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/Instabug.framework/strip-frameworks.sh"
  1. In Xcode 11.x you might get the following error:
dyld: Library not loaded: @rpath/Instabug.framework/Instabug
Reason: image not found

If that's the case, do the following steps:

  • Under Build Phases, click on + icon to add new phase, and select New Copy Files Phase.

  • Drag the newly created Copy Files phase above Compile Sources phase

  • In the new Copy Files phase, select Frameworks from Destination dropdown.

  • Leave subpath blank. Let be default Copy only when installing.

  • Under the table, click '+' and then select Instabug.xcframework

  • Make sure Code Sign on Copy is checked (ticked).

  • Do a clean build.

Usage

  1. Import Instabug framework header in your app delegate

    // Swift
    import Instabug
    // Objective-C
    #import <Instabug/Instabug.h>
  2. Add the following to your app delegate's application:didFinishLaunchingWithOptions: method.

    // Swift
    Instabug.start(withToken: <#app token#>, invocationEvents: .shake)
    // Objective-C
    [Instabug startWithToken:<#app token#> invocationEvents:IBGInvocationEventShake];

    Make sure to replace app_token with your application token. Find it here.

Notes

Instabug needs access to the microphone and photo library to be able to let users add audio and video attachments. Starting from iOS 10, apps that don’t provide a usage description for those 2 permissions would be rejected when submitted to the App Store.

For your app not to be rejected, you’ll need to add the following 2 keys to your app’s info.plist file with text explaining to the user why those permissions are needed:

  • NSMicrophoneUsageDescription
  • NSPhotoLibraryUsageDescription

If your app doesn’t already access the microphone or photo library, we recommend using a usage description like:

  • "<app name> needs access to the microphone to be able to attach voice notes."
  • "<app name> needs access to your photo library for you to be able to attach images."

The permission alert for accessing the microphone/photo library will NOT appear unless users attempt to attach a voice note/photo while using Instabug.

More

You can also check out our API Reference for more detailed information about our SDK.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
hotwired/turbo-ios: iOS framework for making Turbo native apps发布时间:2022-06-22
下一篇:
jorgenhenrichsen/SwiftAudio: Audio player for iOS发布时间:2022-06-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap