Swift error while starting app, after update to Xcode 10.2 beta 3

Some of your dependencies can have +load methods. In my case, there were Firebase and Swinject cocoapods.


In my case, it is because I added a module which uses Swift to my ReactNative project. In this issue they discussed this bug and there were several solutions.

The official solution is to upgrade RN to 0.59.3+, but it may influence too much for me and I would not to do that for now, so I edited RCTBridgeModule.h according to this commit as a workaround and it works.