1.7 KiB
id, title, sidebar_label
| id | title | sidebar_label |
|---|---|---|
| QA_iOS | QA iOS | QA iOS |
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
- Check-out the latest status-go
- set environment variable
$STATUS_GO_HOME make statusgo-iosopen ios/status-go-tester/status-go-tester.xcodeproj- 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
- Run the app with Xcode
- Go to the Debug Navigator (press
⌘+7) - 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
-
Checkout the branch of
status-reactyou want to test. -
Update your toolkit with
make setup -
Build a release version
make release-ios -
Open the workspace in Xcode
open ios/StatusIm.xcworkspace/ -
Select your device & press "Product->Run".
-
Listen to the music of the fans of your computer.
-
Go to the Debug Navigator (press
⌘+7) -
Go to the "Energy" tab.