The current guide to build ANTLR for Swift is still up-to-date, although it requires some changes in the docs as some steps do not work and the user have to follow the errors which appear when executing the guide for Swift target step-by-step.
The guide also mentions that it uses Swift Package Manager to generate the XCode Project and since iOS is not supported there, some manual changes are required to make it work under iOS.
I was able to compile it for iOS and even use the Swift 5 to compile the generated project, but that did not work at the end though. After doing all suggested steps the app crashes with Library not loaded: @rpath/Antlr4.framework error.
Would it make sense to create a Carthage package for ANTLR? That would simplify life of devs a lot. ANTLR is the only open-source project at the moment which supports Swift target and parsing binary streams, so having an iOS support would be a good addition I think.
The current guide to build ANTLR for Swift is still up-to-date, although it requires some changes in the docs as some steps do not work and the user have to follow the errors which appear when executing the guide for Swift target step-by-step.
The guide also mentions that it uses Swift Package Manager to generate the XCode Project and since iOS is not supported there, some manual changes are required to make it work under iOS.
I was able to compile it for iOS and even use the Swift 5 to compile the generated project, but that did not work at the end though. After doing all suggested steps the app crashes with
Library not loaded: @rpath/Antlr4.frameworkerror.Would it make sense to create a Carthage package for ANTLR? That would simplify life of devs a lot. ANTLR is the only open-source project at the moment which supports Swift target and parsing binary streams, so having an iOS support would be a good addition I think.