meganz / iOS

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

Missing files #27

Closed sofqi closed 6 years ago

sofqi commented 6 years ago

When building this in Xcode I get

In file included from :1: /Users/TonyMac/sofqi/mega/iOS3/iMEGA/Extensions/MEGAShare/MEGAShare-PrefixHeader.pch:3:13: fatal error: 'LocalizationSystem.h' file not found

import "LocalizationSystem.h"

mdfind -name LocallizationSystem.h returns no results

jnavarrom commented 6 years ago

Hi,

Did you clone all submodules?

The file LocalizationSystem.h is part of AMLocalizedString submodule https://github.com/tagyro/AMLocalizedString

ls -l iMEGA/Vendor/AMLocalizedString/ total 48 -rw-r--r-- 1 jn staff 6891 Mar 23 12:13 AMLocalized.podspec -rw-r--r-- 1 jn staff 1074 Mar 23 12:13 LICENSE -rwxr-xr-x 1 jn staff 1080 Mar 23 12:13 LocalizationSystem.h -rwxr-xr-x 1 jn staff 3375 Mar 23 12:13 LocalizationSystem.m -rwxr-xr-x 1 jn staff 166 Mar 23 12:13 README.md

sofqi commented 6 years ago

HI @jnavarrom Thanks, that got past one issue. (as a side note the readme.md file should say git clone https://github.com/meganz/ios3.git not git clone https://github.com/meganz/ios.git)

/Users/TonyMac/sofqi/mega/ios3/iMEGA/Vendor/Karere/src/base/cservices.cpp:6:10: fatal error: 'event2/event.h' file not found

include <event2/event.h>

     ^

1 error generated.```

jnavarrom commented 6 years ago

Hi, sorry for the late response.

Point the SDK to the last commit in the develop branch 6248db9aee68f3079147b15b3058f97bfc0f807b (https://github.com/meganz/sdk/commit/6248db9aee68f3079147b15b3058f97bfc0f807b)

Then run sh build-all.sh --enable-chat

jnavarrom commented 6 years ago

Download the third party libraries pre-compiled from the following link:

https://mega.nz/#!8U12XQDD!RAjMASSyhXIF5eQGbk3qLEJK9i58cTAZtZEMItynu9g

Then uncompress that file and move the folders include and lib into iMEGA/Vendor/sdk/bindings/ios/3rdparty

screen shot 2017-09-21 at 13 44 20

sofqi commented 6 years ago

Hi @jnavarrom Updating the third party libraries seemed to work, also I had to search and replace group.mega.ios with my own group. identifier in all the project files (e.g. .m, .entitlement)