Skip to content
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

SPM integration of version 6.11.1 fails #240

Open
JoeSzymanskiFAN opened this issue May 25, 2023 · 14 comments
Open

SPM integration of version 6.11.1 fails #240

JoeSzymanskiFAN opened this issue May 25, 2023 · 14 comments

Comments

@JoeSzymanskiFAN
Copy link

Report

SDK Version

4.11.1

What did you do?

Integration via Swift Package Manager and attempting to open the project.

What did you expect to happen?

The AppsFlyer package should correctly be downloaded and integrated via SPM.

What happened instead?

The SPM integration fails with the error

Downloaded archive of binary target 'AppsFlyerLib-Strict' does not contain expected binary artifact named 'AppsFlyerLib-Strict'downloaded archive of binary target 'AppsFlyerLib-Dynamic' does not contain expected binary artifact named 'AppsFlyerLib-Dynamic'2023-05-24 21:51:06.885 xcodebuild[57279:131783] Writing error result bundle to /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/ResultBundle_2023-24-05_21-51-0006.xcresult
fatalErrorxcodebuild: error: Could not resolve package dependencies:
  downloaded archive of binary target 'AppsFlyerLib-Strict' does not contain expected binary artifact named 'AppsFlyerLib-Strict'
  downloaded archive of binary target 'AppsFlyerLib-Dynamic' does not contain expected binary artifact named 'AppsFlyerLib-Dynamic'
  fatalError
[21:51:08]: Exit status: 74

Please provide any other relevant information.

Version 6.11.0 works as expected.

@andr-ggn
Copy link
Contributor

andr-ggn commented May 25, 2023

Update Xcode to the latest version and clean SPM cache

@JoeSzymanskiFAN
Copy link
Author

We currently cannot make use of Xcode 14.3 because of other build issues. Is Xcode 14.3 a requirement for version 6.11.1?

@andr-ggn
Copy link
Contributor

We see some integration issues on older Xcode versions due to SPM bug there. Did you try to clean SPM cache?

@JoeSzymanskiFAN
Copy link
Author

I just tested. With Xcode 14.2, I always get failures, even after clearing the SPM cache. With Xcode 14.3, it works as expected.

It looks like there is an implicit requirement for using Xcode 14.3 with the changes that were made in v6.11.1.

@andr-ggn
Copy link
Contributor

https://github.com/AppsFlyerSDK/AppsFlyerFramework/blob/master/Package.swift
I think Xcode 14.2 can't handle multiple targets inside Package.swift

@JoeSzymanskiFAN
Copy link
Author

That is likely the issue. Perhaps there should be some documentation about the Xcode version requirements, since a hot fix release wasn't expected to include a breaking change like this.

@joshuapoq
Copy link

I'm running Xcode 14.3 and I can't get this to work. It seems like 6.11.1 has just broken everything? Can this be reverted or fixed in a subsequent hotfix?

There is no XCFramework found at '/Users/.../Library/Developer/Xcode/DerivedData/.../SourcePackages/checkouts/AppsFlyerFramework/AppsFlyerLib.xcframework'.

@andr-ggn
Copy link
Contributor

@joshuapoq
Try to reset SPM caches and clear DerivedData

@julestburt
Copy link

@joshuapoq
Try to reset SPM caches and clear DerivedData

Nope nothing worked...derived data, clean, reset package etc...restart Xcode, Mac...nope. But going back to 6.10.0 worked!

@joshuapoq
Copy link

Glad that wasn't just me. Something must be wrong with our machines as CI and another developer can run the code fine so I just put this on pause for another day.

@prokhorovxo
Copy link

prokhorovxo commented Jul 5, 2023

Same here. I'm using Xcode 12.4 and trying to install AppsFlyer 6.12.0.

@bddq
Copy link

bddq commented Jul 6, 2023

Same here. I'm using Xcode 14.2 and trying to install AppsFlyer 6.12.0.

1 similar comment
@sshabelnik
Copy link

Same here. I'm using Xcode 14.2 and trying to install AppsFlyer 6.12.0.

@af-obodovskyi
Copy link
Contributor

@bddq @julestburt @joshuapoq @prokhorovxo @JoeSzymanskiFAN
We have managed to fix the following issue and keep distributing AppsFlyerLib Static, Dynamic and Strict via SPM. In addition, from now on, the integration will take much less time and SPM will checkout in seconds. Please, use following URLs for SPM according to the AppsFlyerLib binary version, that you need:

The main repository package was updated as well and it will distribute Static framework v6.12.0 from the latest master branch version.

This was referenced Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants