meganz / iOS

MEGA for iOS
https://apps.apple.com/app/mega/id706857885?mt=8
Other
342 stars 95 forks source link

Experience sharing: How to debug Mega iOS app on your own device based on Github repo #87

Open pmtao opened 1 year ago

pmtao commented 1 year ago

The Mega app is great! This issue covers how to debug and run the Mega iOS app on your own device. Anyone who is interested in customizing their own version of the Mega app can find this helpful.

1. Apple developer program

Firstly, you need an apple developer program, not the free version, but the paid one that include iCloud, push notifications, and other capabilities available only in the paid program.

2. Install Xcode and CMake

sudo "/Applications/CMake.app/Contents/bin/cmake-gui" --install

3. Clone the repo

Repo link: https://github.com/meganz/iOS

4. Update submodule

git submodule update --init --recursive

5. Download 3rdparty packages

  1. Download the prebuilt third party dependencies from this link: https://mega.nz/file/AENVGYjC#HhUgIOBY69zVZZtOa4e6vdySpHefnUo4GcoQYElmEo4
  2. Uncompress that file and move the folders webrtc , include and lib into iMEGA/Vendor/sdk/bindings/ios/3rdparty.

6. Modify Xcode project

7. Modify source code

8. Run the project with real iPhone device but not the simulator

Running in the simulator will crash when app launch.

Also published here

TeniSoftTechnologies commented 6 months ago

How do we integrate the sdk in already created project. It seems your sdk requires a lot of steps. Also I realised all your services (chat, calling, file storage) are all incorporated in one sdk rather than segregating them (Let me know if I'm wrong). I only need file storage.

Why don't we add your sdk via package manager or pod file.

Check pCloud on GitHub their full documentation: SDK and this docs