roberthein / TinyConstraints

Nothing but sugar.
MIT License
3.98k stars 202 forks source link

add a 'dynamic library' product to swift package #99

Closed alephao closed 7 months ago

alephao commented 3 years ago

Hello!

I have a project with mulitple frameworks and many of the frameworks use TinyConstraints via Carthage. When trying to migrate to SPM, I bumped into an issue where it always embeds the library in every module, resulting in issues when trying to archive the app and sending to the App Store.

ERROR ITMS-90685: "CFBundleIdentifier Collision. There is more than one bundle with the CFBundleIdentifier value 'TinyConstraints' under the iOS application '<MyApp>.app'."
ERROR ITMS-90205: "Invalid Bundle. The bundle at '<MyApp>.app/Frameworks/<MyFramework>.framework' contains disallowed nested bundles."
ERROR ITMS-90206: "Invalid Bundle. The bundle at '<MyApp>.app/Frameworks/<MyFramework>.framework' contains disallowed file 'Frameworks'."

To solve that I added another product that forces the library to be dynamic. With a dynamic library I have the option to not embed the library in my modules, only in the app target, which solves my problem.

roberthein commented 3 years ago

I will have a look at this asap @alephao, probably Sunday. Thank you!

paulocoutinhox commented 9 months ago

merge merge merge +1

alephao commented 7 months ago

Hi @paulocoutinhox, this repo seems abandoned so you are probably better off maintain your own fork, I'll close this issue to clean up my PR list