You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use a correct file to configure the cocoapods resources integration
instead of a relative path.
Fixes https://youtrack.jetbrains.com/issue/CMP-4303
## Release Notes
### Fixes - Resources
- _(prerelease fix)_ Fix cocoapods resources integration which leaded to
a lack resources in ios apps
val syncDir = podFramework.getFinalResourcesDir().get().asFile.relativeTo(projectDir)
90
-
val specAttr ="['${syncDir.path}']"
89
+
val syncDir = podFramework.getFinalResourcesDir().get().asFile
90
+
val specAttr ="['${syncDir.relativeTo(projectDir).path}']"
91
91
val specAttributes = extraSpecAttributes
92
92
val buildFile = project.buildFile
93
93
val projectPath = project.path
@@ -97,7 +97,7 @@ internal fun Project.configureSyncIosComposeResources(
97
97
if (specAttributes["resources"] != specAttr) error(
98
98
"""
99
99
|Kotlin.cocoapods.extraSpecAttributes["resources"] is not compatible with Compose Multiplatform's resources management for iOS.
100
-
| * Recommended action: remove extraSpecAttributes["resources"] from '$buildFile' and run '$projectPath:podInstall' once;
100
+
| * Recommended action: remove extraSpecAttributes["resources"] from '$buildFile' and run '$projectPath:podspec' once;
101
101
| * Alternative action: turn off Compose Multiplatform's resources management for iOS by adding '${ComposeProperties.SYNC_RESOURCES_PROPERTY}=false' to your gradle.properties;
0 commit comments