Comments (2)
I investigated more and found that the following build phase, PhaseScriptExecution [CP]\ Copy\ Pods\ Resources
is not executed when the CI pipeline runs the xcodebuild
command provided. This probably explains why the resources are not available at runtime. I think this phase was run automatically with the same build instructions before updating to Kotlin 2.0.0 and Compose Multiplatform 1.6.11. iOS build phases are not my strength, but I will keep digging and see if I can provide a workaround.
from compose-multiplatform.
I resolved the issue after referencing this comment in #4720 and updating the steps to reproduce to include the following.
- In Github Action job 1:
./gradlew shared:assemble
- In Github Action job 2:
mkdir -p ./shared/build/compose/cocoapods/compose-resources
./gradlew generateDummyFramework
./gradlew podInstall
xcodebuild -workspace iosApp/iosApp.xcworkspace -scheme iosApp -configuration Debug -xcconfig iosApp/Configuration/Config.xcconfig OBJROOT=iosApp/build/ios SYMROOT=iosApp/build/ios -sdk iphonesimulator
- Install and run tests
Adding the mkdir
and generateDummyFramework
ensures that the resources are copied over as expected. I was a little surprised that this workaround ended up being the solution. I thought I had set up GitHub Action directory caching for ./shared/build
, so would expect that any compose-resources needed would have been created when ./gradlew shared:assemble
was run in the previous job and then copied over to the iOS app build job. Perhaps, I missed something though 🤷🏼
Thank you for posting the workaround! 🙏🏼
from compose-multiplatform.
Related Issues (20)
- On iOS platforms, Compose gestures(scroll or drag) conflict with native gestures. HOT 2
- [Navigation] commonrize `NavDeepLinkDslBuilder` HOT 1
- Detekt tasks are being registered when using the 1.7.0 dev gradle plugin HOT 1
- Clicking TextField should consume pointer press event HOT 1
- Adding a new resource dir to sourceSets.commonMain is not affecting Res.drawable HOT 4
- iOS App crashes on launch with MissingResourceException with Compose UI HOT 1
- iOS App crashes on launch with MissingResourceException HOT 1
- Keyboard not opening in iOS When using ExposedDropdownMenu HOT 1
- ImageViewer/Desktop - Build error due to a code not updated after some refactoring
- Enahancement: Background Image Modifier with Alignment and Repeat Options HOT 1
- How to complete the check for updates and automatic updates HOT 1
- The release package failed on Android HOT 2
- Overriding string resources causes crashes or inelligible strings
- Plural string not working properly
- Is there any consideration for supporting the HarmonyOS? Or adding some public interfaces to adapt to other systems?
- LazyVerticalStaggeredGrid rearranges items when scrolling up
- [iOS] voice dictation text does not register with text fields using TextFieldValue
- [Compose Web]: TypeError: content is not a function
- Support for "Plus Darker" and "Plus Lighter" blend modes HOT 1
- Update Lifecycle Runtime Compose to 2.8.2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compose-multiplatform.