vampiress ,
@vampiress@eigenmagic.net avatar

I figured out the xcode issue. Just not the solution.

So, the engine xcodeproj in its own git submodule gets added to the game xcode project.

It works fine.

But on my M2 MacBook Air, same Xcode version, it expects the relative path name of the embedded xcodeproj to be one level shallower.

Like
../lib/sapphia/[blah]
rather than
../../lib/sapphia/[blah]

So odd.

jrose ,
@jrose@belkadan.com avatar

@vampiress I’m not sure why it’s happening, but you can see within Xcode itself how a particular reference is resolved in the File Inspector: https://developer.apple.com/library/archive/documentation/DeveloperTools/Conceptual/XcodeProjectManagement/130-Files_in_Projects/project_files.html#//apple_ref/doc/uid/TP40002666-BBCDFECB

(I didn’t see this in the modern docs. :-/ I know people on the Apple Docs team so I don’t want to get too snarky, but…)

vampiress OP ,
@vampiress@eigenmagic.net avatar

@jrose Ooooh. That's very useful, thanks. It's relative to enclosing group. Which means the group it's a part of MIGHT be the offending thing - it resolves differently on either machine for some reason? Either way, I'll try setting it to relative to project and see if that solves my problem.

vampiress OP ,
@vampiress@eigenmagic.net avatar

It's like one computer has the current working directory as where the .pbxproj file is, and the other where the .xcodeproject directory itself resides

vampiress OP ,
@vampiress@eigenmagic.net avatar

Not the biggest problem, just means I have to alter the project file when I want to use my MacBook, and back again when using my iMac.

dequbed ,
@dequbed@mastodon.chaosfield.at avatar

@vampiress that is weird and feels like an off-by-one-error inside xcode (e.g. because one project is is ~/dev/projects and the other one is in ~/develop/ and the different path depths are throwing xcode off)

vampiress OP ,
@vampiress@eigenmagic.net avatar

@dequbed Well, both projects are in /Users/elissa/src/deckconn/projects

Identical on both machines, as I have the same username and keep my local repos in the same place.

dequbed ,
@dequbed@mastodon.chaosfield.at avatar

@vampiress okay that is extra weird :blobcatfearful:
I do hope you figure out what the problem is but it sounds easy enough to work around too so at least there's that ^^'

vampiress OP ,
@vampiress@eigenmagic.net avatar

@dequbed Yeah. When I first saw the issue I thought maybe it put the project file in with absolute rather than relative path but... no, relative just... relatively wrong.

buzzyrobin ,
@buzzyrobin@chaos.social avatar

@vampiress I would love to know if there's some silly "its idea of the 'current path' is retained when/where Xcode is first started", a la VS Code, Vim, etc etc.

vampiress OP ,
@vampiress@eigenmagic.net avatar

@buzzyrobin yeah. Mm. I wonder if one being x86_64 and the other being arm64 is a factor?

rfc6919 ,
@rfc6919@aus.social avatar

@vampiress @buzzyrobin i was just about to suggest that. grep the project file for lib/sapphia and see if there’s 2 hits for both paths, edit to fix?

vampiress OP ,
@vampiress@eigenmagic.net avatar

@rfc6919 @buzzyrobin Nope. Just the one instance.

rfc6919 ,
@rfc6919@aus.social avatar

@vampiress @buzzyrobin bleh. make the extra directory it wants, then “ln -s ../sapphia/ sapphia” in the intermediate directory so both paths work? 🤷

vampiress OP ,
@vampiress@eigenmagic.net avatar

@rfc6919 @buzzyrobin Good point. Clumsy but yeah… it’ll do. Fortunately I’m the only one working on it so I won’t have to get other people to kludge it.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • test
  • worldmews
  • mews
  • All magazines