Updating init template to avoid warnings (#339)

Resolves https://github.com/tuist/tuist/issues/334

- The path to resources is now commented out and left as an example to aid users get started defining the manifest
- The warnings were caused due to the `Resources`  directory not existing

Test Plan:

- Create a new empty directory
- Run `tuist init`
- Run `tuist focus`
- Verify no warnings are displayed
This commit is contained in:
Kas 2019-05-05 11:56:33 +01:00 committed by GitHub
parent 3db50ca523
commit 19bc95ca73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -16,6 +16,7 @@ Please, check out guidelines: https://keepachangelog.com/en/1.0.0/
- Set Code Sign On Copy to true for Embed Frameworks https://github.com/tuist/tuist/pull/333 by @dangthaison91
- Fixing files getting mistaken for folders https://github.com/tuist/tuist/pull/338 by @kwridan
- Updating init template to avoid warnings https://github.com/tuist/tuist/pull/339 by @kwridan
## 0.14.0

View File

@ -140,10 +140,13 @@ class InitCommand: NSObject, Command {
bundleId: "io.tuist.\(name)",
infoPlist: "Info.plist",
sources: ["Sources/**"],
resources: ["Resources/**"],
resources: [
/* Path to resouces can be defined here */
// "Resources/**"
],
dependencies: [
/* Target dependencies can be defined here */
/* .framework(path: "framework") */
// .framework(path: "Frameworks/MyFramework.framework")
]),
Target(name: "\(name)Tests",
platform: .\(platform.caseValue),