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

Example project doesn't compile for iOS #56

Open
SebastianAigner opened this issue Aug 7, 2024 · 1 comment
Open

Example project doesn't compile for iOS #56

SebastianAigner opened this issue Aug 7, 2024 · 1 comment

Comments

@SebastianAigner
Copy link
Contributor

Hi! Just tried to compile the official sample project for iOS, unfortunately without success. Ran into the following:

/Users/Sebastian.Aigner/Desktop/github/repro/compose-cupertino/cupertino-native/src/iosMain/kotlin/io/github/alexzhirkevich/cupertino/CupertinoDatePickerNative.ios.kt:63:15: error: Cannot access 'var isManual: Boolean': it is internal in 'io/github/alexzhirkevich/cupertino/CupertinoDatePickerState'.
/Users/Sebastian.Aigner/Desktop/github/repro/compose-cupertino/cupertino-native/src/iosMain/kotlin/io/github/alexzhirkevich/cupertino/CupertinoDateTimePickerNative.ios.kt:37:15: error: Cannot access 'var isManual: Boolean': it is internal in 'io/github/alexzhirkevich/cupertino/CupertinoDateTimePickerState'.
/Users/Sebastian.Aigner/Desktop/github/repro/compose-cupertino/cupertino-native/src/iosMain/kotlin/io/github/alexzhirkevich/cupertino/CupertinoTimePickerNative.ios.kt:44:15: error: Cannot access 'var isManual: Boolean': it is internal in 'io/github/alexzhirkevich/cupertino/CupertinoTimePickerState'.
/Users/Sebastian.Aigner/Desktop/github/repro/compose-cupertino/cupertino-native/src/iosMain/kotlin/io/github/alexzhirkevich/cupertino/CupertinoTimePickerNative.ios.kt:64:19: error: Cannot access 'var mHour: Int': it is internal in 'io/github/alexzhirkevich/cupertino/CupertinoTimePickerState'.
/Users/Sebastian.Aigner/Desktop/github/repro/compose-cupertino/cupertino-native/src/iosMain/kotlin/io/github/alexzhirkevich/cupertino/CupertinoTimePickerNative.ios.kt:65:19: error: Cannot access 'var mMinute: Int': it is internal in 'io/github/alexzhirkevich/cupertino/CupertinoTimePickerState'.
error: Compilation finished with errors

Commenting out the the offending lines yields the following error in PresentationController.ios.kt:

"Objective-C method parameter is not supported here: doesn't correspond to any C type"

Cheers!

@SebastianAigner SebastianAigner changed the title Example project doesn't compile Example project doesn't compile for iOS Aug 7, 2024
@alexzhirkevich
Copy link
Owner

Thanks, those issues left from Kotlin 2.0 upgrade. Fixed

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

No branches or pull requests

2 participants