Skip to content
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

Usage of compose-ios #137

Closed
alandoni opened this issue May 30, 2022 · 13 comments · Fixed by #140
Closed

Usage of compose-ios #137

alandoni opened this issue May 30, 2022 · 13 comments · Fixed by #140

Comments

@alandoni
Copy link

Hi, can you help me? where can I find documentation or tutorials for compose-ios?

I tried to run ./gradlew compose-ios:iosDeployIPhone8Debug

but it threw the following error:

Field 'dataPathSize' is required for type with serial name 'org.jetbrains.compose.experimental.uikit.internal.DeviceData', but it was missing

@joreilly
Copy link
Owner

joreilly commented May 30, 2022

Hi,

Compose for iOS is at very experimental stage right now I believe. There was some discussion in following if it helps but I'm not surprised there's still issues. Could perhaps be related to XCode version for example installed. I'd suggest perhaps asking in kotlinlang slack "compose-ios" channel .

#127

@joreilly
Copy link
Owner

@joreilly
Copy link
Owner

I'm actually seeing issues here with the JetBrains samples and also PeopleInSpace.....suspecting it might be related to XCode update I did here recently....though getting different error here I think

An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Unable to boot device because we cannot determine the runtime bundle.

@alandoni
Copy link
Author

I was trying to find more informations about compose for ios but I couldn't, I know it's experimental but I just want to try and understand it

sadly my macbook is old and I can't update it anymore, hope it work with the latest version of big sur :(

thank you, your project is helping me a lot in my studies and curiosity!

@TaehoonLeee
Copy link
Contributor

I faced the same issue. I solve this issue by updating xcode

@alandoni
Copy link
Author

alandoni commented Jun 7, 2022

I tried in another macbook, with a newer version of xcode, it only changed the error, but still unable to compile :(

the error is:

e: Module "org.jetbrains.compose.runtime:runtime-saveable (org.jetbrains.compose.runtime:runtime-saveable-uikitx64)" has a reference to symbol androidx.compose.runtime/remember|-2215966373931868872[0]. Neither the module itself nor its dependencies contain such declaration.

@TaehoonLeee
Copy link
Contributor

Would you like to change the Jetbrains compose version?

I'm not sure which version it is.

@alandoni
Copy link
Author

alandoni commented Jun 7, 2022

I'm using 1.2.0-alpha01-dev683, the same the project uses

kotlinVersion=1.6.21
sqlDelightVersion=1.5.3
koinVersion=3.2.0
ktorVersion=2.0.1
composeVersion=1.2.0-beta01
composePluginVersion=1.2.0-alpha01-dev683
coroutinesVersion=1.6.1

@TaehoonLeee
Copy link
Contributor

TaehoonLeee commented Jun 8, 2022

I'm sorry. I was mistaken because I used a different MacBook with Apple Sillicon.

I also had an error that looked like a version issue? on some MacBooks with Intel. I will share it when I solve it.

@TaehoonLeee
Copy link
Contributor

@alandoni I solve the issue by adding below code in gradle.properties

kotlin.native.cacheKind=none

@joreilly
Copy link
Owner

fyi that I also just opened following PR to update compose ios version and also to switch to different simulator (had issues with iphone 8 here for some reason after updating to latest XCode) #141

@joreilly
Copy link
Owner

btw also seems to be working here without kotlin.native.cacheKind=none (running on M1 laptop)

@alandoni
Copy link
Author

alandoni commented Jun 14, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants