# codesign says my bundle format is ambiguous

**URL:** <https://forum.xojo.com/t/codesign-says-my-bundle-format-is-ambiguous/31893>\
**Category:** General\
**Created:** [June 10, 2016, 7:46am UTC](https://forum.xojo.com/t/codesign-says-my-bundle-format-is-ambiguous/31893 "2016-06-10T07:46:02Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stanley\_Roche\_Busk](https://forum.xojo.com/user_avatar/forum.xojo.com/stanley_roche_busk/32/633_2.png) [@Stanley\_Roche\_Busk](https://forum.xojo.com/u/Stanley_Roche_Busk)\
**Post date:** [June 10, 2016, 7:46am UTC](https://forum.xojo.com/t/codesign-says-my-bundle-format-is-ambiguous/31893/1 "2016-06-10T07:46:02Z")

</div>

After signing my app with codesign I use to do a ‘codesign -vvv myapp’ to check it. This is what I get:

myapp.app: bundle format is ambiguous (could be app or framework)  
In subcomponent: Builds - myapp.xojo\_binary\_project/Mac OS X (Cocoa Intel)/myapp.app/Contents/Frameworks/XojoFramework.framework

This is what Apple says about that ([https://developer.apple.com/library/mac/technotes/tn2206/\_index.html#//apple\_ref/doc/uid/DTS40007919-CH1-TNTAG313](https://developer.apple.com/library/mac/technotes/tn2206/_index.html#//apple_ref/doc/uid/DTS40007919-CH1-TNTAG313))

codesign says my bundle format is ambiguous.  
codesign thinks your bundle looks a bit like an app and a bit like a framework.  
Perhaps you have both Contents and Versions directories, or files in the top directory that match reserved names for directories in a bundle.  
Perhaps there’s an Info.plist in an odd place.  
In short, put everything in the correct places.

Is there any way to get rid of that error?

---

<div class="post-metadata">

**Author:** ![Marco\_Hof](https://forum.xojo.com/user_avatar/forum.xojo.com/marco_hof/32/642_2.png) [@Marco\_Hof](https://forum.xojo.com/u/Marco_Hof)\
**Post date:** [June 10, 2016, 8:09am UTC](https://forum.xojo.com/t/codesign-says-my-bundle-format-is-ambiguous/31893/2 "2016-06-10T08:09:13Z")

</div>

What does spctl -a -v /your.app say?

Did you by any chance move your App to another machine via Dropbox and try to codesign it there?

---

<div class="post-metadata">

**Author:** ![Stanley\_Roche\_Busk](https://forum.xojo.com/user_avatar/forum.xojo.com/stanley_roche_busk/32/633_2.png) [@Stanley\_Roche\_Busk](https://forum.xojo.com/u/Stanley_Roche_Busk)\
**Post date:** [June 10, 2016, 8:16am UTC](https://forum.xojo.com/t/codesign-says-my-bundle-format-is-ambiguous/31893/3 "2016-06-10T08:16:09Z")

</div>

spctl -a -v /my.app says rejected

---

<div class="post-metadata">

**Author:** ![Stanley\_Roche\_Busk](https://forum.xojo.com/user_avatar/forum.xojo.com/stanley_roche_busk/32/633_2.png) [@Stanley\_Roche\_Busk](https://forum.xojo.com/u/Stanley_Roche_Busk)\
**Post date:** [June 10, 2016, 8:57am UTC](https://forum.xojo.com/t/codesign-says-my-bundle-format-is-ambiguous/31893/4 "2016-06-10T08:57:21Z")

</div>

spctl -a -vvvv -t exec /myapp.app says  
myapp.app : rejected  
origin=Mac Developer: Bjorn Eiriksson (F9JXJ58237)

Huh?

---

<div class="post-metadata">

**Author:** ![Stanley\_Roche\_Busk](https://forum.xojo.com/user_avatar/forum.xojo.com/stanley_roche_busk/32/633_2.png) [@Stanley\_Roche\_Busk](https://forum.xojo.com/u/Stanley_Roche_Busk)\
**Post date:** [June 10, 2016, 12:22pm UTC](https://forum.xojo.com/t/codesign-says-my-bundle-format-is-ambiguous/31893/5 "2016-06-10T12:22:25Z")

</div>

I finally installed 10.11.5 (from 10.11.4), Xojo 2016r1.1 (from 2015r4.1), updated all the plugins I use to last versions and the problem is gone…

---

<div class="post-metadata">

**Author:** ![Sam\_Rowlands](https://forum.xojo.com/user_avatar/forum.xojo.com/sam_rowlands/32/265_2.png) [@Sam\_Rowlands](https://forum.xojo.com/u/Sam_Rowlands)\
**Post date:** [June 11, 2016, 2:17am UTC](https://forum.xojo.com/t/codesign-says-my-bundle-format-is-ambiguous/31893/6 "2016-06-11T02:17:54Z")

</div>

In the future; you can check to see if it’s an error with your code signing script by downloading the demo of App Wrapper and code signing there. If it works in App Wrapper, then you know it’s an issue with your script. If it doesn’t work in App Wrapper, then it’s _most_ likely an issue with the signing process.

---

<div class="post-metadata">

**Author:** ![Stanley\_Roche\_Busk](https://forum.xojo.com/user_avatar/forum.xojo.com/stanley_roche_busk/32/633_2.png) [@Stanley\_Roche\_Busk](https://forum.xojo.com/u/Stanley_Roche_Busk)\
**Post date:** [June 15, 2016, 10:07am UTC](https://forum.xojo.com/t/codesign-says-my-bundle-format-is-ambiguous/31893/7 "2016-06-15T10:07:34Z")

</div>

I found the problem, Dropbox. Pausing Dropbox while building the application is the solution. The target folder is in Dropbox and it looks like the Xojo Building and Dropbox syncing processes are not good friends.

---

<div class="post-metadata">

**Author:** ![Greg\_O\_Lone](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o_lone/32/49_2.png) [@Greg\_O\_Lone](https://forum.xojo.com/u/Greg_O_Lone)\
**Post date:** [June 15, 2016, 10:37am UTC](https://forum.xojo.com/t/codesign-says-my-bundle-format-is-ambiguous/31893/8 "2016-06-15T10:37:34Z")

</div>

> [@272133:@Stanley Roche Busk](#):
>
> I found the problem, Dropbox. Pausing Dropbox while building the application is the solution. The target folder is in Dropbox and it looks like the Xojo Building and Dropbox syncing processes are not good friends.

They’re not. Dropbox locks things when it syncs.

---

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [June 15, 2016, 11:41am UTC](https://forum.xojo.com/t/codesign-says-my-bundle-format-is-ambiguous/31893/9 "2016-06-15T11:41:18Z")

</div>

It is definitely not a good idea to work in a cloud drive, such as DropBox or Google Drive. It can also impair project save.

Better work local and copy to the cloud drive when finished.

---

<div class="post-metadata">

**Author:** ![Norman\_P](https://forum.xojo.com/letter_avatar_proxy/v4/letter/n/858c86/32.png) [@Norman\_P](https://forum.xojo.com/u/Norman_P)\
**Post date:** [June 15, 2016, 1:13pm UTC](https://forum.xojo.com/t/codesign-says-my-bundle-format-is-ambiguous/31893/10 "2016-06-15T13:13:44Z")

</div>

DropBox is frequently the cause of “Hey this weird thing happened with my project”

---

<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, 6:21pm UTC](https://forum.xojo.com/t/codesign-says-my-bundle-format-is-ambiguous/31893/11 "2020-10-29T18:21:19Z")

</div>


