Open pmtao opened 1 year 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
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
3. Clone the repo
Repo link: https://github.com/meganz/iOS
4. Update submodule
open
.gitmodules
file under repo root directory, and change the URL:run command to update:
5. Download 3rdparty packages
webrtc
,include
andlib
intoiMEGA/Vendor/sdk/bindings/ios/3rdparty
.6. Modify Xcode project
iMEGA.xcworkspace
in Xcode, wait Swift Package to update.com.xxx
, and choose Automatically manage signing with your own account.group.mega.ios
to your own namegroup.com.xxx
, iCloud Containers make the same changeiCloud.com.xxx
.7. Modify source code
MEGANotifications.entitlements
, delete this line:com.apple.developer.usernotifications.filtering
.MEGAConstants.m
change value of MEGAGroupIdentifier to your own group id:group.com.xxx
.AppGroupContainer.swift
change value of identifier to your own group id:group.com.xxx
.iMEGA/Extensions/MEGAPickerFileProvider/Info.plist
change NSExtensionFileProviderDocumentGroup to your own group id:group.com.xxx
.8. Run the project with real iPhone device but not the simulator
Running in the simulator will crash when app launch.