skiptools / skip

Skip transpiler for creating SwiftUI apps for iOS and Android

Home Page:https://skip.tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not able to build after skit init

naticio opened this issue · comments

I'm not able to build for some reason, checkup all good, init ok, I clean build folder and deleted derived data but same issue persist

image

How did you generate the project you're building? It looks like something is messed up in the build configuration.

I used this command
skip init --open-xcode --appid=myBundleID nameofmyproject Max

Well nothing wrong with that!

Did you by chance have an old project with the same name?

Please try:

$ brew update
$ brew upgrade skip

Then - assuming you haven't done any work in Max - delete the old Max project and re-run skip-init to get a new project.
Also please delete Xcode's Derived Data folder and restart Xcode before attempting to build the new project.

I am having a similar issue and have tried all of the fixes mentioned here but I am still unable to build the project. I can post error logs if you think it would help.

I am having a similar issue and have tried all of the fixes mentioned here but I am still unable to build the project. I can post error logs if you think it would help.

Yes please!

I hope posting an image is okay as copying each error code in Xcode is a pain.
Screenshot 2024-04-01 at 17 28 49

I should add:
M1 Macbook Air
macOS Version: 14.4
Xcode version: 15.3

Thanks! And can you please post the command you used to create the MyAndroidApp project? E.g. skip init ...

skip init --open-xcode --appid=com.example MyAndroidApp MyAndroidApp

Thanks again. The problem may be related to the project name and app name being the same. Can you please try deleting Xcode's DerivedData folder (or at least the MyAndroidApp folder within it) and then run the command with a different project name? Eg:

skip init --open-xcode --appid=com.example my-android-app MyAndroidApp

That worked for me.

It completely worked, thank you so much!

Have a nice day!!

Excellent! I've updated the documentation to make this restriction clear, and we'll enhance the tools to prevent this type of error in a future version.