2

Mac OSX アプリ バンドルに問題があります。アプリバンドルを実行したい場合、何も起こりません (ダブルクリックmyApp.app)。

./myApp.app/Contents/MacOS/myApp実行することで問題なくアプリを実行できます。

ディレクトリ構造:

myApp.app/
    Contents/
        Info.plist
        PkgInfo
        Resources/
        Frameworks/
        MacOS/
            myApp

私のInfo.plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>CFBundleDevelopmentRegion</key>
    <string>en</string>
    <key>CFBundleExecutable</key>
    <string>myApp</string>
    <key>CFBundleIconFile</key>
    <string>icon</string>
    <key>CFBundleIdentifier</key>
    <string>com.whatever.test</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.0</string>
    <key>CFBundleName</key>
    <string>${PRODUCT_NAME}</string>
    <key>CFBundlePackageType</key>
    <string>APPL</string>
    <key>CFBundleShortVersionString</key>
    <string>1.0.0</string>
    <key>CFBundleSignature</key>
    <string>com.whatever.test</string>
    <key>CFBundleVersion</key>
    <string>1.0.0</string>
    <key>LSMinimumSystemVersion</key>
    <string>${MACOSX_DEPLOYMENT_TARGET}</string>
    <key>NSHumanReadableCopyright</key>
    <string>Copyright © 2014. All rights reserved.</string>
</dict>
</plist>

編集:

Console.app の結果:

08.02.14 16:30:45,041 com.apple.launchd.peruser.501[1077]: (com.whatever.test.72544[20350]) Job failed to exec(3) for weird reason: 13
08.02.14 16:30:45,043 Finder[1094]: 8837325: Attempting to SIGCONT to pid #20350 failed, with errno=#3, or the process failed to actually start
08.02.14 16:30:45,046 Dock[1091]: no information back from LS about running process LSASN:{hi=0x0;lo=0x168168}
4

3 に答える 3

0

_CodeSignatureディレクトリが欠落しているため、コードが適切に署名されていないと思います。したがってGateKeeper、コードの実行をブロックしている可能性があります。

次の 2 つのオプションがあります。

  • コードに署名します。
  • Controlapp bundle をクリックしてから選択Openします - コード署名チェックをバイパスします。
于 2014-02-08T15:28:59.457 に答える
0

この行:

08.02.14 16:30:45,041 com.apple.launchd.peruser.501[1077]: (com.whatever.test.72544[20350]) Job failed to exec(3) for weird reason: 13

Permission Deniedこのマニュアルページに基づいて、問題があると思います:

https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man2/intro.2.html

于 2014-02-08T15:42:02.897 に答える