Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Installation issues - Suggestions to help improve the experience.

未关闭
#3 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
28/100
Issue 类型
文档
描述清晰度
基本清楚
活跃度
停滞
技术栈
swift

调研方向

检查 README、BackgroundViewController.swift、ViewController.swift、InterfaceController.swift、PhotoViewController.swift 以及列出的两个 entitlements 文件,以了解安装和 app-group 设置。完成标准是 README 说明所需的 app IDs 和 app-group 位置,并且在指定的 Swift 文件中对图像后缀的处理不区分大小写。

由索引模型根据 Issue 内容生成。

描述

Many people are familiar with swift but I don't believe that many will be familiar with the nuances of setting up a WK app. Even if you are not trying to load it onto a watch the fact that an app group is used complicates things quite a bit.

In my case I had to refresh my understanding of WK to get everything up and running - I hope to save others some time.

  1. Change case sensitive suffix test to case insensitive:
    change if fileURL.absoluteString.hasSuffix(".jpg") || fileURL.absoluteString.hasSuffix(".png")
    to if fileURL.absoluteString.lowercased().hasSuffix(".jpg") || fileURL.absoluteString.lowercased().hasSuffix(".png")

Files: BackgroundViewController.swift, ViewController.swift, InterfaceController.swift

  1. Add instructions to readme explaining that the developer will need to make their own app ids for the app, the wk app, and the app extension and will need to make their own app group.
  2. Add instructions to readme explaining the locations where the app group needs to be changed to the new one created by the developer.

Files: PhotoWatch.entitlements, PhotoWatch WatchKit Extension.entitlements, BackgroundViewController.swift, PhotoViewController.swift, InterfaceController.swift

  • Thanks,

Jim Malak - [email protected]

主要语言
Swift
星标
120
派生
24
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

dropbox/PhotoWatch 的其他 Issue

查看 dropbox/PhotoWatch 的全部 Issue

相似的 Issue

更多 Swift Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。