Closed trkfabi closed 7 years ago
Hey there! Are you using this module together with Hyperloop? Because this one packages the firebase frameworks already, and if you have it in your podfile, it will be bundled twice. Let me investigate that tomorrow!
No, I'm using Hyperloop to load SpinKit module. I'm using your module the old way.
Alright, I will compare it.
I guess the new Hyperloop framework-parser tries to scan the modules/ directory and runs into problem. Should be fixable in 2.2.1, thanks again for the report!
Yes, those /Headers folders are not supposed to exist inside the .framework. Thank you!
Ok, so a few things:
FirebaseNanoPB.framework
. In the final version, this one moved to titanium-firebase-core
for a more separated module interface structure and cleaner API'sFirebaseNanoPB.framework
does not have a Headers/ directory, which is pretty special for static frameworks.Two proposed changes based on that:
Headers/
directory to be presentmodules/
directory (= ignore it)I wonder why Hyperloop started to scan modules that have nothing to do with Hyperloop. Would it be too difficult to create a Firebase Hyperloop module instead of a native one?
It does not. Actually it scans the build/ directory instead, where the module frameworks are copied as part of the native build process, so Hyperloop does not know they actually come from modules/. But that can easily be improved by mapping the frameworks in build/ with the ones in modules/* and blacklist them for metabase generation.
And you are correct, Hyperloop will easily allow you to build Firebase modules as well. I just decided to use native modules because I am pretty fast on Obj-C 😙.
I've filed a Hyperloop-ticket (TIMOB-25436) to fix this behavior. As a (really hacky) workaround, you could try to create an empty folder in the FirebaseNanoPB.framework
.
Please note that Ti.Firebase Analytics was rearchitected last week and released today to be more flexible to work well with other Firebase features as well. You need the {{firebase-titanium-core}} for configuring Firebase and this one for the actual analytics :-).
Closing issue!
Quick update: We just discussed it in the team and will include the fix (ignore Headers/) in 2.2.1. For the modules/ directory, there are use-cases to still scan the frameworks, so that will still be done for now. And as it's only generating wrappers if you actually use classes from the framework, they will juts be skipped otherwise (default). I hope that helps. Thanks for reporting this!
Hi @hansemannn, thank you for this module. I've downloaded your module today along with the new Hyperloop 2.2.0, so I didn't have the chance to test it before. I'm getting this error, very similar to the one I'm getting with ti.firebase too (which was working fine on Friday), so I guess it has to do with the new Hyperloop version.
Do you know what this means?