Comments (8)
ok,我先来试一下。
Most of my macOS project's CI is using Xcode Cloud. See I can't find a reference workflow file for you.
Here is a iOS one in case you need something for reference.
from easydict.
@Kyle-Ye 有空可以帮忙看看这个问题吗
from easydict.
- The log has showed the error reason
2023-12-31T02:28:35.9085640Z /Users/runner/work/Easydict/Easydict/Easydict/NewApp/View/MenuItemView.swift:92:1: error: expected expression
2023-12-31T02:28:35.9087060Z @available(macOS 13, *)
2023-12-31T02:28:35.9087490Z ^
2023-12-31T02:28:35.9088790Z /Users/runner/work/Easydict/Easydict/Easydict/NewApp/View/SettingView/Tabs/GeneralTab.swift:53:1: error: expected expression
2023-12-31T02:28:35.9090350Z @available(macOS 13, *)
2023-12-31T02:28:35.9090770Z ^
2023-12-31T02:28:35.9092030Z /Users/runner/work/Easydict/Easydict/Easydict/NewApp/View/SettingView/Tabs/AboutTab.swift:59:1: error: expected expression
2023-12-31T02:28:35.9093540Z @available(macOS 13, *)
2023-12-31T02:28:35.9093960Z ^
2023-12-31T02:28:35.9095680Z /Users/runner/work/Easydict/Easydict/Easydict/NewApp/View/MenuItemView.swift:66:13: error: cannot find 'SettingsLink' in scope
2023-12-31T02:28:35.9097250Z SettingsLink()
2023-12-31T02:28:35.9097690Z ^~~~~~~~~~~~
2023-12-31T02:28:35.9097980Z
I believe this is because the CI is using Xcode_14.2
.
And after #212, the minimal supported version to build the project is Xcode 15.0.
We can probably solve the issue by upgrading the CI's Xcode version.
- Maybe we can learn this as a lesson. Even the owner should not push code to protected branch(eg. dev) and a merge request and CI check is needed.
from easydict.
目前项目使用的是 GitHub 仓库设置中的 CodeQL,我从 action 市场这里的配置文件看到已经是 macos-latest,也就是说是 macOS 13,那这里还能改吗?
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
from easydict.
You may try to specify Xcode version to 15.0 and give it a try.
Also I noticing you are adding swift.yml
workflow for swift build
.
This will not work since the EasyDict project is a xcodeproj not a swift package.
For a Swift package, both swift build
and xcodebuild
is supported.
For a xcodeproje/xcodeworkspace, you still need to use xcodebuild
manully.
- The easiest way to add such CI is by Xcode Cloud and Apple's Xcode Cloud team will take care of it. All you need to do is give Xcode Cloud the repo's read permission.
https://github.com/Kyle-Ye/MenuHelper
- Otherwise you need to explore the
xcodebuild
command, and run it in a GitHub workflow file
eg.
xcodebuild build \
-scheme OpenSwiftUI \
-configuration Debug \
-skipMacroValidation -skipPackagePluginValidation \
-destination "platform=iOS-Simulator" \
from easydict.
目前项目使用的是 GitHub 仓库设置中的 CodeQL,我从 action 市场这里的配置文件看到已经是 macos-latest,也就是说是 macOS 13,那这里还能改吗?
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
Every macOS runner image have a default Xcode version. And it will bundle a lot of different Xcode version.
See more info here https://github.com/actions/runner-images/blob/main/images/macos/macos-13-Readme.md
In our case, we need to manually update the default Xcode version. You can do it by hand or using a Xcode action.(eg. https://github.com/maxim-lobanov/setup-xcode)
from easydict.
ok,我先来试一下。
from easydict.
CodeQL 已经修复了,通过指定 Runner Image 为 macos-13 和设置 xcode-version: '15.1' https://github.com/tisfeng/Easydict/blob/main/.github/workflows/codeql.yml
之前没注意 macos-latest 居然是 macos-12,这太坑了 🥲
Runner Image
Image: macos-12
Version: 20231216.1
Included Software: https://github.com/actions/runner-images/blob/macOS-12/20231216.1/images/macos/macos-12-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/macOS-12%2F20231216.1
from easydict.
Related Issues (20)
- 🚀 功能建议:历史记录窗口 HOT 4
- 🐞 反馈问题:朗文高级词典界面左侧显示不全 HOT 4
- 【Swift 重构】补充设置-服务页各项 API key 配置 HOT 2
- 🐞 反馈问题:休眠后,疑似后台退出? HOT 4
- 【UI/UX】Design Issues Tracker for Swift/SwiftUI migration
- dev: SwiftUI Setting - no alert while enabling hide icon in menu bar HOT 1
- dev: Adding a disabled App by dragging it causes a very noticeable lag HOT 4
- 🚀 功能建议:添加应用内切换语言选项 HOT 5
- dev: Add Advanced tab in Settings HOT 4
- 🐞 反馈问题:修改菜单栏图标 HOT 7
- dev: Add missing in-app shortcuts in new settings HOT 11
- dev: Project Marketing HOT 2
- 🚀 功能建议:“快捷功能”区添加快捷设置 HOT 5
- dev: Official Web Site HOT 7
- 🚀 功能建议:自动删除换行符 HOT 2
- 🐞 反馈问题:输入翻译无法使用 HOT 10
- dev: When displaying the query window, the settings behind it is also displayed HOT 1
- dev: `Configuration.shared.updater` return nil on setting and getting `automaticallyChecksForUpdates` HOT 10
- 🚀 功能建议:单词收藏、查询提示、导出卡片 HOT 4
- dev: Add Traditional Chinese to TencentTranslateType
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easydict.