在 xcode 中禁用构建和运行

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5075305/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 20:17:10  来源:igfitidea点击:

Build and run Disabled in xcode

iphoneobjective-cxcodedebugging

提问by Pankaj Kainthla

There are some applications which shows Build and runicon disabled which stops me from running the application.It does not happen to all applications but on a few . It mainly occurs to me in facebook applications and a few more applications.Can anybody have an idea what could be the problem ? I have tried everything from changing the build settings etc. but it does not work.

有一些应用程序显示“构建和运行”图标已禁用,这使我无法运行该应用程序。并非所有应用程序都会发生这种情况,但在少数应用程序上会发生这种情况。它主要发生在我的 facebook 应用程序和其他一些应用程序中。有人知道可能是什么问题吗?我已经尝试了从更改构建设置等方面的所有方法,但它不起作用。

enter image description here

在此处输入图片说明

采纳答案by Chandan Shetty SP

I think those may be frameworks,static libraries. So the build and run option is disabled.

我认为那些可能是框架,静态库。所以构建和运行选项被禁用。

回答by Sergey Sergeyev

Need to fix the executable, it happens after renaming project.

需要修复可执行文件,它发生在重命名项目之后。

Product > Scheme > Edit scheme..

产品 > 方案 > 编辑方案..

Select

选择

Run > Info

运行 > 信息

Set Executable is your app name, if selected None.

如果选择无,则设置可执行文件是您的应用程序名称。

回答by occulus

That project appears to be the Sparrow audio project. It's not a stand-alone project you can run; it's a library, you need to be using it in another project to have anything to actually run.

该项目似乎是 Sparrow 音频项目。它不是您可以运行的独立项目;它是一个库,您需要在另一个项目中使用它才能实际运行任何东西。

The sparrow project includes a sample app called Scaffold which demonstrates the use of Sparrow. More info:

sparrow 项目包括一个名为 Scaffold 的示例应用程序,它演示了 Sparrow 的使用。更多信息:

http://www.sparrow-framework.org/help/gettingstarted/

http://www.sparrow-framework.org/help/gettingstarted/

Also see:

另见:

http://www.sparrow-framework.org/help/documentation/

http://www.sparrow-framework.org/help/documentation/

Note that you can still 'build'; it's just 'build and run' that can't be clicked.

请注意,您仍然可以“构建”;它只是无法单击的“构建并运行”。

回答by ManishS

I think you might be creating plugin or frameworks or libraries (not an Application). So the "Build & Run" icon is DISABLED.(as answered by Chandan Shetty SP)

我认为您可能正在创建插件或框架或库(而不是应用程序)。所以“构建和运行”图标被禁用。(由 Chandan Shetty SP 回答)

In order to enable the icon you need to specify the Application which use this plugin or framework or library whatever you are building.

为了启用图标,您需要指定使用此插件或框架或库的应用程序,无论您正在构建什么。

To specify such application:

要指定此类应用程序:

  1. Rt. Click on "Executables" (in Xcode's Groups and Filespanel)

  2. Select Add> New Custom Executable

  3. Then specify the nameof application (just for display purpose) and specify the pathof the application.

  1. Rt。单击“可执行文件”(在 Xcode 的组和文件面板中)

  2. 选择添加>新建自定义可执行文件

  3. 然后指定应用程序的名称(仅用于显示目的)并指定应用程序的路径

回答by Jaywant Khedkar

Try this, It's work for me.

试试这个,它对我有用。

Follow below steps to unable Build and Run in xcode

按照以下步骤无法在 xcode 中构建和运行

1) Go to

1) 前往

Product => Scheme => Edit scheme.

产品 => 方案 => 编辑方案。

enter image description here

在此处输入图片说明

2) Select Run optionand select infoenter image description here

2)选择运行选项并选择信息在此处输入图片说明

3) In Executableif option is selected to Nonethen change it to your app name

3)在可执行文件中,如果选项选择为无,然后将其更改为您的应用程序名称

Hope this is help for some one.

希望这对某人有所帮助。

回答by Jaywant Khedkar

Go to the Project menu in the menubar and change the Active Target to the target of the actual app.

转到菜单栏中的 Project 菜单并将 Active Target 更改为实际应用程序的目标。