Giter Club home page Giter Club logo

Comments (10)

nsagnett avatar nsagnett commented on August 16, 2024

Hi !

Can you try it without use_frameworks! instruction ? It can be the problem (CocoaPods/CocoaPods#7155)

Regards,

from atinternet-apple-sdk.

Claes34 avatar Claes34 commented on August 16, 2024

Hi !

Can you try it without use_frameworks! instruction ? It can be the problem (CocoaPods/CocoaPods#7155)

Regards,

Hi Nicolas,

Thank you for your reply :)

I don't think I can do that since I need it for other dependencies and it applies for every pod. I tried to set the use_framework! after declaring the ATInternet pod for each target, but the result was the same, as I expected. Also, the readme seems to indicates to set use_framework! too.

I think the solution would probably be to set a different module-name for this AppExtension pod so it doesn't get in conflict with the main one. (Both named "Tracker")
This solution was probably the one chosen previously with the pod "ATInternet-Apple-SDK-TrackerExtension" that had a different module-name "TrackerExtension" instead of "Tracker". Though, this "ATInternet-Apple-SDK-TrackerExtension" seems to be deprecated since it's still in version 2.13.0 (!= 2.19.0). The fact that the readme says that we "could need to use another pod" seems to indicate that this was the solution that could make me avoid conflicts.
Also, the documentation on the ATInternet website also quotes this pod in the integration tutorial (Link to the pod)

Do you have any information about why this has been deprecated ?

Thanks in advance,

from atinternet-apple-sdk.

nsagnett avatar nsagnett commented on August 16, 2024

Before 2.13.0 version, we provide different pods for Tracker and Extension.
Since, we provide only one pod with multiples sub-targets to facilitate deployments and maintainability.

After some local tests, i can reproduce even if I provide 2 pod instead of 1
It seems to be Cocoapods issue again (CocoaPods/CocoaPods#8206)

Regards,

from atinternet-apple-sdk.

Claes34 avatar Claes34 commented on August 16, 2024

I will investigate on the different workarounds in this thread. Thanks a lot for your help !
I'll link the solution and close the issue here as soon as I find one (let's hope I do ;))

Regards,

from atinternet-apple-sdk.

Claes34 avatar Claes34 commented on August 16, 2024

Hi,

Unfortunately, none of the provided solutions in the thread seemed to work for my case.

Therefore, may I propose a solution that won't induce a lot of work from your team. I have made a fork of your project to test the solution, in this fork I created a secondary podspec only for the AppExtension submodule, making it the main module. This way I was able to access a separate pod named "ATInternet-Apple-SDK-AppExtension" using a different modulename : "TrackerExtension". This solved my problem as there were no more name conflicts between two frameworks during the archiving process. I just had to import the right tracker using an environment variable in files shared between my app and the extension using the Tracker.

I was also wondering if I could use the extension submodule only if I don't use the debugger and other methods inaccessible to app extensions. Though this would be a dirty solution too.

This is a workaround to a Cocoapods or Xcode issue, but since the issue hasn't been solved in years now, it might be coming handy for you customers with the same needs as we had.

For my needs I could just put this new podspec in a private repository, updating it from time to time to match yours when a new version comes out, but I can also make a merge request of this file with an update of the readme including these informations if you want.

Regards,

from atinternet-apple-sdk.

nsagnett avatar nsagnett commented on August 16, 2024

Hi,

I pushed a new branch which embed fix for your problem : https://github.com/at-internet/atinternet-apple-sdk/tree/fix/cocoapods_extension
Can you try it ? If it solve the issue, it will be reintegrate for the next release

Regards,

from atinternet-apple-sdk.

github-actions avatar github-actions commented on August 16, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

from atinternet-apple-sdk.

Claes34 avatar Claes34 commented on August 16, 2024

Hi,

I pushed a new branch which embed fix for your problem : https://github.com/at-internet/atinternet-apple-sdk/tree/fix/cocoapods_extension
Can you try it ? If it solve the issue, it will be reintegrate for the next release

Regards,

I was pretty sure I replied but I can’t see my reply anymore for some reason ^^
I have been using your fix for a month now and It works fine. In order for this issue to survive until merging for the next release, I am adding a comment now :)

from atinternet-apple-sdk.

nsagnett avatar nsagnett commented on August 16, 2024

Hello,

The new version is available and a new pod has been deployed : ATInternet-Apple-SDK-AppExtension

Regards,

from atinternet-apple-sdk.

github-actions avatar github-actions commented on August 16, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

from atinternet-apple-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.