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 ""
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