# Macoslib - "Test in Cocoa module failed:" 2014R3

**URL:** <https://forum.xojo.com/t/macoslib-test-in-cocoa-module-failed-2014r3/21055>\
**Category:** macOS\
**Created:** [December 18, 2014, 2:01am UTC](https://forum.xojo.com/t/macoslib-test-in-cocoa-module-failed-2014r3/21055 "2014-12-18T02:01:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lennox\_Jacob](https://forum.xojo.com/letter_avatar_proxy/v4/letter/l/c5a1d2/32.png) [@Lennox\_Jacob](https://forum.xojo.com/u/Lennox_Jacob)\
**Post date:** [December 18, 2014, 2:01am UTC](https://forum.xojo.com/t/macoslib-test-in-cocoa-module-failed-2014r3/21055/1 "2014-12-18T02:01:21Z")

</div>

Hello,

I downloaded Macoslib - Nov 11 version and ran macoslib.rbvcp, it compiled but when I launch it I got this message…

“Test in Cocoa module failed:”

How can I get it to run in Cocoa in 2014R3?

Thanks.

Lennox

---

<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:** [December 18, 2014, 3:13am UTC](https://forum.xojo.com/t/macoslib-test-in-cocoa-module-failed-2014r3/21055/2 "2014-12-18T03:13:55Z")

</div>

Petition the macoslib maintainers to fix it  
I can see WHAT test is failing but cant say what the answer is as to why or what the solution is  
This test in App.TestCoreFoundation fails

```auto
pTestAssert url.NetLocation = "localhost"
```

---

<div class="post-metadata">

**Author:** ![Joe\_Ranieri](https://forum.xojo.com/letter_avatar_proxy/v4/letter/j/43a26b/32.png) [@Joe\_Ranieri](https://forum.xojo.com/u/Joe_Ranieri)\
**Post date:** [December 18, 2014, 8:02am UTC](https://forum.xojo.com/t/macoslib-test-in-cocoa-module-failed-2014r3/21055/3 "2014-12-18T08:02:36Z")

</div>

[quote=153313:@Norman Palardy]Petition the macoslib maintainers to fix it  
I can see WHAT test is failing but cant say what the answer is as to why or what the solution is  
This test in App.TestCoreFoundation fails

```auto
pTestAssert url.NetLocation = "localhost"
```

It’s a faulty assumption in the macoslib test case and is documented in this Apple release note:

[quote]The “file” URL scheme is defined so that no authority, an empty host, and “localhost” all mean the end-user’s machine. To reduce memory use, file URL objects created with file system paths or from file system representation no longer include the host string “localhost”.

This change also means -host no longer returns the string “localhost” for file URLs and will instead return nil.[/quote]

---

<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:** [December 18, 2014, 11:54am UTC](https://forum.xojo.com/t/macoslib-test-in-cocoa-module-failed-2014r3/21055/4 "2014-12-18T11:54:45Z")

</div>

Click twice resume and the app runs. It is annoying, though.

---

<div class="post-metadata">

**Author:** ![Lennox\_Jacob](https://forum.xojo.com/letter_avatar_proxy/v4/letter/l/c5a1d2/32.png) [@Lennox\_Jacob](https://forum.xojo.com/u/Lennox_Jacob)\
**Post date:** [December 18, 2014, 3:07pm UTC](https://forum.xojo.com/t/macoslib-test-in-cocoa-module-failed-2014r3/21055/5 "2014-12-18T15:07:46Z")

</div>

OK Thanks.

Lennox

---

<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:32pm UTC](https://forum.xojo.com/t/macoslib-test-in-cocoa-module-failed-2014r3/21055/6 "2020-10-29T17:32:23Z")

</div>


