Giter VIP home page Giter VIP logo

Comments (2)

aaalaniz avatar aaalaniz commented on June 29, 2024

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.

aaalaniz avatar aaalaniz commented on June 29, 2024

I resolved the issue after referencing this comment in #4720 and updating the steps to reproduce to include the following.

  1. In Github Action job 1: ./gradlew shared:assemble
  2. In Github Action job 2:
mkdir -p ./shared/build/compose/cocoapods/compose-resources
./gradlew generateDummyFramework
./gradlew podInstall
  1. xcodebuild -workspace iosApp/iosApp.xcworkspace -scheme iosApp -configuration Debug -xcconfig iosApp/Configuration/Config.xcconfig OBJROOT=iosApp/build/ios SYMROOT=iosApp/build/ios -sdk iphonesimulator
  2. 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.