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

[Resolved] Xcode build error after upgrading to 1.1.0: Unexpected duplicate tasks #87

Open
hannesoid opened this issue Sep 12, 2022 · 2 comments

Comments

@hannesoid
Copy link
Contributor

This issue is not an issue to be solved, but for documentation purposes to help users of the framework when upgrading

If you have previously used AppReceiptValidator in Xcode frameworks and App Targets, you may now experience a
build error similar:

Unexpected duplicate tasks

This is due to: #86 (release https://github.com/IdeasOnCanvas/AppReceiptValidator/releases/tag/1.1.0)

If you are expecting and embedding it as a dynamic framework,

  • replace all AppReceiptValidator mentions in your pbxproj project files with AppReceiptValidatorDynamic
  • or alternatively try removing the embedding of the AppReceiptValidator from your app target(s) (linking being enough) and see if it works
@lukaskubanek
Copy link
Contributor

Thanks for sharing this heads up on the issue with the recent change in handling the package type. I run into it after upgrading to version 1.1.0. Since I use the package from the main app as well as an internal framework, I wanted to keep using the dynamic target. For reference, these were the changes I had to make:

  • Change the linked product in both the main app and the internal framework from AppReceiptValidator to AppReceiptValidatorDynamic
  • Change the embedded product in the main app from AppReceiptValidator to AppReceiptValidatorDynamic

Now everything seems to be working just fine. Thanks for maintaining this library!

@hannesoid
Copy link
Contributor Author

Thanks for the feedback, this aligns with how we handled it too.

@hannesoid hannesoid changed the title Xcode build error after upgrading to 1.1.0: Unexpected duplicate tasks [Resolved] Xcode build error after upgrading to 1.1.0: Unexpected duplicate tasks Feb 23, 2024
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

2 participants