version 0.9.4 init project issue
skip init --appid=com.adhamsdiscovery.HelloSkip hello-skip Hello-Skip Initializing Skip application hello-skip [✓] Resolve dependencies (13.04s) [✗] Build hello-skip (6.45s) [✓] Check Swift Package (0.17s) [✓] Created module Hello-Skip in /Users/adhammuhammadjonov/devs/hello-skip [✗] Skip 0.9.4 init failed with 1 error Output logged to: /tmp/skip-init-2024-07-04T01:32:51Z.txt See https://skip.tools/docs/faq and https://community.skip.tools for help Error: 2 errors
╭─ ~/devs ✘ 1 19s ⎈ docker-desktop ╰─ skip doctor Skip Doctor [✓] Skip version 0.9.4 (= 0.9.4) [✓] macOS version 14.5 (> 13.5.0) [✓] macOS architecture: ARM [✓] Swift version 5.10 (> 5.9.0) [✓] Xcode version 15.4 (> 15.0.0) [✓] Xcode tools SDKs: 7 [✓] Homebrew version 4.3.8 (> 4.1.0) [✓] Gradle version 8.8 (> 8.6.0) [✓] Java version 21.0.3 (> 21.0.0) [✓] Android Debug Bridge version 1.0.41 (> 1.0.40) [✓] Android Studio version: 2021.3 [✓] Android tools SDKs: 7 [✓] Check Skip Updates: 0.9.4 [✓] Skip 0.9.4 doctor succeeded in 1.53s
╭─ ~/devs ✔ ⎈ docker-desktop ╰─ skip checkup [✓] Skip version 0.9.4 (= 0.9.4) [✓] macOS version 14.5 (> 13.5.0) [✓] macOS architecture: ARM [✓] Swift version 5.10 (> 5.9.0) [✓] Xcode version 15.4 (> 15.0.0) [✓] Xcode tools SDKs: 7 [✓] Homebrew version 4.3.8 (> 4.1.0) [✓] Gradle version 8.8 (> 8.6.0) [✓] Java version 21.0.3 (> 21.0.0) [✓] Android Debug Bridge version 1.0.41 (> 1.0.40) [✓] Android Studio version: 2021.3 [✓] Android tools SDKs: 7 [✓] Resolve dependencies (11.29s) [✓] Build hello-skip (11.37s) [✓] Test Swift (7.36s) [✓] Test Kotlin (23.54s) [✓] Archive iOS ipa (19.48s) [✓] Assemble HelloSkip-release.ipa 37 KB [✓] Verify HelloSkip-release.ipa 37 KB [✓] Assembling Android apk (96.93s) [✓] Verify HelloSkip-release.apk 12,6 MB [✓] Check Swift Package (0.33s) [✓] Check Skip Updates: 0.9.4 [✓] Skip 0.9.4 checkup succeeded in 171.67s
Everything is checked
I think it is the dash in "Hello-Skip". The app name is also the SwiftPM module name, which forbids dashes.
If you instead do:
skip init --appid=com.adhamsdiscovery.HelloSkip hello-skip HelloSkip
does it work? If not, please post the log that it outputs.
We'll update the tool to check to ensure that the module name doesn't have a dash and provide a reasonable error message.
I found out that it was because of KEY but I added it and it gives error again
#Obtain a Skip key from https://skip.tools for the SKIPKEY property #Be sure that the key is on a single line, and that #there is a space between the colon and the key string SKIPKEY: 1133F64F-CDD9-5BC2-9309-58CA9A0A7E3C
skip init --appid=com.adhamsdiscovery.HelloSkip hello-skip HelloSkip Initializing Skip application hello-skip [✓] Resolve dependencies (11.89s) [✗] Build hello-skip (6.25s) [✓] Check Swift Package (0.16s) [✓] Created module HelloSkip in /Users/adhammuhammadjonov/devs/hello-skip [✗] Skip 0.9.4 init failed with 1 error Output logged to: /tmp/skip-init-2024-07-04T01:56:16Z.txt See https://skip.tools/docs/faq and https://community.skip.tools for help Error: 2 errors
SKIPKEY: 1133F64F-CDD9-5BC2-9309-58CA9A0A7E3C
That is not a valid license key. You can request one from https://skip.tools/eval/
I give up, I requested and nothing happened.
Do you mean you didn't receive the email with the key? I see that it was sent to your email address. Perhaps check your spam folder? You can also contact [email protected] and we will respond with the key.
In any case, there is an implicit 14-day trial when you first install Skip, so you can remove the license key altogether. You should then be able to create the project (without the hyphen in the name) and it should work fine.
I was facing the same issue but after adding 'sudo'
it worked.
So, instead of
skip init --appid=com.adhamsdiscovery.HelloSkip hello-skip HelloSkip
use
sudo skip init --appid=com.adhamsdiscovery.HelloSkip hello-skip HelloSkip
Going over old issues, it looks like this one was resolved. But please add more information and/or re-open if it continued to cause problems.