Skip to content

Latest commit

 

History

History
55 lines (34 loc) · 1.65 KB

QA_iOS.md

File metadata and controls

55 lines (34 loc) · 1.65 KB

Testing Energy Consumption on iOS

Prerequisites

Xcode (9.x), cmake, docker, git

1. Testing status-go

Native simple wrapper for status-go for iOS and Android.

Used for testing energy efficiency of status-go on a device itself.

1.1. Building iOS Wrapper

  1. Check-out the latest status-go
  2. set environment variable $STATUS_GO_HOME
  3. make statusgo-ios
  4. open ios/status-go-tester/status-go-tester.xcodeproj
  5. You are ready to measure!

1.2. Measuring Energy Efficiency

‼️ you should use Wifi debugging to be able to trace energy consumption! Here's how to enable it: Enable Wireless Builds

  1. Run the app with Xcode
  2. Go to the Debug Navigator (press ⌘+7)
  3. Go to the "Energy" tab.

2. Testing Status app

‼️ Make sure that your device is added to the Status provisioning profile list and you downloaded/installed this provisioning profile in your Xcode. If you don't have it, you can workaround it but push notifications won't work.

Now it's time to measure battery consumption while performing a test / experiment. To get an idea what kind of test you should perform, check types of experiments

  1. Checkout the branch of status-react you want to test.

  2. Update your toolkit with make setup

  3. Build a release version make release-ios

  4. Open the workspace in Xcode open ios/StatusIm.xcworkspace/

  5. Select your device & press "Product->Run".

  6. Listen to the music of the fans of your computer.

  7. Go to the Debug Navigator (press ⌘+7)

  8. Go to the "Energy" tab.