-
Notifications
You must be signed in to change notification settings - Fork 821
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
Problem running tests under macOS #386
Comments
We can make a file at LD_RUNPATH_SEARCH_PATHS: "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks" @frankdilo Do you want to take a stab at a PR with this fix? (It might need to be |
Sure, I will take a look |
@brentleyjones from a quick glance at the code, it seems that the Both
and
as preset fix the problem. Which one do you think I should put in the preset? |
Looking into it (https://github.com/brentleyjones/xcconfigs-nbj/blob/master/Target/Universal/Tests.Universal.xcconfig), just the first: |
Thanks, PR on its way. |
So I've been going around in circles re-reading this - but it seems like this setting has been hardcoded. If I change the parameter to "test" It doesn't seem to have any impact on the generated xcode project - it's hardcoded / or overridden with @executable_path/../Frameworks My use case for using xcodeGen - is to get around users having to enter this runpath for new projects with tensorflow for swift. can I turn tests off? I'm building a tool for macOS - but I don't need these default values. |
UPDATE
I think illustrating a simple xconfig file alongside the project.yml in the readme - would go a long way to simplifying some of the harderto do configurations. other linker flags etc. Rather than trying to get every variable working in the yml file - Going to paste this guff of variables here to capture anyone searching for these which can all be configured in a xcconfig file and then reference that in the project.yml. https://gist.github.com/johndpope/7ad704adf84f4ff6dbf48da6abde31f7 N.B. I exported using xcodebuild -list
xcodebuild -scheme "ok" -showBuildSettings >> mynew.xcconfig Also - just the variables - no other guff. should look like the above file.
|
Hi there, think I have found an issue running
xcodegen
(version1.11.1
) to generate a project for amacOS
framework and it's associated test target.With the configuration below, when I try to run tests I get the following error and tests fail:
I tracked down the problem to a build setting on the test target. Adding this setting to the settings of the test target fixes running tests for me:
I think this should be the default for tests targets of frameworks under macOS.
The text was updated successfully, but these errors were encountered: