<p></p>
<p>Yes, bundle-apps.sh prefers ~/Library/Frameworks.</p>
<blockquote>
<p>I forced an early nightly, and I notice that the filesize of OHRRPGCE-wip-x86_64.dmg did increase noticeably (12913931 bytes instead of 11427333 bytes) so maybe that helped?</p>
</blockquote>
<p>Ah! I downloaded and compared ohrrpgce-mac-minimal-x86_64.tar.gz from 20200821 and 20200826 and discovered that 20200826 contains 3 copies of SDL! The duplicate copies of SDL is a separate bug. It might happen that it allows the x86_64 20200826 build to run, but isn't a real solution.</p>
<pre><code>mac_x86_64_sdl_20200826/OHRRPGCE-Game.app/Contents/Frameworks/SDL.framework/SDL
mac_x86_64_sdl_20200826/OHRRPGCE-Game.app/Contents/Frameworks/SDL.framework/Versions/A/SDL
mac_x86_64_sdl_20200826/OHRRPGCE-Game.app/Contents/Frameworks/SDL.framework/Versions/Current/SDL
</code></pre>
<p>And one of these has been trimmed by bundle-apps.sh to just x86_64 while the other contains both x86 and x86_64.<br>
Normally, two of these are symlinks to the actual file. bundle-apps.sh removes the symlinks from OHRRPGCE-Game.app but not OHRRPGCE-Custom.app, because those symlinks would get expanded to copies when distributing on Windows.<br>
The fact that we now have three copies but didn't before makes me think that the symlinks got messed up when you copied the framework. I suggest you delete the ~/Library/Frameworks/* because it didn't fix the problem (see below).<br>
SDL_mixer.framework, SDL2.framework and SDL2_mixer.framework don't have any duplication. They just have <code>SDL*.framework/Versions/A/SDL*</code>.</p>
<p>Back to the real problem.<br>
I compared 20200731, 20200821, 20200826 builds of ohrrpgce-mac-minimal-x86.tar.gz and found no differences between the frameworks in them, as expected. Then I grepped ohrrpgce-game and discovered the cause of the problem:</p>
<pre><code>20200731 @executable_path/../Frameworks/SDL.framework/Versions/A/SDL
20200821 @rpath/SDL.framework/Versions/A/SDL
20200826 @rpath/SDL.framework/Versions/A/SDL
</code></pre>
<p>The x86_64 and x86_64-sdl2 builds all point to <code>@rpath/SDL.framework/Versions/A/SDL</code> or <code>@rpath/SDL2.framework/Versions/A/SDL2</code></p>
<p>It's not wrong for these paths to contain <code>@rpath</code>. The problem is that the rpath apparently isn't being set correctly, we need to pass something to ld.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/ohrrpgce/ohrrpgce/issues/1113#issuecomment-680446330">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AMWGWZQZRESAN4VGNX6MYXLSCR2APANCNFSM4MLGNCZQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AMWGWZTASOIMZ5PQLVX6HJ3SCR2APA5CNFSM4MLGNCZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFCHMS6Q.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/ohrrpgce/ohrrpgce/issues/1113#issuecomment-680446330",
"url": "https://github.com/ohrrpgce/ohrrpgce/issues/1113#issuecomment-680446330",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>