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

Tuist support #548

Closed
st-small opened this issue Mar 1, 2023 · 2 comments
Closed

Tuist support #548

st-small opened this issue Mar 1, 2023 · 2 comments
Assignees
Labels

Comments

@st-small
Copy link

st-small commented Mar 1, 2023

Hi folks! Does anybody use CropViewController in the project with Tuist? When I try to set dependency I got an error that CropViewController is missing. Is it possible to fix them?

@nickaroot
Copy link

Tuist glitch, Swift Package Manager headers not added automatically (sometimes)

Fix (Tuist 4.6.0):

Add HEADER_SEARCH_PATHS, OTHER_CFLAGS and OTHER_SWIFT_FLAGS to any target importing TOCropViewController like this:

let project = Project(
    ...
    settings: .settings(
        base: [
            "HEADER_SEARCH_PATHS": [
                "$(SRCROOT)/Tuist/.build/checkouts/TOCropViewController/Objective-C/TOCropViewController/include/TOCropViewController",
            ],
            "OTHER_CFLAGS": [
                "-fmodule-map-file=$(SRCROOT)/Tuist/.build/tuist-derived/TOCropViewController/TOCropViewController.modulemap",
            ],
            "OTHER_SWIFT_FLAGS": [
                "-Xcc",
                "-fmodule-map-file=$(SRCROOT)/Tuist/.build/tuist-derived/TOCropViewController/TOCropViewController.modulemap",
            ],
        ],
        ...
    )
    ...
)

@TimOliver
Copy link
Owner

Thanks so much for resolving that! I would have had no idea what was going on. 😅

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

No branches or pull requests

3 participants