# Extender server + iOS 13 + OSX 10.15 + Clang 9

**URL:** <https://forum.defold.com/t/extender-server-ios-13-osx-10-15-clang-9/63569>\
**Category:** Announcements\
**Created:** [October 2, 2019, 2:48pm UTC](https://forum.defold.com/t/extender-server-ios-13-osx-10-15-clang-9/63569 "2019-10-02T14:48:14Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![gameanalytics](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/gameanalytics/32/6404_2.png) [@gameanalytics](https://forum.defold.com/u/gameanalytics)\
**Post date:** [October 8, 2019, 8:55am UTC](https://forum.defold.com/t/extender-server-ios-13-osx-10-15-clang-9/63569/21 "2019-10-08T08:55:44Z")

</div>

Actually now I remember the master branch for the has been reverted to the old library so that shouldn’t be crashing. If you try the previous commit to master branch it should have the XCode 11 library included I think: [https://github.com/GameAnalytics/GA-SDK-DEFOLD/archive/a51bdcff2adb2570cc0bcb56a5fa74c7f97da9b4.zip](https://github.com/GameAnalytics/GA-SDK-DEFOLD/archive/a51bdcff2adb2570cc0bcb56a5fa74c7f97da9b4.zip)

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [October 8, 2019, 9:30am UTC](https://forum.defold.com/t/extender-server-ios-13-osx-10-15-clang-9/63569/22 "2019-10-08T09:30:41Z")

</div>

Although I’ll look into this furhter, I just want to point out that the lowest OSX version we support is 10.7 (and we’ll likely update that soon),~~ and the function ([operatingsystemversionstring](https://developer.apple.com/documentation/foundation/nsprocessinfo/1408730-operatingsystemversionstring?language=objc)) you’re using is specified to exist after 10.2.  
So there shouldn’t really be a need to use the `respondsWithSelector` in this case? This should at least unblock you in this case.~~

I read too quickly for another function. The `operatingsystemversionstring` exists since `10.10` 😕

---

<div class="post-metadata">

**Author:** ![Pkeod](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pkeod/32/606_2.png) [@Pkeod](https://forum.defold.com/u/Pkeod)\
**Post date:** [October 9, 2019, 5:19am UTC](https://forum.defold.com/t/extender-server-ios-13-osx-10-15-clang-9/63569/23 "2019-10-09T05:19:28Z")

</div>

win64 bundles work for me but not win32

[https://github.com/GameAnalytics/GA-SDK-DEFOLD/issues/25](https://github.com/GameAnalytics/GA-SDK-DEFOLD/issues/25)

---

<div class="post-metadata">

**Author:** ![gameanalytics](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/gameanalytics/32/6404_2.png) [@gameanalytics](https://forum.defold.com/u/gameanalytics)\
**Post date:** [October 9, 2019, 11:38am UTC](https://forum.defold.com/t/extender-server-ios-13-osx-10-15-clang-9/63569/24 "2019-10-09T11:38:31Z")

</div>

Ok thanks for reporting it. Is it possible to test if this worked when building on the previous build server?

---

<div class="post-metadata">

**Author:** ![gameanalytics](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/gameanalytics/32/6404_2.png) [@gameanalytics](https://forum.defold.com/u/gameanalytics)\
**Post date:** [October 9, 2019, 12:23pm UTC](https://forum.defold.com/t/extender-server-ios-13-osx-10-15-clang-9/63569/25 "2019-10-09T12:23:33Z")

</div>

We are building the win32 with Visual Studio should we be building it in another way to avoid crash?

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [October 9, 2019, 12:24pm UTC](https://forum.defold.com/t/extender-server-ios-13-osx-10-15-clang-9/63569/26 "2019-10-09T12:24:47Z")

</div>

Both the stage and live servers are now the same. use [https://build.defold.com](https://build.defold.com) for building production code.

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [October 9, 2019, 12:27pm UTC](https://forum.defold.com/t/extender-server-ios-13-osx-10-15-clang-9/63569/27 "2019-10-09T12:27:00Z")

</div>

Visual Studio should be fine. Afaik 2015/2017/2019 should be ABI compatible (we use the 2015 sdk’s)

---

<div class="post-metadata">

**Author:** ![gameanalytics](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/gameanalytics/32/6404_2.png) [@gameanalytics](https://forum.defold.com/u/gameanalytics)\
**Post date:** [October 9, 2019, 12:34pm UTC](https://forum.defold.com/t/extender-server-ios-13-osx-10-15-clang-9/63569/28 "2019-10-09T12:34:00Z")

</div>

Ok thanks. Any idea what could cause a crash in win32 build but not in win64?

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [October 9, 2019, 1:24pm UTC](https://forum.defold.com/t/extender-server-ios-13-osx-10-15-clang-9/63569/29 "2019-10-09T13:24:54Z")

</div>

Not sure yet, it would be good to see the crash dump files

---

<div class="post-metadata">

**Author:** ![gameanalytics](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/gameanalytics/32/6404_2.png) [@gameanalytics](https://forum.defold.com/u/gameanalytics)\
**Post date:** [October 9, 2019, 1:30pm UTC](https://forum.defold.com/t/extender-server-ios-13-osx-10-15-clang-9/63569/30 "2019-10-09T13:30:32Z")

</div>

Crash dump file:

[\_crash.dmp.zip](https://defold-forum-bucket.nbg1.your-objectstorage.com/original/3X/0/e/0ebd356b9545e4ec1cddf1469dc9b4090d8d1ef2.zip) (16.1 KB)

I am trying to narrow it down to where the crash happens and it looks to be somewhere in the initialization of the extension that goes wrong. It looks like the comma seperated strings for for example custom dimensions is not parsed correctly in my code still in the extension layer not in the actual SDKs code. So one step closer hopefully 🙂

---

<div class="post-metadata">

**Author:** ![gameanalytics](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/gameanalytics/32/6404_2.png) [@gameanalytics](https://forum.defold.com/u/gameanalytics)\
**Post date:** [October 9, 2019, 2:14pm UTC](https://forum.defold.com/t/extender-server-ios-13-osx-10-15-clang-9/63569/31 "2019-10-09T14:14:03Z")

</div>

In the extension we use strlen, snprintf and other c string functions but should we instead be using the new functions in \<dmsdk/dlib/dstrings.h\> or does it not make a difference?

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [October 9, 2019, 2:15pm UTC](https://forum.defold.com/t/extender-server-ios-13-osx-10-15-clang-9/63569/32 "2019-10-09T14:15:40Z")

</div>

> [@gameanalytics](#):
>
> \_crash.dmp.zip

I am missing the exe file and pdb file in this zip.  
I just added the “Generate debug symbols” button to the bundle dialog in the editor.  
This adds a “dmengine.pdb” to your “build.zip” which is located in your project folder.  
(A bit cumbersome, I know, and I’ll work on that)

 ![38](https://forum-defold-uploads.b-cdn.net/original/3X/9/0/90c41c26d87f3f902d360328e959941184c2afd9.png)

Also note that once you have those three files, you can double click on the .dmp file, then press F5 to debug the crash.

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [October 9, 2019, 2:18pm UTC](https://forum.defold.com/t/extender-server-ios-13-osx-10-15-clang-9/63569/33 "2019-10-09T14:18:31Z")

</div>

> [@gameanalytics](#):
>
> snprintf

`snprintf` behaves differently on different platforms. This is why we have our own.  
Be aware of return values, and if anything goes wrong, to be sure to handle that.  
The same goes for many c functions.

`strlen` should afaik work the same on all platforms.

---

<div class="post-metadata">

**Author:** ![gameanalytics](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/gameanalytics/32/6404_2.png) [@gameanalytics](https://forum.defold.com/u/gameanalytics)\
**Post date:** [October 9, 2019, 2:51pm UTC](https://forum.defold.com/t/extender-server-ios-13-osx-10-15-clang-9/63569/34 "2019-10-09T14:51:28Z")

</div>

Ok thanks. Good to know. I looks like there is some problems when use the c string functions on win32 builds but not win64. I will try to migrate to defold c string functions to see if it solves the problem.

---

<div class="post-metadata">

**Author:** ![gameanalytics](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/gameanalytics/32/6404_2.png) [@gameanalytics](https://forum.defold.com/u/gameanalytics)\
**Post date:** [October 9, 2019, 3:46pm UTC](https://forum.defold.com/t/extender-server-ios-13-osx-10-15-clang-9/63569/35 "2019-10-09T15:46:34Z")

</div>

Switching to use the defold string api seems to have worked. @Mathias_Westerdahl did you get any crash with the modified mac os lib I sent you? If not then I will release a new version of the GA SDK extension.

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [October 9, 2019, 3:55pm UTC](https://forum.defold.com/t/extender-server-ios-13-osx-10-15-clang-9/63569/36 "2019-10-09T15:55:24Z")

</div>

I’d say don’t wait for me, I’ve been busy chasing bugs today, and didn’t get to test your library (sorry)

---

<div class="post-metadata">

**Author:** ![snakky](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/snakky/32/9154_2.png) [@snakky](https://forum.defold.com/u/snakky)\
**Post date:** [October 10, 2019, 11:37am UTC](https://forum.defold.com/t/extender-server-ios-13-osx-10-15-clang-9/63569/37 "2019-10-10T11:37:48Z")

</div>

GameAnalitycs doesn’t build with the error on Windows in 162 Editor:  
/gameanalytics/src/GameAnalyticsDefold.cpp  
Line 14: ‘dmsdk/dlib/dstrings.h’ file not found  
#include \<dmsdk/dlib/dstrings.h\>  
^ ~~~~~~~~~~~~~~~~~~~~~~

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [October 10, 2019, 11:41am UTC](https://forum.defold.com/t/extender-server-ios-13-osx-10-15-clang-9/63569/38 "2019-10-10T11:41:07Z")

</div>

> [@snakky](#):
>
> #include \<dmsdk/dlib/dstrings.h\>

This was added in 1.2.163. If you’re using the latest GameAnalytics version I guess you also need to use the latest Defold version.

---

<div class="post-metadata">

**Author:** ![snakky](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/snakky/32/9154_2.png) [@snakky](https://forum.defold.com/u/snakky)\
**Post date:** [October 10, 2019, 11:55am UTC](https://forum.defold.com/t/extender-server-ios-13-osx-10-15-clang-9/63569/39 "2019-10-10T11:55:39Z")

</div>

Damn, can’t use 163 because of unicode issues.

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [October 10, 2019, 12:06pm UTC](https://forum.defold.com/t/extender-server-ios-13-osx-10-15-clang-9/63569/40 "2019-10-10T12:06:48Z")

</div>

Well, that’s why one uses release numbers, use the one you think works for you:  
[https://github.com/GameAnalytics/GA-SDK-DEFOLD/archive/2.2.8.zip](https://github.com/GameAnalytics/GA-SDK-DEFOLD/archive/2.2.8.zip)

E:g. `https://github.com/GameAnalytics/GA-SDK-DEFOLD/archive/2.2.8.zip`

[Previous page](https://forum.defold.com/t/extender-server-ios-13-osx-10-15-clang-9/63569.md?page=1)

[Next page](https://forum.defold.com/t/extender-server-ios-13-osx-10-15-clang-9/63569.md?page=3)
