GameAnalytics / GA-SDK-DEFOLD

Repository for GameAnalytics Defold SDK
MIT License
14 stars 7 forks source link

`arm64-osx` support #40

Open AGulev opened 1 year ago

AGulev commented 1 year ago

Could you please add support for arm64-osx for the extension? For that lib/osx folder should contain universal binaries for all needed archs, or it should be two separate folders arm64-osx and x86_64-osx with corresponding static libs

oivoodoo commented 1 year ago

Currently when I try to use gameanalytics library on m1. it's producing the error for libcurl:

Undefined symbols for architecture arm64:
  "_curl_easy_cleanup", referenced from:
      gameanalytics::http::GAHTTPApi::requestInitReturningDict(gameanalytics::http::EGAHTTPApiResponse&, rapidjson::GenericDocument<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>, rapidjson::CrtAllocator>&, char const*) in libGameAnalytics.a(GAHTTPApi.o)
      gameanalytics::http::GAHTTPApi::sendEventsInArray(gameanalytics::http::EGAHTTPApiResponse&, rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> >&, rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> > const&) in libGameAnalytics.a(GAHTTPApi.o)
      std::__1::__async_assoc_state<void, std::__1::__async_func<gameanalytics::http::GAHTTPApi::sendSdkErrorEvent(gameanalytics::http::EGASdkErrorCategory, gameanalytics::http::EGASdkErrorArea, gameanalytics::http::EGASdkErrorAction, gameanalytics::http::EGASdkErrorParameter, char const*, char const*, char const*)::$_0> >::__execute() in libGameAnalytics.a(GAHTTPApi.o)
Qwarr commented 1 year ago

Any news on this? Can't build Macos Arm64 with GA enabled.

2023-10-07 20_07_44-GameAnalytics - Defold 1 6 0

subsoap commented 1 year ago

@the1schwartz Can you comment on this? We'll have to quit GA is this support isn't planned.

AGulev commented 10 months ago

@the1schwartz could you pls add lib for arm64-macos?

FelipeSuarezPlazas commented 10 months ago

@the1schwartz Please add support for GA arm64 for Mac M1 developers :C, I would really appreciate it. Otherwise I would be forced to change to Unity because the publisher I am working with requires the use of GA for testing.

FelipeSuarezPlazas commented 10 months ago

Hello everyone I have kind of good news on the GameAnalitics arm64-macos issue :D

If you try to use the https://github.com/GameAnalytics/GA-SDK-DEFOLD/archive/4.2.6.zip dependency (or any other version of it) you will get the same error as @Qwarr (https://github.com/GameAnalytics/GA-SDK-DEFOLD/issues/40#issuecomment-1751905641) for MacBooks M1s when running (Project->Build).

The same will happen if you try to export a Debug variant with Contentless bundle active, it won't work.

But if you export with the Contentless option disabled, IT WILL WORK! (I only tried on Android, but technically should work also on iOS)

I already tried it and the events arrive at my GameAnalitics app perfectly. Obviously it is a little bit uncomfortable to have to delete the dependency, then run Fetch Libraries and keep coding/command + B without trouble, and when you want to test the GameAnalitics then having to add again the dependency, run Fetch Libraries and exporting to your phone without the capability of seeing the console because you don't have the contentless option active... but it works.

if gameanalytics then
        gameanalytics.addDesignEvent({
            eventId = "It works only when exporting without the contentless option active.",
            value = ';D'
        })
end
totebo commented 6 months ago

This issue is partly fixed in this fork: https://github.com/AGulev/GA-SDK-DEFOLD

More details here: https://forum.defold.com/t/defold-integration-for-gameanalytics-def-3024/10417/50

A full fix is still needed.