Skip to content

Issues in Texture Example/Texture Pod Integeration #237

@Rajats2678

Description

@Rajats2678

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions