Fatal error building moodle app on iOS. File not found push plugin error.

Fatal error building moodle app on iOS. File not found push plugin error.

door Kene lope -
Aantal antwoorden: 7

The new version of moodle cordova push plugin doesn't include this file

File EncriptionHandler ---> #import "Moodle-Swift.h". not found --->

Repo plugin affected --> https://github.com/moodlemobile/phonegap-plugin-push

Tested on master moodle app repository.  Imposible to build.  in the version of the plugin 4.0.0-3  4.0.0-4 and 4.0.0-5 are affected

Version 4.0.0-2 compile OK due no EncriptionHandler file.

I opened an issue --> https://tracker.moodle.org/projects/MOBILE/issues/MOBILE-4347 but closed with no reason. It's impossible to compile the moodle app  --> https://github.com/moodlehq/moodleapp with that the lastest version of push plugin. And is necessary  to use that version due new methods added.



Gemiddelde van de beoordelingen:  -
Als antwoord op Kene lope

Re: Fatal error building moodle app on iOS. File not found push plugin error.

door Dani Palou -
Foto van Core developers Foto van Moodle HQ Foto van Particularly helpful Moodlers Foto van Peer reviewers Foto van Plugin developers
Hi,

that issue was closed because this is not a bug in the app, the app compiles fine. This is only a problem when creating custom apps, and we're currently looking for a way to improve this.

As a workaround, you can either edit the Encryption Handler file and change the word "Moodle" by your project's name (e.g. #import "MyProject-Swift.h"), or you can go to Xcode build settings and change the value of "Objective - Generated Interface Header Name" to "Moodle-Swift.h".

Cheers,
Dani
Gemiddelde van de beoordelingen: Useful (1)
Als antwoord op Dani Palou

Re: Fatal error building moodle app on iOS. File not found push plugin error.

door Aldo Fernando Saia -
Hey Dani, any news about a improvement for this issue?

Thanks!
Gemiddelde van de beoordelingen:  -
Als antwoord op Aldo Fernando Saia

Re: Fatal error building moodle app on iOS. File not found push plugin error.

door Dani Palou -
Foto van Core developers Foto van Moodle HQ Foto van Particularly helpful Moodlers Foto van Peer reviewers Foto van Plugin developers
Hi Aldo,

sorry for the delay in answering, I was on annual leave.

The fact that there is a workaround decreased the priority of this issue, so we are not working on it right now since we have other issues with higher priority. For the record, in our process of creating BMAs we fixed it by adding the following value in platforms/ios/cordova/build-debug.xcconfig and platforms/ios/cordova/build-release.xcconfig:

SWIFT_OBJC_INTERFACE_HEADER_NAME = Moodle-Swift.h

This will automatically set the XCode variable to Moodle-Swift and the app should compile fine.

Cheers,
Dani
Gemiddelde van de beoordelingen:  -
Als antwoord op Dani Palou

Re: Fatal error building moodle app on iOS. File not found push plugin error.

door Aldo Fernando Saia -
Hi Dani!

No problem with the delay, and thanks for the answer. In the meantime, we solved this problem as you said in the previous post.

Thanks!
Gemiddelde van de beoordelingen:  -
Als antwoord op Dani Palou

Re: Fatal error building moodle app on iOS. File not found push plugin error.

door zeyad ahmed -
this issue is solved but display another issue 

ld: 185 duplicate symbols for architecture arm64

clang: error: linker command failed with exit code 1 (use -v to see invocation)


can u help me 
Gemiddelde van de beoordelingen:  -
Als antwoord op zeyad ahmed

Re: Fatal error building moodle app on iOS. File not found push plugin error.

door zeyad ahmed -
this duplications happened in derived data most of them in status bar and http
Gemiddelde van de beoordelingen:  -