You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The necessity to integrate a zip framework arised in order to provide archivedLogFilesUrl pointing to a .zip file including all existing log files within the built-in FileLogger. We looked for such existing frameworks and tried those: Zip, ZipArchive and ZIPFoundation.
Firstly, we tried to integrate Zip using Carthage. We found out that it is hardly possible to use a framework within another framewok (QuantiLogger). We failed to make it work this way. Then we tried to directly copy & paste the source code from Zip framework and we ran into this problem.
Secondly, we tried to integrate ZipArchive. We already knew we could not use Carthage so we directly copy & pasted the source code again. Since the framework is written in Objective-C, we ran into the problem of bridging the source code to Swift within our framework (QuantiLogger). We could not find a solution for such problem either.
Finally we used ZIPFoundation. We copy & pasted the source code once more and it worked! Even though it was not our first choice, we are happy with the framework since we only use it to create a .zip file containing bunch of log files.
Now we have a working solution and thus we are able to provide archivedLogFilesUrl as intended. However we are not quite happy with the copy & paste source code solution. So the challenge as we see it is to find a way how to incorporate a zip framework (any zip framework really) in a clearer way, preferably using Carthage. Any other solution other than copy & pasting the source code would work for us too.
The text was updated successfully, but these errors were encountered:
The necessity to integrate a zip framework arised in order to provide
archivedLogFilesUrl
pointing to a .zip file including all existing log files within the built-inFileLogger
. We looked for such existing frameworks and tried those: Zip, ZipArchive and ZIPFoundation.Firstly, we tried to integrate Zip using Carthage. We found out that it is hardly possible to use a framework within another framewok (QuantiLogger). We failed to make it work this way. Then we tried to directly copy & paste the source code from Zip framework and we ran into this problem.
Secondly, we tried to integrate ZipArchive. We already knew we could not use Carthage so we directly copy & pasted the source code again. Since the framework is written in Objective-C, we ran into the problem of bridging the source code to Swift within our framework (QuantiLogger). We could not find a solution for such problem either.
Finally we used ZIPFoundation. We copy & pasted the source code once more and it worked! Even though it was not our first choice, we are happy with the framework since we only use it to create a .zip file containing bunch of log files.
Now we have a working solution and thus we are able to provide
archivedLogFilesUrl
as intended. However we are not quite happy with the copy & paste source code solution. So the challenge as we see it is to find a way how to incorporate a zip framework (any zip framework really) in a clearer way, preferably using Carthage. Any other solution other than copy & pasting the source code would work for us too.The text was updated successfully, but these errors were encountered: