adjust / cordova_sdk

This is the Cordova SDK of
http://www.adjust.com
Other
37 stars 43 forks source link

Build error on mac M1 with the simulator #160

Closed jfougere closed 2 years ago

jfougere commented 2 years ago

Using version 4.29.1 of this cordova plugin, we are getting the below error when trying to run on the simulator on an M1 mac:

ld: in Ubigi/Plugins/com.adjust.sdk/AdjustSdk.framework/AdjustSdk(ADJPackageParams.o), building for iOS Simulator, but linking in object file (Ubigi/Plugins/com.adjust.sdk/AdjustSdk.framework/AdjustSdk(ADJPackageParams.o)) built for iOS, file 'Ubigi/Plugins/com.adjust.sdk/AdjustSdk.framework/AdjustSdk' for architecture arm64
Aditi3 commented 2 years ago

Hi @jfougere, We’re currently investigating this issue at our end and working on finding a meaningful solution.

In the meantime, as a temporary workaround, could you exclude arm64 for the simulator architecture both from your project and the Pod project to resolve the error.

Aditi3 commented 2 years ago

Fixed as of v4.30.0.

Aditi3 commented 2 years ago

If needed and still an issue with the latest SDK version, feel free to comment/reopen.