# Moving to cocoa

**URL:** <https://forum.xojo.com/t/moving-to-cocoa/31288>\
**Category:** Getting Started\
**Created:** [May 6, 2016, 9:13pm UTC](https://forum.xojo.com/t/moving-to-cocoa/31288 "2016-05-06T21:13:26Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kevin\_Smith](https://forum.xojo.com/letter_avatar_proxy/v4/letter/k/da6949/32.png) [@Kevin\_Smith](https://forum.xojo.com/u/Kevin_Smith)\
**Post date:** [May 6, 2016, 9:13pm UTC](https://forum.xojo.com/t/moving-to-cocoa/31288/1 "2016-05-06T21:13:26Z")

</div>

Hello!!!  
I am using xojo 2014 r2.1  
I am trying to use cocoa for mac build. When I build the application it produces the .tar file without any error. but when I right click and click on extract I get the following error.

! D:\Xojo\SourceFixed\Source\Builds - Net2.xojo\_project\Mac OS X (Cocoa Intel)\et2.app.tar: Cannot open Versions\Current\Resources (Net2.app\Contents\Frameworks\XojoFramework.framework\Resources --\> Versions\Current\Resources)  
! D:\Xojo\SourceFixed\Source\Builds - Net2.xojo\_project\Mac OS X (Cocoa Intel)\et2.app.tar: Symbolic link points to missing file  
! D:\Xojo\SourceFixed\Source\Builds - Net2.xojo\_project\Mac OS X (Cocoa Intel)\et2.app.tar: Cannot open Versions\Current\XojoFramework (Net2.app\Contents\Frameworks\XojoFramework.framework\XojoFramework --\> Versions\Current\XojoFramework)  
! D:\Xojo\SourceFixed\Source\Builds - Net2.xojo\_project\Mac OS X (Cocoa Intel)\et2.app.tar: Symbolic link points to missing file

And when I choose carbon option and repeat these steps then I get no errors.  
Any ideas what could be going wrong?

---

<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:** [May 6, 2016, 10:02pm UTC](https://forum.xojo.com/t/moving-to-cocoa/31288/2 "2016-05-06T22:02:01Z")

</div>

[quote=264448:@Kevin Smith]Hello!!!  
I am using xojo 2014 r2.1  
I am trying to use cocoa for mac build. When I build the application it produces the .tar file without any error. but when I right click and click on extract I get the following error.[/quote]

Are you extracting on Mac ?

---

<div class="post-metadata">

**Author:** ![Kevin\_Smith](https://forum.xojo.com/letter_avatar_proxy/v4/letter/k/da6949/32.png) [@Kevin\_Smith](https://forum.xojo.com/u/Kevin_Smith)\
**Post date:** [May 6, 2016, 10:27pm UTC](https://forum.xojo.com/t/moving-to-cocoa/31288/3 "2016-05-06T22:27:21Z")

</div>

On windows 10 and Mac both. And on both I get the same error.

---

<div class="post-metadata">

**Author:** ![DaveS](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@DaveS](https://forum.xojo.com/u/DaveS)\
**Post date:** [May 6, 2016, 10:46pm UTC](https://forum.xojo.com/t/moving-to-cocoa/31288/4 "2016-05-06T22:46:31Z")

</div>

this statement confuses me

> [@](#):
>
> When I build the application it produces the .tar file

Where does a .tar file enter into the compile sequence?

---

<div class="post-metadata">

**Author:** ![Kevin\_Smith](https://forum.xojo.com/letter_avatar_proxy/v4/letter/k/da6949/32.png) [@Kevin\_Smith](https://forum.xojo.com/u/Kevin_Smith)\
**Post date:** [May 6, 2016, 10:48pm UTC](https://forum.xojo.com/t/moving-to-cocoa/31288/5 "2016-05-06T22:48:06Z")

</div>

When I build application for mac the output I get is .tar

---

<div class="post-metadata">

**Author:** ![Beatrix\_Willius](https://forum.xojo.com/user_avatar/forum.xojo.com/beatrix_willius/32/282_2.png) [@Beatrix\_Willius](https://forum.xojo.com/u/Beatrix_Willius)\
**Post date:** [May 7, 2016, 2:39am UTC](https://forum.xojo.com/t/moving-to-cocoa/31288/6 "2016-05-07T02:39:01Z")

</div>

Have you tried to build your app on a Mac?

---

<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:** [May 7, 2016, 8:59am UTC](https://forum.xojo.com/t/moving-to-cocoa/31288/7 "2016-05-07T08:59:29Z")

</div>

From the error message it seems the app you are using to extract has issues with symbolic links. On PC that would make sense : Linux/Unix symlinks simply do not exist. Reason why one should never extract the Mac app there and copy it to OS X for use, but rather, copy the Tar and extract it on Mac.

It is more surprising to see these errors on Mac. Have you done any recompaction of the extracted tar on PC ?

I tried to reproduce the issue with a short test program but it does not appear under Windows 10 with Winzip.

It would greatly help if you posted a tar that demonstrates the issue, and tell which Windows system you are using, as well as which utility you used to extract the archive. Same thing on Mac.

---

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [May 7, 2016, 9:36am UTC](https://forum.xojo.com/t/moving-to-cocoa/31288/8 "2016-05-07T09:36:11Z")

</div>

Download from the App Store: The Unarchiver. It is free, works fine for plenty of things, and works fine with Xojo .tar.

---

<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:** [May 7, 2016, 9:44am UTC](https://forum.xojo.com/t/moving-to-cocoa/31288/9 "2016-05-07T09:44:10Z")

</div>

BTW : extracting the tar on PC will damage the Mac App. Xojo uses tar archives precisely to protect symbolic links, resource forks and permissions, so once extracted on Mac, the app bundle works as expected.

The reason why Carbon seems immune may have to do with more recent Cocoa bundle structure requirements which mandate symbolic links and some precise permissions.

[https://forum.xojo.com/12162-symbolic-links-inside-xojo-framework/0](https://forum.xojo.com/12162-symbolic-links-inside-xojo-framework/0)

---

<div class="post-metadata">

**Author:** ![Kevin\_Smith](https://forum.xojo.com/letter_avatar_proxy/v4/letter/k/da6949/32.png) [@Kevin\_Smith](https://forum.xojo.com/u/Kevin_Smith)\
**Post date:** [May 7, 2016, 3:11pm UTC](https://forum.xojo.com/t/moving-to-cocoa/31288/10 "2016-05-07T15:11:43Z")

</div>

> [@](#):
>
> It would greatly help if you posted a tar that demonstrates the issue,

How do I post file in the post? I am not able to find the attachment option.

---

<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:** [May 7, 2016, 3:14pm UTC](https://forum.xojo.com/t/moving-to-cocoa/31288/11 "2016-05-07T15:14:10Z")

</div>

> [@264558:@Kevin Smith](#):
>
> How do I post file in the post? I am not able to find the attachment option.

Open a free [DropBox.com](http://DropBox.com) account, place the file in it, and post the public URL.

---

<div class="post-metadata">

**Author:** ![Kevin\_Smith](https://forum.xojo.com/letter_avatar_proxy/v4/letter/k/da6949/32.png) [@Kevin\_Smith](https://forum.xojo.com/u/Kevin_Smith)\
**Post date:** [May 7, 2016, 3:40pm UTC](https://forum.xojo.com/t/moving-to-cocoa/31288/12 "2016-05-07T15:40:20Z")

</div>

[link text](https://drive.google.com/file/d/0B1wq7zZFVAPAa0RscXZGVXZNVEk/view?usp=sharing)  
Here is the link. I uploaded on google drive. Let me know if it works

---

<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:** [May 7, 2016, 4:14pm UTC](https://forum.xojo.com/t/moving-to-cocoa/31288/13 "2016-05-07T16:14:34Z")

</div>

No error with Winzip on PC. Although as I wrote above, the uncompressed content should never be used subsequently on Mac, and can only be peeked at for curiosity.

A double click on testfor.app.tar on Mac under El Capitan uncompresses it just fine, and the app runs.

What is the program you use on PC to uncompress the tar archive ?

---

<div class="post-metadata">

**Author:** ![Kevin\_Smith](https://forum.xojo.com/letter_avatar_proxy/v4/letter/k/da6949/32.png) [@Kevin\_Smith](https://forum.xojo.com/u/Kevin_Smith)\
**Post date:** [May 7, 2016, 5:12pm UTC](https://forum.xojo.com/t/moving-to-cocoa/31288/14 "2016-05-07T17:12:00Z")

</div>

> [@](#):
>
> What is the program you use on PC to uncompress the tar archive ?

winrar

---

<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:** [May 7, 2016, 5:36pm UTC](https://forum.xojo.com/t/moving-to-cocoa/31288/15 "2016-05-07T17:36:19Z")

</div>

Well, when I run Winrar as administrator, as suggested by it when errors are mentioned, it extracts without a glitch.

Once again, though, it is no point to extract the Mac tar archive on PC : it should only be extracted on Mac. And on Mac all is needed is to double click on the tar archive, OS X will take care of it without any error.

---

<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:18pm UTC](https://forum.xojo.com/t/moving-to-cocoa/31288/16 "2020-10-29T18:18:29Z")

</div>


