codesign of framework becomes invalid after reboot!

Hi,


We have a weird problem after upgrading to Yosamite:


We use a 3rd party framework and codesign it on copying in Build Phases.

When we run the application (which is LSUIElement - agent application) sometimes after reboot it crashes with the following crash report:


Exception Type: EXC_BREAKPOINT (SIGTRAP)

Exception Codes: 0x0000000000000002, 0x0000000000000000


Application Specific Information:

dyld: launch, loading dependent libraries


Dyld Error Message:

Library not loaded: @executable_path/../Frameworks/TspSdk.framework/Versions/A/TspSdk

Referenced from: /Users/USER/Desktop/Test1.app/Contents/MacOS/Test

Reason: no suitable image found. Did find:

/Users/myuser/Desktop/Test1.app/Contents/MacOS/../Frameworks/TspSdk.framework/Versions/A/TspSdk: code signature invalid for '/Users/myuser/Desktop/Test1.app/Contents/MacOS/../Frameworks/TspSdk.framework/Versions/A/TspSdk'


/Users/myuser/Desktop/Test1.app/Contents/MacOS/../Frameworks/TspSdk.framework/Versions/A/TspSdk: code signature invalid for '/Users/myuser/Desktop/Test1.app/Contents/MacOS/../Frameworks/TspSdk.framework/Versions/A/TspSdk'


Invoking codesign from terminal on this framework returns valid results.


Also we see some alert, that asks us to check whether we try to run this application on a proper version of OS X.

Can someboby help us to understand what might be the problem?


Thanks!

Try moving the built product to /Applications.... Once it's there (before reboot) verify that everything is in order with:


spctl -v -a /Applications/MyApp.app


Which should verify the codesign on top of other things. If that's okay, reboot and repeat running spctl on it again once rebooted.


Just to add spctl seems to get a better verbosity with the more vvvvv's you add to it... i.e.:


spctl -vvvvvv -a /Applicaitons/MyApp.app
codesign of framework becomes invalid after reboot!
 
 
Q