analytics_flutter icon indicating copy to clipboard operation
analytics_flutter copied to clipboard

No podspec

Open devmobile-vulog opened this issue 1 year ago • 8 comments

Hi,

We are facing an issue when trying to implement IDFA plugin : [!] No podspec found for 'segment_analytics_plugin_idfa' in '.symlinks/plugins/segment_analytics_plugin_idfa/ios'

Maybe there is a mistake on the configuration of the podspec on your side ?

Thank you for investigating.

devmobile-vulog avatar Feb 23 '24 14:02 devmobile-vulog

Hi @devmobile-vulog thank you for your report. We start looking into this.

edsonjab avatar Feb 23 '24 16:02 edsonjab

Hi @edsonjab,

Any news to share about this issue and your investigations ?

Thank you !

devmobile-vulog avatar Mar 11 '24 09:03 devmobile-vulog

hi @devmobile-vulog sorry to answer late: You can use this configuration on you pubspec.yaml, it should download the pod from your repo: image

And you can call like this on your code: image

edsonjab avatar Mar 12 '24 17:03 edsonjab

Hi @edsonjab It works fine, thank you. However, now i am not able to apply the IDFA Plugin to the analytics client instance. When trying to call addPlugin(PluginIdfa()) method, i am faced to this error : The argument type 'PluginIdfa' can't be assigned to the parameter type 'Plugin'

Maybe i am missing something about the configuration. The documentation says : Follow the instructions for adding plugins on the main Analytics client but the url is not working anymore.

Could you please provide the right url or tell me what i am missing please ?

Thank you !

devmobile-vulog avatar Mar 26 '24 18:03 devmobile-vulog

Hi @devmobile-vulog this the new URL with the instructions to add plugins.

edsonjab avatar Mar 26 '24 18:03 edsonjab

Hi @edsonjab ,

Thank you for providing the right url. Everything seems to be good on configurations side. However, there is still an error when trying to add the plugin: it seems that there is a conflict on imports into the package, and an alias is missing for the 'plugin.dart' import into 'analytics.dart' class (I think there is a name conflit with another Plugin class) causing the following error : The argument type 'PluginIdfa' can't be assigned to the parameter type 'Plugin'

Thank you !

devmobile-vulog avatar Mar 28 '24 13:03 devmobile-vulog

Hi @devmobile-vulog you need to add your dependencies like this: image If you trying using the code of the repo need to add a cast on the line to works for the differences between imports like this: image

edsonjab avatar Apr 23 '24 17:04 edsonjab

We are also facing the same issue.

No podspec found for segment_analytics_plugin_idfa in .symlinks/plugins/segment_analytics_plugin_idfa/ios

In pubspec.yaml file we have added this

segment_analytics: ^1.0.2 segment_analytics_plugin_idfa: ^1.0.0

sherrychhabra51 avatar May 08 '24 12:05 sherrychhabra51

Updating the podspec name to segment_analytics_plugin_idfa fixes this issue.

deepakg202 avatar Jun 15 '24 06:06 deepakg202