Hello
I’m stuck with this error below in ch1.
I did every solution in other website, but still getting errors.
Do I miss something?
Hello
I’m stuck with this error below in ch1.
I did every solution in other website, but still getting errors.
Do I miss something?
That is usually caused by not building in Intellij.
No. Either one works. Just make sure you build there before going into xcode
I did build on emulator in android studio first, though.
So I got bunch of files on build folder.
Do I need anything more?
I’m still learning Android studio and Kotlin, so if I miss something, please let me know.
That should work. I would next check to make sure Xcode has a reference to the “shared” library. Do a search in Xcode
It seems to have shared library on pods.
The search result is like this.
A couple of comments:
I downloaded the latest version of Android Studio (Chipmunk) and tested it on the final project. Everything went well.
I would do this and if it works, it means you probably missed something in building your app.
Compare the two projects and see what is different.
Hi @kevindmoore
In the chapter Introduction in section 1.3 you stated:
Open Xcode. From the File menu, choose Open and navigate to your project and into the iosApp folder. Select the workspace file (iosApp.xcworkspace). For the project to run without errors, you’ll need to build in Xcode. Select Product ▸ Build or press Command-B . Once the project is built, open ContentView.swift .
Is this step no longer required as you now state the app shouldn’t need to run in Xcode ? I’m encountering the same issue myself and would like to understand how to navigate through is issue to get the project to build in both android studio dolphin 2021.3.1 and Xcode 14.
Running from Xcode is no longer required. I just downloaded AS Dolphin, created a new project and ran both Android and iOS without any problems. (I have XCode 14)
Hi @kevindmoore
Thank you for the reply, I’m attempting to run the iOS build from Android studio and still am encountering the error from Xcode.
error: cannot find ‘Greeting’ in scope
let greet = Greeting().greeting()
I don’t know how much work you have done yet, but try to create a new project and see if works.
My issue was a didn’t have a JDK installed. I used whichjdk.com to figure out I needed to download and install Adoptium Eclipse Temurin 17. After that, the build script phase of the Xcode Project went off without a hitch.
As a fellow iOS developer, I certainly feel a lot more comfortable poking around Xcode than Android Studio + Gradle. The Kotlin Multiplatform Mobile tutorials on Kotlin’s website showcase running KMM from Android Studio.