openframeworks / openframeworks/openFrameworks
Xcode sometimes runs compiled apps translocated (can't find data folder)
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
forgive this vague bug report, but I'm noticing that sometimes with my students that sometimes when we share projects, the compiled apps are run from Xcode with translocation -- so the app can't find the data folder.
I know the app is translocated because if you print the cwd it's one of those weird auto-generated paths.
I don't have a ton of info available to explain this, but what I've seen is student A gives student B a zip of a project file. Student B compiles it and it's run with translocation from within Xcode. When we use the project generator and/or clean and rebuild the project it doesn't fix things. but student B making a new project, and copying the code and data over to the new project works. So it's perhaps something like a flag that gets set somewhere.
I'm sorry for not having more info on this -- will try to see how I can recreate it, but I've definitely seen it a few times this semester (and was helping debug this last night). It may be something in a new version of Xcode, perhaps it's something like a security flag when running other peoples Xcode projects....
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source files or tests are identified. Start by reproducing the issue with a zipped project opened and run from Xcode, then inspect the working directory and data-folder lookup; done means a shared project reliably finds its data folder when compiled and run from Xcode.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, macos
- Domain
- build-system, desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100