-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
iOS: Include resources without needing to run pod install
#3113
Labels
enhancement
New feature or request
Comments
It has been suggested in slack to run pod install on the iOS app project: https://kotlinlang.slack.com/archives/C0346LWVBJ4/p1682449910246879 |
Ok, running |
m-sasha
added
enhancement
New feature or request
and removed
bug
Something isn't working
submitted
labels
May 3, 2023
m-sasha
changed the title
New resource in template is causing MissingResourceException: Missing resource with path
iOS: Include resources without needing to run May 3, 2023
pod install
You can follow this Issue: #3073 |
AlexeyTsvetkov
added a commit
that referenced
this issue
Jul 11, 2023
Introduces new a new task 'sync<FRAMEWORK_CLASSIFIER>ComposeIosResources', which collects resources from all source sets, included in iOS targets. With this change: * CocoaPods integration does not require any configuration or calling 'pod install' after changing resources. * Important: existing projects need to remove 'extraSpecAttributes["resources"] = ...' from build scripts, and rerun `./gradlew podInstall` once! * Without CocoaPods, the resource directory should be added to XCode build phases once. Resolves #3073 Resolves #3113 Resolves #3066
AlexeyTsvetkov
added a commit
that referenced
this issue
Jul 18, 2023
* Simplify resource management for iOS Introduces new a new task 'sync<FRAMEWORK_CLASSIFIER>ComposeIosResources', which collects resources from all source sets, included in iOS targets. With this change: * CocoaPods integration does not require any configuration or calling 'pod install' after changing resources. * Important: existing projects need to remove 'extraSpecAttributes["resources"] = ...' from build scripts, and rerun `./gradlew podInstall` once! * Without CocoaPods, the resource directory should be added to XCode build phases once. Resolves #3073 Resolves #3113 Resolves #3066
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Using a compose-multiplatform-ios-android-template, try to add a new resource and use it in Composable function in shared module. It successfully works for Android but crashes for iOS.
Affected platforms
Versions
To Reproduce
The resource I'm using:
I cloned a fresh template and added this commit to demonstrate the issue.
Stacktrace:
Expected behavior
Resource should be displayed.
Additional context
So weird, this should be a basic thing...
The text was updated successfully, but these errors were encountered: