amplitude / unity-plugin

Official Amplitude Unity Plugin
https://developers.amplitude.com/docs/unity
MIT License
44 stars 34 forks source link

Method `setServerZone` is not fully implemented for iOS #127

Open laocooler opened 10 months ago

laocooler commented 10 months ago

Expected Behavior

The iOS build via Xcode is successful

Current Behavior

Build fails with

Assets/Plugins/iOS/Amplitude/AmplitudeCWrapper.m:199:60: error: no visible @interface for 'Amplitude' declares the selector 'setServerZone:updateServerUrl:'
    [[Amplitude instanceWithName:ToNSString(instanceName)] setServerZone:ampServerZone updateServerUrl:updateServerUrl];

Possible Solution

Either extend Amplitude.h and Amplitude.m with neccessary methods or could it be that the AMPServerZone.h and .m files are missing?

Steps to Reproduce

  1. Try to build a Unity app for iOS

Environment

qingzhuozhen commented 10 months ago

Hi @laocooler , do you have the dependency manager with your build? And can you see the iOS SDK in your packages?