-
Notifications
You must be signed in to change notification settings - Fork 284
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
XCFramework and apple silicon support #603
Comments
Hi @mstfy We will start to ship our SDK releases as xcframeworks as well pretty soon. It's actually task we are currently working on internally and should be completed soon. Will keep you posted. |
Oh that's great to hear. Will you support m1 simulator too? |
Yep, there's gonna be support for M1 as well. |
@uerceg Any expected dates for same? Some kind of approx ETA? |
@uerceg will this include BUILD_LIBRARY_FOR_DISTRIBUTION? we are currently blocked on upgrading our toolchain while waiting for your SDK to enable this. |
Hi Team, @uerceg However, when I am trying to use the same, I am getting below kind of error. Can you please help? Thanks |
Hello @shaurya-ObjC. Could you please share your podA podspec details? Regards. |
@genadyb This is how something it look like.
|
@shaurya-ObjC |
@genadyb From Cocoapods Versioning https://guides.cocoapods.org/using/the-podfile.html
|
@genadyb If I am not wrong, this issue will come for pods, where we are exposing Adjust object i.e public/open using PodA and if we are not exposing objects then this issue may not come at all. |
Hey @shaurya-ObjC, Can you maybe try the workaround suggested in related issue opened in Swift repo. Referring specifically to this paragraph from
and let us know if that maybe helped with error you're facing? |
@shaurya-ObjC Thanks for the feedback. 👍 App you are trying to add your generated xcframework - is it Swift app? If it's a Swift app (seems so from the screenshot), would it be possible just to create an example project in Obj-C and to let us know if usage of xcframework there is showing the same error or not? |
Thank you for additional details. I think that reason for this issue is exactly what is being described in above mentioned issue. tl;dr of the issue is pretty much the fact that our pod is named exactly the same as our main class ( I see 3 potential solutions to this issue:
We have discussed internally about this issue and indeed, even though pretty convoluted, we think that the use case of yours makes sense. So beyond doubt, the cleanest solution would be to proceed with solution 1. However, that means that we need to introduce the breaking changes for all the existing users and this is something we will not do (for now) just because of this use case. We are working on next iOS SDK major update (v5) which we are aiming to complete by EOY and already among everything that new major version will contain, we have also added this change where Solution 2 is far from clean and nice and something we are also not willing to proceed with because we would effectively need to create new pod in CocoaPods repository solely for this purpose. And purpose of it will be defeated once next major SDK release is published. Scenario 3 is something which you might consider as a temporary solution if this is road acceptable for you to take. I would expect that if you remove dependency to Adjust pod, but (I know it's not the nicest, but it is a solution) instead you simply add our SDK to your library as source code, that this problem should not be happening. That might be one approach. Another approach would be for you to effectively perform solution 2 on your own and ship our SDK as your own pod which would not be named To me personally considering adding Adjust SDK dependency directly from source files to your library sounds like best way to go, but like said - I am not sure what are your other business requirements / constrains and whether this is something you are able to consider or not. |
Hello @uerceg . Since you've added xcframework support do you plan to include xcframework artifacts to releases? |
Hey @mstfy, As of next release. :) |
Hello. We import Adjust manually as framework to our project. We do this because we don't want to rebuild it everytime for clean build. As you know it's been over 1 year since apple silicon macs come out. It would be super helpful to add xcframework artifact with m1 simulator support in it to your release artifacts.
The text was updated successfully, but these errors were encountered: