以下是工作流执行日志:
Run xcodebuild clean build -project ExGithubAction/ExGithubAction.xcproject -scheme ExGithubAction
Command line invocation:
/Applications/Xcode_13.2.1.app/Contents/Developer/usr/bin/xcodebuild clean build -project ExGithubAction.xcproject -scheme ExGithubAction
User defaults from command line:
IDEPackageSupportUseBuiltinSCM = YES
xcodebuild: error: 'ExGithubAction.xcproject' does not exist.
Error: Process completed with exit code 66.如何通过错误'ExGithubAction.xcproject' does not exist
发布于 2022-10-24 07:43:41
首先,作为一个步骤(在uses: actions/checkout@v3之后)执行一个ls并确认ExGithubAction.xcproject确实是签出的。
其次,就像在这条线中一样,指定完整路径:
xcodebuild \
-workspace MyProject.xcworkspace \
-scheme MyProject \
-sdk iphonesimulator8.1 \
-configuration Release \
clean build \
OBJROOT=$(PWD)/build \
SYMROOT=$(PWD)/build(修改它并删除不需要的选项)
如果您有一个obfuscate_project脚本,则需要在脚本的第一部分中为与项目相对应的变量提供适当的值,并提交这些更改。
# General build options
# WORKSPACE=YourWorkspace.xcworkspace
PROJECT=YourProject.xcodeproj
SCHEME=YourScheme
CONFIGURATION=Release
SDK=7.1https://stackoverflow.com/questions/74177250
复制相似问题