iOS
iOS copied to clipboard
MEGA for iOS
MEGA for iOS
A fully-featured client to access your Secure Cloud Storage and Communication provided by MEGA.
Testing MEGA with TestFlight
If you want to be the first one to receive the updates, join the MEGA beta following this link: MEGA TestFlight
Build & Run the application
This document will guide you to build the application on a Mac machine with Xcode.
Prerequisites
In order to build MEGA for iOS locally, it is necessary to install the following tools on the local machine:
- Install Xcode in your system.
Clone the project
If you are the general public user, please open .gitmodules file and:
- Change url for karere submodule, use this one
- Change url for SDK submodule, use this one
Update submodule
git submodule update --init --recursive
Download 3rdparty packages
- Download the prebuilt third party dependencies from this link: https://mega.nz/file/tVEmQZqZ#geMefj40h0Aq6WlmJCC8iu2CiPexxhP-ZtMXSybPm1I
- Uncompress that file and move the folders
webrtc
,include
andlib
intoiMEGA/Vendor/sdk/bindings/ios/3rdparty
.
M1 SOC Macs specific
- You may have to install CMake by manually building it using
make install
; refer to Linux, UNIX section of aboveCMake
link, and run commands locally. - Right click Xcode icon and choose
Get Info
, and then tickOpen using Rosetta
, which can help us solve incompatible issues.
Open and Run the project
- Open
iMEGA.xcworkspace
. - Make sure the
MEGA
target is selected. - Build and run (⌘R).
Troubleshooting
- if you encouter
cmake command not found issue
, refer to CMake page, there are multiple way to install it.
Build 3rdparty packages manually
If you want to build the third party dependencies by yourself:
- Open a terminal in the directory
iMEGA/sdk/bindings/ios/3rdparty
. - Run sh build-all.sh --enable-chat (Wait until the process ends, it will take some time, ~30 minutes).
- To build all third party dependencies, you need to have installed:
autoconf
,automake
,cmake
andlibtool
. - To build webrtc visit: https://webrtc.github.io/webrtc-org/native-code/ios/