Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues in Texture Example/Texture Pod Integeration #237

Open
Rajats2678 opened this issue Nov 14, 2024 · 0 comments
Open

Issues in Texture Example/Texture Pod Integeration #237

Rajats2678 opened this issue Nov 14, 2024 · 0 comments

Comments

@Rajats2678
Copy link

Rajats2678 commented Nov 14, 2024

After implementating the suggested example project, i am unable to run the project and getting the following issue.
Screenshot 2024-11-14 at 2 26 25 PM

Pods.WORKSPACE

new_pod_repository(
name = "Texture",
url = "https://github.com/TextureGroup/Texture/archive/d085cd63494488c5921e20842a585470aa6ab1d9.zip",
inhibit_warnings = True,
# Important: Disable module map generation for Texture
generate_module_map = False,
# Add proper dependencies and frameworks
user_options = [
"Texture.sdk_frameworks += UIKit, CoreGraphics, Foundation, Photos, MapKit, QuartzCore",
],
)

new_pod_repository(
name = "PINRemoteImage",
url = "https://github.com/pinterest/PINRemoteImage/archive/3.0.3.zip",
user_options = ["Core.deps += //Vendor/PINCache:PINCache"],
# Important for header includes
generate_module_map = False,
generate_header_map = True,
)

new_pod_repository(
name = "PINOperation",
url = "https://github.com/pinterest/PINOperation/archive/1.2.1.zip",
generate_header_map = True,
)

new_pod_repository(
name = "PINCache",
url = "https://github.com/pinterest/PINCache/archive/3.0.3.zip",
generate_header_map = True,
)`

Build File configuration

`
objc_library(
name = "TextureLib",
deps = [
"//Vendor/PINRemoteImage:PINRemoteImage",
"//Vendor/PINOperation:PINOperation",
"//Vendor/PINCache:PINCache",
],
sdk_frameworks = [
"UIKit",
"CoreGraphics",
"Foundation",
"QuartzCore",
"Photos",
],
)

swift_library(
name = "sources",
srcs = glob(["Bullseye/Sources/*.swift"]),
visibility = ["//visibility:private"],
module_name = "Bullseye",
deps = [
":iOSFramework1",
":iOSFramework2",
"//Vendor/Texture:Texture",
]
)
`

In the complications section, something around adding the user_options attribute for Texture was suggested to add in new_pod_repository. But what exactly is to be added or how to handle such issues is still unknown.

Kindly check this issue and suggest a concrete solve or any workarounds.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant