bazel-xcode / PodToBUILD

An easy way to integrate CocoaPods into Bazel
Apache License 2.0
323 stars 69 forks source link

clarification on texture example #222

Open wweevv-johndpope opened 1 year ago

wweevv-johndpope commented 1 year ago

https://github.com/wweevv-johndpope/Telegram-iOS/tree/dev/async

I can see the texture example successfully build / extract to vendor folder etc.

I have spent last day and half attempting to use this code in project above.

I can see the vendor folder get populated just as the sample project does - but I can't verify I can then use the asyncdisplaykit inside a project.

I started to install telusi and went down that rabbit hole attempting to generate an xcode project it wasn't succesful. I guess the texture sample is just a framework? I want a TextureProject sample that does same as texture - but uses it inside a appdelegate.swift It's like I'm missing a global configuration.... been pulling my hair out.... Please help.

Screen Shot 2022-08-27 at 9 50 17 pm

BACKGROUND Telegram uses a slimmed down fork of asyncdisplaykit locally - but they threw out some useful classes. I'm attempting to upgrade it.

wweevv-johndpope commented 1 year ago
Screen Shot 2022-08-27 at 10 00 14 pm

should this name correspond to the swift import statement?

objc_library(name="all", deps=["//Vendor/Texture:Texture"])

objc_library(name="AsyncDisplayKit", deps=["//Vendor/Texture:Texture"])

should this be inside an iosframework for texture to work?

Screen Shot 2022-08-27 at 10 02 34 pm

When I run this command in telegram - I get a project ok


 python3 build-system/Make/Make.py \
    --cacheDir="$HOME/telegram-bazel-cache" \
    generateProject \
    --configurationPath="$HOME/telegram-configuration" \
    --disableExtensions \
    --disableProvisioningProfiles
Screen Shot 2022-08-27 at 10 03 52 pm

but then can't access

Screen Shot 2022-08-27 at 10 04 35 pm

I check the dependencies for that group - and it seems fine.... not sure what's going wrong..

Screen Shot 2022-08-27 at 10 05 02 pm

N.B. I took the codebase and replaced 110 references

Screen Shot 2022-08-27 at 10 06 47 pm