Binary is missing Template dependency
yepher opened this issue · 2 comments
yepher commented
The output app ParseAppGen
is missing the template library. When running the app outside of XCode or double clicking on saved file will cause app to crash. This is the crash generated when run outside of XCode:
Dyld Error Message:
Library not loaded: @rpath/TDTemplateEngine.framework/Versions/A/TDTemplateEngine
Referenced from: /Users/USER/Library/Developer/Xcode/DerivedData/PEGKit-evbpxkuihrhytecvnigwxryrwvcu/Build/Products/Debug/ParserGenApp.app/Contents/MacOS/ParserGenApp
Reason: image not found
Full Output
Process: ParserGenApp [62015]
Path: /Users/USER/Library/Developer/Xcode/DerivedData/PEGKit-evbpxkuihrhytecvnigwxryrwvcu/Build/Products/Debug/ParserGenApp.app/Contents/MacOS/ParserGenApp
Identifier: com.parsekit.ParserGenApp
Version: ???
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: ParserGenApp [62015]
User ID: 1489
Date/Time: 2016-11-21 07:51:13.772 -0600
OS Version: Mac OS X 10.11.6 (15G1108)
Report Version: 11
Anonymous UUID: 0D496D28-74B4-26D0-DF03-1BFED4ABE361
Sleep/Wake UUID: 1CEA6906-4E8A-400D-ABC9-28B1E7BD641F
Time Awake Since Boot: 290000 seconds
Time Since Wake: 4500 seconds
System Integrity Protection: enabled
Crashed Thread: 0
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
dyld: launch, loading dependent libraries
Dyld Error Message:
Library not loaded: @rpath/TDTemplateEngine.framework/Versions/A/TDTemplateEngine
Referenced from: /Users/USER/Library/Developer/Xcode/DerivedData/PEGKit-evbpxkuihrhytecvnigwxryrwvcu/Build/Products/Debug/ParserGenApp.app/Contents/MacOS/ParserGenApp
Reason: image not found
Binary Images:
0x7fff6de80000 - 0x7fff6deb7a47 dyld (360.22) <DC81CC9D-651A-3A45-8809-928282052BD3> /usr/lib/dyld
0x7fff8a022000 - 0x7fff8a22ffff libicucore.A.dylib (551.51.4) <3899B146-3840-3D4A-8C4A-FE391D5D25C7> /usr/lib/libicucore.A.dylib
yepher commented
Here are the steps to reproduce issus:
- Run
ParserGenApp
in XCode - Hold down
command
key and double click on app in task tray- This will reveal the physical location of that app in finder
- Exit app (or stop in XCode)
- Double click on
ParserGenApp
in finder.
Notice the app crashes with the above reported output.
yepher commented
One solution is to drab:
$Build/Products/Debug/TDTemplateEngine.framework
into:
$Build/Products/Debug/ParserGenApp.app/Contents/Frameworks
But the project should be fixed so that manual step does not need to be done.