meganz / iOS

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

The project is not building in cause of the "Command PhaseScriptExecution failed with a nonzero exit code" #39

Closed darkForestCat closed 4 years ago

darkForestCat commented 4 years ago

Hello, I am using the latest version of iOS, Xcode 10.3 and the current version of MEGA, using Mac OS Mojave. I did everything like it was in the instruction but I get this type of error when I try to build the project on the simulator or my device:

/Users/dkforestcat/Library/Developer/Xcode/DerivedData/iMEGA-aucaqadrtuyglgcucfsfowgcuqym/Build/Intermediates.noindex/Karere.build/Debug-iphoneos/Karere.build/Script-A838B2231E96860900875D96.sh: line 3: cmake: command not found Command PhaseScriptExecution failed with a nonzero exit code

darkForestCat commented 4 years ago

@jnavarrom can you help me please?

jnavarrom commented 4 years ago

Hi @darkForestCat,

Do you have installed cmake in your system?

darkForestCat commented 4 years ago

@jnavarrom no, I did not.

darkForestCat commented 4 years ago

Do I need to do it?

jnavarrom commented 4 years ago

There is a run script in Karere project to generate the chat bbdd scheme:

cd ../../src
cmake -P genDbSchema.cmake

cmake: command not found

Please install it (using homebrew for example or other) and let me know if it works.

darkForestCat commented 4 years ago

@jnavarrom oh, okay I will try it and let you know!

jnavarrom commented 4 years ago

@darkForestCat did you fix the compilation error?

darkForestCat commented 4 years ago

@jnavarrom yes, excuse me for the long time I had a lot of work to do, so I have installed cmake, using homebrew, but now I get another type of the error: error: Build input file cannot be found: '/Users/dkforestcat/ios/iMEGA/Vendor/Karere/src/karereDbSchema.cpp'

darkForestCat commented 4 years ago

Just now cleaned everything and restarted.Everything works.Thanks you a lot for your help!