skiptools / skip

Skip transpiler for creating SwiftUI apps for iOS and Android
https://skip.tools
GNU Lesser General Public License v3.0
1.49k stars 40 forks source link

Not able to build after skit init #91

Closed naticio closed 6 months ago

naticio commented 7 months ago

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

aabewhite commented 7 months ago

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

naticio commented 7 months ago

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

aabewhite commented 7 months ago

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.

santaman217 commented 6 months ago

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.

aabewhite commented 6 months ago

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!

santaman217 commented 6 months ago

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

aabewhite commented 6 months ago

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

santaman217 commented 6 months ago

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

aabewhite commented 6 months ago

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.

santaman217 commented 6 months ago

It completely worked, thank you so much!

Have a nice day!!

aabewhite commented 6 months ago

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.