比较两个Xcode构建设置 [英] Compare two Xcode build settings

查看:101
本文介绍了比较两个Xcode构建设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个项目,主要使用两个构建设置.不幸的是,今天出了点问题.一个编译,另一个不编译.如何比较XCode中的两个构建设置,以查看有什么区别?

I have a project where I use two build settings predominantly. Unfortunately today something went wrong. One compiles and the other doesn't. How can I compare the two build settings in XCode to see what the differences are?

(对于那些感兴趣的人,我在一个版本中遇到的错误是

(For those interested, the error I get in one build is

jump to case label crosses initialization of 'const char* selectorName'

如果您知道这意味着什么,我将非常感激 )

if you know what this means I'll be very grateful )

推荐答案

您可能在案例中声明了一个变量而没有将其全部括在大括号中:

You probably declare a variable inside a case without wrapping it all in a brace:

case foo:
    const char* selectorName;
    // ...
    break;

应该是:

case foo: {
    const char* selectorName;
    // ...
    break;
}

这篇关于比较两个Xcode构建设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆