Uses DEVELOPER_DIR instead of hard-coded path to Xcode#2
Uses DEVELOPER_DIR instead of hard-coded path to Xcode#2lyricsboy wants to merge 2 commits intosoffes:masterfrom
Conversation
…ctory. Uses a shell script as a post-build action in the schemes to post-process the module maps.
|
Interesting. How are you setting |
|
It's set by the build process automatically. The typical value is |
|
Don't merge this just yet; it worked locally when I built using Carthage but is failing on CI for some reason. |
|
OK, I added some magic quotes around shell variables in the script, and that seems to have made my CI environment happy (it uses spaces in the derived data folder path). This works for me now, but there are still a couple of caveats:
|
|
@lyricsboy thanks for checking all of those variations. Do you have any ideas to solve this? |
|
None yet. I'm not familiar enough with module maps to say for certain if there's a better supported way. I see these changes as a marginal functional improvement, in that they support building with a non-traditional Xcode path. If you want to merge them, I think it would be good for me to document this fanciness in the README first. |
|
I'll probably keep it simple to avoid unexpected behavior of mixing like you discovered. Thanks for your work on this. I don't know what I'm doing either :) Just figured out enough to get this to work. It's a real shame this is necessary in the first place. |
|
This was super useful & solved our issue, thanks @lyricsboy. If anyone needs it the pull request branch is available here, i.e. (I couldn't work out how to point Carthage directly to this PR, so I forked it.) |
|
Fixed in e3d71cd |
Uses a shell script as a post-build action in the schemes to post-process the module maps.
This is a little bit of a hack, but it seems to work fine. What do you think, @soffes ?
The goal is to make this work regardless of where Xcode is installed.