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

MeowWidget错误修复与优化 #426

Closed
wants to merge 3 commits into from

Conversation

FengzihangCode
Copy link
Contributor

本提交是完善MeowWidget的,对部分代码进行了修改,添加了MeowWidgetWatch

记得原本target可以同时设置iOS与watchOS的,今天发现不行,因此只能单独为iOS与watchOS创建了两个target

如果可以在一个target中解决这些问题,麻烦给我说一声

修复:
·Widget还不支持watchOS
·iOS端Widget没有显示App图标
·小Widget内容显示不全
·深色模式下小组件背景颜色不和谐
·小组件作者与播放量不可用
·为MeowWidget预览页面提供真实数据

#425

本提交是完善MeowWidget的,对部分代码进行了修改,添加了MeowWidgetWatch

记得原本target可以同时设置iOS与watchOS的,今天发现不行,因此只能单独为iOS与watchOS创建了两个target

如果可以在一个target中解决这些问题,麻烦给我说一声

修复:
·Widget还不支持watchOS
·iOS端Widget没有显示App图标
·小Widget内容显示不全
·深色模式下小组件背景颜色不和谐
·小组件作者与播放量不可用
·为MeowWidget预览页面提供真实数据
@FengzihangCode
Copy link
Contributor Author

!Run check

Copy link
Member

@WindowsMEMZ WindowsMEMZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

即使 iOS 和 watchOS 分为两个 Target,也最好共享相同的代码,而不是为两个平台分别复制一份。

@FengzihangCode
Copy link
Contributor Author

即使 iOS 和 watchOS 分为两个 Target,也最好共享相同的代码,而不是为两个平台分别复制一份。

两个target 一份代码共用?

@WindowsMEMZ
Copy link
Member

即使 iOS 和 watchOS 分为两个 Target,也最好共享相同的代码,而不是为两个平台分别复制一份。

两个target 一份代码共用?

image

Target Membership 中将代码文件同时添加到两个 Target 中。

@FengzihangCode
Copy link
Contributor Author

即使 iOS 和 watchOS 分为两个 Target,也最好共享相同的代码,而不是为两个平台分别复制一份。

两个target 一份代码共用?

image

Target Membership 中将代码文件同时添加到两个 Target 中。

了解了 回家处理

WindowsMEMZ
WindowsMEMZ previously approved these changes Oct 26, 2024
@WindowsMEMZ
Copy link
Member

!Run check

@WindowsMEMZ
Copy link
Member

@FengzihangCode 需要解决的问题:

error: Build input file cannot be found: '/Users/runner/work/Darock-Bili/Darock-Bili/MeowWidgetWatch/Info.plist'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it? (in target 'MeowWidgetWatchExtension' from project 'DarockBili')

@FengzihangCode
Copy link
Contributor Author

@FengzihangCode 需要解决的问题:

error: Build input file cannot be found: '/Users/runner/work/Darock-Bili/Darock-Bili/MeowWidgetWatch/Info.plist'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it? (in target 'MeowWidgetWatchExtension' from project 'DarockBili')

看起来似乎是因为没有完全清理MeowWidgetWatch的残留 我处理一下

@FengzihangCode
Copy link
Contributor Author

处理了 麻烦再检查一下

@FengzihangCode
Copy link
Contributor Author

!Run check

@WindowsMEMZ WindowsMEMZ self-requested a review October 26, 2024 14:47
@WindowsMEMZ
Copy link
Member

@FengzihangCode 需要解决的问题:

/Users/runner/work/Darock-Bili/Darock-Bili/MeowWidget/MeowWidgetBundle.swift:22:1: error: 'main' attribute can only apply to one type in a module
@main
^
/Users/runner/work/Darock-Bili/Darock-Bili/MeowBili/MeowBiliApp.swift:118:1: error: 'main' attribute can only apply to one type in a module
@main
^

@FengzihangCode
Copy link
Contributor Author

还是有问题(
我打算直接回到现在的正式版本 在这个基础上重新改

@WindowsMEMZ
Copy link
Member

你其实应该先在本地看看能不能编译再push上来的

@FengzihangCode
Copy link
Contributor Author

FengzihangCode commented Oct 26, 2024

你其实应该先在本地看看能不能编译再push上来的

道理都懂 设备受限
现在用的这台机子现在还在跑Ventura 无法编译这个项目
代码基本是靠Xcode检查+人+CI完成确认的

@FengzihangCode
Copy link
Contributor Author

你其实应该先在本地看看能不能编译再push上来的

道理都懂 设备受限 现在用的这台机子现在还在跑Ventura 无法编译这个项目 代码基本是靠Xcode检查+人+CI完成确认的

不然我也不可能提交出这种乱七八糟的问题了(

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

Successfully merging this pull request may close these issues.

2 participants