<div dir="ltr">Also, I forgot to mention that using the Console Utility gives nondescript errors: it just says MyApp exited with code 127.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 23, 2014 at 8:56 AM, Scott Klum <span dir="ltr"><<a href="mailto:scott.klum@gmail.com" target="_blank">scott.klum@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Lucas and David,<div><br></div><div>Thank you for your responses.</div><div class=""><div><br></div><div>
<div style="font-family:arial,sans-serif;font-size:13.333333969116211px"><b>Does anything get printed in the terminal if you type and enter: </b><b>/Applications/MyApp.app/Contents/MacOS/MyApp</b><b>?</b></div>

</div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px"><b><br></b></div></div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px">This is what I mean when I say I can run it through the terminal.  If I enter the above command the app starts properly.</div>


<div><span style="font-family:arial,sans-serif;font-size:13.333333969116211px"><b><br></b></span></div><div><div class=""><span style="font-family:arial,sans-serif;font-size:13.333333969116211px"><b>Does your app launch a lot of sub-processes at startup?</b></span><br style="font-family:arial,sans-serif;font-size:13.333333969116211px">

<br></div>Nope - and as far as I can tell the code in my main.cpp isn't even reached.</div><div><div class=""><br><b><span style="font-family:arial,sans-serif;font-size:13.333333969116211px">Are you saying that you *can* run the app from the terminal window, but that you cannot run the app by double-clicking or by using "open"? (And that it's the exact same executable...?) What command line do you use if you're not using "open"?</span><br style="font-family:arial,sans-serif;font-size:13.333333969116211px">

</b><br></div>That's correct.  I use the command described in the first response.<div class=""><br><br style="font-family:arial,sans-serif;font-size:13.333333969116211px"><span style="font-family:arial,sans-serif;font-size:13.333333969116211px"><b>Is there an environment difference (maybe LD_LIBRARY_PATH or DYLD_LIBRARY_PATH?) between your Terminal, and your overall environment?</b></span><br style="font-family:arial,sans-serif;font-size:13.333333969116211px">

<br></div>Not that I can tell.</div><div class=""><div><br><span style="font-family:arial,sans-serif;font-size:13.333333969116211px"><b>Can you launch a debug build in a debugger?</b></span><span style="font-family:arial,sans-serif;font-size:13.333333969116211px"><b><br>

</b></span></div><div><br></div></div><div>Building in debug mode doesn't seem to make any difference.</div><div><br></div><div>The fundamental problem seems to be whatever the open command does in the background, I haven't set things up properly in terms of open knowing that the when I run open MyApp.app, it should run MyApp.app/Contents/MacOS/MyApp.  I've got CFBundleExecutable set to MyApp... in fact my .plist looks like this:</div>

<div><br></div><div><div><?xml version="1.0" encoding="UTF-8"?></div><div><!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "<a href="http://www.apple.com/DTDs/PropertyList-1.0.dtd" target="_blank">http://www.apple.com/DTDs/PropertyList-1.0.dtd</a>"></div>

<div><plist version="1.0"></div><div><dict></div><div><span style="white-space:pre-wrap">   </span><key>CFBundleDevelopmentRegion</key></div><div><span style="white-space:pre-wrap"> </span><string>English</string></div>

<div><span style="white-space:pre-wrap">  </span><key>CFBundleExecutable</key></div><div><span style="white-space:pre-wrap">        </span><string>MyApp</string></div><div><span style="white-space:pre-wrap">       </span><key>CFBundleIdentifier</key></div>

<div><span style="white-space:pre-wrap">  </span><string>com.MyApp</string></div><div><span style="white-space:pre-wrap">   </span><key>CFBundleInfoDictionaryVersion</key></div><div><span style="white-space:pre-wrap">     </span><string>6.0</string></div>

<div><span style="white-space:pre-wrap">  </span><key>CFBundleName</key></div><div><span style="white-space:pre-wrap">      </span><string> MyApp</string></div><div><span style="white-space:pre-wrap">     </span><key>CFBundleIconFile</key></div>

<div><span style="white-space:pre-wrap">  </span><string> MyApp</string></div><div><span style="white-space:pre-wrap">     </span><key>CFBundlePackageType</key></div><div><span style="white-space:pre-wrap">       </span><string>APPL</string></div>

<div><span style="white-space:pre-wrap">  </span><key>CFBundleShortVersionString</key></div><div><span style="white-space:pre-wrap">        </span><string>2.1.0</string></div><div><span style="white-space:pre-wrap">       </span><key>CFBundleVersion</key></div>

<div><span style="white-space:pre-wrap">  </span><string>2.1.0</string></div><div><span style="white-space:pre-wrap">       </span><key>CSResourcesFileMapped</key></div><div><span style="white-space:pre-wrap">     </span><true/></div>

<div><span style="white-space:pre-wrap">  </span><key>LSRequiresCarbon</key></div><div><span style="white-space:pre-wrap">  </span><true/></div><div><span style="white-space:pre-wrap">    </span><key>NSHighResolutionCapable</key></div>

<div><span style="white-space:pre-wrap">  </span><true/></div><div></dict></div><div></plist></div></div><div><br></div><div>Again, not sure how to proceed.  But, I really appreciate the help.</div><div>

<br></div><div>Regards,</div><div>Scott</div></div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On Mon, Jun 23, 2014 at 6:13 AM, David Cole <span dir="ltr"><<a href="mailto:dlrdave@aol.com" target="_blank">dlrdave@aol.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Also, you may find extra hints about what's going wrong in the output of the "Console" application. (Usually found in "/Applications/Utilities") -- see if there's anything in the "system.log" in there, or poke around and see if it has a crash report related to your app.<br>


<br>
<br>
HTH,<br>
David C.<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div dir="ltr">Scott Klum<div>B.S. in Computer Science, Michigan State University 2012<br>M.S. in Computer Science, Michigan State University 2014<br>
</div></div>

</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Scott Klum<div>B.S. in Computer Science, Michigan State University 2012<br>M.S. in Computer Science, Michigan State University 2014<br></div></div>

</div>