Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version 0.9.4 init project issue #167

Open
Adham2023 opened this issue Jul 4, 2024 · 7 comments
Open

version 0.9.4 init project issue #167

Adham2023 opened this issue Jul 4, 2024 · 7 comments

Comments

@Adham2023
Copy link

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

@marcprux
Copy link
Contributor

marcprux commented Jul 4, 2024

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.

@Adham2023
Copy link
Author

Adham2023 commented Jul 4, 2024

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

@Adham2023
Copy link
Author

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

skip-init-2024-07-04T01:56:16Z.txt

@marcprux
Copy link
Contributor

marcprux commented Jul 4, 2024

SKIPKEY: 1133F64F-CDD9-5BC2-9309-58CA9A0A7E3C

That is not a valid license key. You can request one from https://skip.tools/eval/

@Adham2023
Copy link
Author

I give up, I requested and nothing happened.

@marcprux
Copy link
Contributor

marcprux commented Jul 4, 2024

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.

@omarabubakrll
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants