Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arm64-osx support #40

Open
AGulev opened this issue Jul 12, 2023 · 7 comments
Open

arm64-osx support #40

AGulev opened this issue Jul 12, 2023 · 7 comments

Comments

@AGulev
Copy link

AGulev commented Jul 12, 2023

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
Copy link

oivoodoo commented Sep 1, 2023

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
Copy link

Qwarr commented Oct 8, 2023

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

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

@subsoap
Copy link
Contributor

subsoap commented Oct 8, 2023

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

@AGulev
Copy link
Author

AGulev commented Jan 12, 2024

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

@FelipeSuarezPlazas
Copy link

FelipeSuarezPlazas commented Jan 16, 2024

@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
Copy link

FelipeSuarezPlazas commented Jan 18, 2024

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 (#40 (comment)) 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
Copy link

totebo commented Apr 23, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants