# Codesign fails today?

**URL:** <https://forum.xojo.com/t/codesign-fails-today/18809>\
**Category:** Extras\
**Created:** [August 23, 2014, 6:16am UTC](https://forum.xojo.com/t/codesign-fails-today/18809 "2014-08-23T06:16:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeff\_Tullin](https://forum.xojo.com/user_avatar/forum.xojo.com/jeff_tullin/32/693_2.png) [@Jeff\_Tullin](https://forum.xojo.com/u/Jeff_Tullin)\
**Post date:** [August 23, 2014, 6:16am UTC](https://forum.xojo.com/t/codesign-fails-today/18809/1 "2014-08-23T06:16:31Z")

</div>

This morning my code signing isn’t working.  
I haven’t updated Xcode or OSX for months

The message I get is

/users/myname/Documents/Mac2014/myapp.app: cannot find code object on disk  
In subcomponent: /Users/myname/Documents/Mac2014/myapp.app/Contents/Frameworks/MBS Real Studio Compression Plugin.rbx\_2.dylib

Anyone have an idea what can be done to fix /cause that?

---

<div class="post-metadata">

**Author:** ![Jeff\_Tullin](https://forum.xojo.com/user_avatar/forum.xojo.com/jeff_tullin/32/693_2.png) [@Jeff\_Tullin](https://forum.xojo.com/u/Jeff_Tullin)\
**Post date:** [August 23, 2014, 7:45am UTC](https://forum.xojo.com/t/codesign-fails-today/18809/2 "2014-08-23T07:45:04Z")

</div>

I can codesign a simple RTF file in the same folder.  
I can see the file it implies is missing within the frameworks folder.  
This is affecting builds from 2012,2013 and 2014  
If I remove --deep from the command, it fails to sign the app itself with the same message.

---

<div class="post-metadata">

**Author:** ![Christian\_Schmitz](https://forum.xojo.com/user_avatar/forum.xojo.com/christian_schmitz/32/158_2.png) [@Christian\_Schmitz](https://forum.xojo.com/u/Christian_Schmitz)\
**Post date:** [August 23, 2014, 8:30am UTC](https://forum.xojo.com/t/codesign-fails-today/18809/3 "2014-08-23T08:30:15Z")

</div>

Well, I compile current plugins using Xcode 5.1.1 on Mac OS X 10.9.4.

If you have current plugins and older Xcode to sign, it may not know about newer library formats.

---

<div class="post-metadata">

**Author:** ![Christian\_Schmitz](https://forum.xojo.com/user_avatar/forum.xojo.com/christian_schmitz/32/158_2.png) [@Christian\_Schmitz](https://forum.xojo.com/u/Christian_Schmitz)\
**Post date:** [August 23, 2014, 8:30am UTC](https://forum.xojo.com/t/codesign-fails-today/18809/4 "2014-08-23T08:30:36Z")

</div>

What MBS Plugin version? What Mac OS X version? What Xcode Version?

---

<div class="post-metadata">

**Author:** ![Jeff\_Tullin](https://forum.xojo.com/user_avatar/forum.xojo.com/jeff_tullin/32/693_2.png) [@Jeff\_Tullin](https://forum.xojo.com/u/Jeff_Tullin)\
**Post date:** [August 23, 2014, 8:42am UTC](https://forum.xojo.com/t/codesign-fails-today/18809/5 "2014-08-23T08:42:46Z")

</div>

Thanks Christian.

You’ve helped resolve this just by asking for the Xcode version. (Although the error message pointed to MBS, that was a red herring: looks like they were the first items to be considered for signing in the bundle)

It appears that Xcode has recently and silently updated itself.  
In the process it removed the old path that I had as the first line of my script:

`
export CODESIGN_ALLOCATE="/Applications/Xcode.app/Contents/Developer/usr/bin/codesign_allocate"`

That used to be essential as it wouldn’t sign without it.

When I launched Xcode to find the version (now 5.1.1), I had to authorise once again.  
Looks like it wasn’t going to allow me to sign anything until I agreed to another set of terms and conditions.  
Once Xcode 5.1.1 had been opened in this way to get the version number, the code sign still failed.

But removing the CODESIGN\_ALLOCATE shown above (given the path was no longer valid) allowed the code signing to work.  
Im not sure where it is getting the helper tool from now, but things appear to sign again.

Sometimes all it takes is someone asking a question to trigger another set of possibilities.  
🙂

---

<div class="post-metadata">

**Author:** ![Christian\_Schmitz](https://forum.xojo.com/user_avatar/forum.xojo.com/christian_schmitz/32/158_2.png) [@Christian\_Schmitz](https://forum.xojo.com/u/Christian_Schmitz)\
**Post date:** [August 23, 2014, 8:46am UTC](https://forum.xojo.com/t/codesign-fails-today/18809/6 "2014-08-23T08:46:47Z")

</div>

I’m happy that my plugins work correct 🙂

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 5:23pm UTC](https://forum.xojo.com/t/codesign-fails-today/18809/7 "2020-10-29T17:23:20Z")

</div>


