iOS:xcodebuild:error:工作空间“'不包含名为”' [英] iOS: xcodebuild: error: The workspace '' does not contain a scheme named ''
本文介绍了iOS:xcodebuild:error:工作空间“'不包含名为”'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我运行此命令时,我看到一个名为Roomify的方案:
xcodebuild -list
关于项目Roomify的信息:
目标:
Roomify
RoomifyTests
构建配置:
调试
释放
如果未指定构建配置,并且未传递-scheme,则使用Release。
方案:
Roomify
RoomApp
然而,当我尝试建立它没有告诉我该方案不存在,为什么这样?
> xcodebuild -arch i386 -sdk iphonesimulator8.3 -workspace Roomify.xcworkspace / -scheme Roomify
$ b $
$ b :工作区Roomify不包含名为Roomify的方案。
解决方案
原来我使用错误的命令列出方案在我的工作区。
而不是:
xcodebuild -list
做:
xcodebuild -workspace Roomify.xcworkspace -list
I'm trying to release a Simulator build for Facebook review of my app.
When I run this command I see a scheme called "Roomify":
xcodebuild -list
Information about project "Roomify":
Targets:
Roomify
RoomifyTests
Build Configurations:
Debug
Release
If no build configuration is specified and -scheme is not passed then "Release" is used.
Schemes:
Roomify
RoomApp
However, when I try to build it fails telling me the scheme doesn't exist, why so?
>xcodebuild -arch i386 -sdk iphonesimulator8.3 -workspace Roomify.xcworkspace/ -scheme Roomify
Build settings from command line:
ARCHS = i386
SDKROOT = iphonesimulator8.3
xcodebuild: error: The workspace 'Roomify' does not contain a scheme named 'Roomify'.
解决方案
Turns out I used the wrong command to list the schemes in my workspace.
Instead of:
xcodebuild -list
Do:
xcodebuild -workspace Roomify.xcworkspace -list
这篇关于iOS:xcodebuild:error:工作空间“'不包含名为”'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文