We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Generated projects fail to build when depending on c / Objective-C static libraries.
To Reproduce
e.g.
prebuilt/ ├── include │ └── ObjcStaticLibrary │ ├── LibraryClass.h │ ├── ObjcStaticLibrary.h │ └── module.modulemap └── libObjcStaticLibrary.a
let project = Project(name: "App", targets: [ Target(name: "App", platform: .iOS, product: .app, bundleId: "io.tuist.App", infoPlist: "Info.plist", sources: "Sources/**", dependencies: [ .library(path: "prebuilt/libObjcStaticLibrary.a", publicHeaders: "prebuilt/include", swiftModuleMap: nil) ]) ])
tuist generate
build fails!
Expected behavior The generated project should build with the following error:
ld: library not found for -lObjcStaticLibrary clang: error: linker command failed with exit code 1 (use -v to see invocation)
Additional context
Investigating this further, it seem's the LIBRARY_SEARCH_PATHS build setting is not set. Setting it to $(SRCROOT)/prebuilt fixes the issue.
LIBRARY_SEARCH_PATHS
$(SRCROOT)/prebuilt
Let me know if I made some false assumptions in my setup
The text was updated successfully, but these errors were encountered:
That seems a legit issue. Good catch @kwridan
Sorry, something went wrong.
kwridan
Successfully merging a pull request may close this issue.
Describe the bug
Generated projects fail to build when depending on c / Objective-C static libraries.
To Reproduce
e.g.
e.g.
tuist generate
build fails!
Expected behavior
The generated project should build with the following error:
Additional context
Investigating this further, it seem's the
LIBRARY_SEARCH_PATHS
build setting is not set.Setting it to
$(SRCROOT)/prebuilt
fixes the issue.Let me know if I made some false assumptions in my setup
The text was updated successfully, but these errors were encountered: