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

Could not make exclude directory #6

Closed
idrisr opened this issue May 13, 2016 · 5 comments
Closed

Could not make exclude directory #6

idrisr opened this issue May 13, 2016 · 5 comments

Comments

@idrisr
Copy link

idrisr commented May 13, 2016

I'm getting the message Could not make exclude directory. Directories should be relative to the project file which is the same as being relative to ($SRCROOT). when I run the executable from the top level directory of my project directly and in a Run Script Build Phase.

My directory structure is as such:

MyAppFolder/
    Model/      # source dir
    Controller/ # source dir
    View/       # source dir
    Podfile
    Podfile.lock
    Pods
    README.md
    Services
    Support
    Supporting Files
    MyApp
    MyApp.xcodeproj
    MyApp.xcworkspace

The value of $SRCROOT is MyAppFolder.

Am I breaking some assumptions with the directory structure?

@soolwan
Copy link
Contributor

soolwan commented May 13, 2016

Can you provide the line you have set in your Run Script build phase please? I would expect if you wanted to exclude your View directory you could write ```XcodeIssueGenerator -w "TODO" -b DEBUG -x "View/".

You could try to put an echo "$SRCROOT" in your Run Script phase and then look in the Report Navigator pane for the build output and take note of what $SRCROOT is for your project. Then base your exclude directories off of that.

@soolwan
Copy link
Contributor

soolwan commented May 13, 2016

Also, usually a new Xcode project has a root folder and then a nested folder of the same name where all of the files exist. In that case you would have to use MySampleProject/View/ as your exclude directory.

@soolwan
Copy link
Contributor

soolwan commented May 13, 2016

I believe this issue is related to not being able to handle $SRCROOT with spaces fixed in #9 and in the latest release v0.5.2. Thanks!

@soolwan soolwan closed this as completed May 13, 2016
@idrisr
Copy link
Author

idrisr commented May 17, 2016

Ok thanks for the response. My needs are simpler than yours right now so I'm going with this: https://bendodson.com/weblog/2014/10/02/showing-todo-as-warning-in-swift-xcode-project/

@soolwan
Copy link
Contributor

soolwan commented May 17, 2016

👍

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

2 participants