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

skip checkup passes, but I'm unable to compile HelloSkip

ssxray opened this issue · comments

Discussed in #98

Originally posted by cromotron February 25, 2024
I receive the following error message
An error occurred while performing transpilation: expected colon, near ""

I'm having the same issue. Skip checkup works fine. When I run Hello skip the build fails - [✗] Build hello-skip (24.08s), [✗] Skip 0.8.36 init failed with 1 error, and the error in the output file states: note: Skip 0.8.36: transpile plugin to: /Users/ssxray/hello-skip/.build/plugins/outputs/hello-skip/HelloSkip/skipstone/HelloSkip/src/main at 09:46:13 error: An error occurred while performing transpilation: expected colon, near "" Error: expected colon, near "" Any suggestions? [skip-init-2024-04-26T14:44:57Z.txt](https://github.com/skiptools/skip/files/15133269/skip-init-2024-04-26T14.44.57Z.txt)

Is this happening when you run skip init? Can you post the complete command you are running?

It may be that there is some invalid character in your appid or project name. Does the error occur if you run this exact command?

skip init --open-xcode --appid=bundle.id project-name HelloSkip

Oh wait, I think the problem might be your ~/.skiptools/skipkey.env file. If you have a license key in there, can you make sure the file is valid YAML, like so:

SKIPKEY: SKP1234

Yes it is. I first tried to use a different project name, and got the same error. Then I ran that exact command (copied and pasted from the instructions) and again got the same error.
But, you got it entirely right:
The skipkey.env file had a carriage return after SKIPKEY: (as it was shown in my subscription confirmation email) so that it looked like:
SKIPKEY:
SKP1234
When I removed the carriage return, that error was eliminated. Unfortunately the xcode project still had errors.
(The two other issues:
Execution failed for task ':app:installDebug' and
The gradle command failed. Review the log for details and consult https://skip.tools/docs/faq for common solutions. Command: gradle -p ../Android launchDebug)

Glad to hear that fixing the skipkey.env file resolved the first problem.

The subsequent Xcode error should have references a log file you can examine for more details. One common issue is that an Android emulator isn't currently running – if you don't already have one running, can you start one by running Android Studio, opening the Device Manager, and starting one of the emulators?

Not sure - if you post the log as an attachment, we can take a look