fix: Using recommended resource_bundles in podspec to fix static linking #452
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed changes
Replaced
resource
with recommendedresource_bundles
in Frames.podspec.Types of changes
What types of changes does your code introduce to Frames Ios?
Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.Further comments
There's an issue when adding
Frames
to a project through CocoaPods with:linkage => :static
option that creates a compilation error due to a problem with duplicatedAssets.car
file. There are a few open tickets on this issue in cocoapods repository (for over 4 years) and the only recommended action that actually fixes the problem is to replace usage ofresource
withresource_bundles
.Ticket 1: CocoaPods/CocoaPods#8122
Ticket 2: CocoaPods/CocoaPods#8431
The second ticket is where we can see that many other repositories migrated to the usage of
resource_bundles
mentioning this issue. It is also the change suggested by the cocoapods team on the official site in the documentation:Sources:
As tested, this worked for both dynamic and static linkage options.