iOS: xcodebuild: error: The workspace '' does not contain a scheme named ''

不打扰是莪最后的温柔 提交于 2020-01-05 03:09:11

问题


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'.

回答1:


Turns out I used the wrong command to list the schemes in my workspace.

Instead of:

xcodebuild -list

Do:

xcodebuild -workspace Roomify.xcworkspace -list



来源:https://stackoverflow.com/questions/31592276/ios-xcodebuild-error-the-workspace-does-not-contain-a-scheme-named

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!