English 中文(简体)
未能在Xcode 4.3.2中建造,因为部族没有退出法典 254
原标题:unable to build in Xcode 4.3.2 because getting the clang failed with exit code 254
  • 时间:2012-04-18 01:05:50
  •  标签:
  • ios

我刚刚突然开始与LV 3.1汇编者发生以下错误。 词汇有助于如何减少这种情况。 请允许我知道,我是否应该为此提供更多信息。

指令/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang没有撤离代码254

问题回答

I ended up with the same error after I messed up some string handling: Broken:

// 7.30.12 Unspaced/Original - remove windows 
, replace with " " (space) - let textbox wrap
// [mutTempString setstring: [mutTempString stringByReplacingOccurrencesOfString:@"
" withString:" "]];
// 7.30.12 - Need some  padding  at the top of the textbox (I copied and pasted above and generated the !code 254 error)
[mutTempString setString:[NSString stringWithFormat:@"

%@", [mutTempString setString:[mutTempString stringByReplacingOccurrencesOfString:@"
" withString:" "]]]];

I got rid of the nested or deep-inline [mutable setstring...] and everything works again: Fixed:

// 7.30.12 - Need some  padding  at the top of the textbox (remove the  inside  setstring)
[mutTempString setString:[NSString stringWithFormat:@"

%@", [mutTempString stringByReplacingOccurrencesOfString:@"
" withString:" "]]];

我也提到这一错误,即采用一种不属目标C的方法。

www.un.org/spanish/ecosoc 我使用的是。

NSString *redirectUrl = [NSString stringWithFormat:@"%@%@", @"http", **components[2]**];

and realized that it is a PHP way of accessing values of array.

www.un.org/spanish/ecosoc 因此,我改为:。

NSString *redirectUrl = [NSString stringWithFormat:@"%@%@", @"http", [components objectAtIndex:2]];

现职:D

因此,我只想回避这个问题,因为这是一个没有答复的后台,我认为我是这样解释我是如何确定的。

在我的案件中,错误是trying造成的,以便在没有配对标签的情况下获得UIImage语的标签。

First I tried the obvious solutions: - quit xcode and simulator, reopen, try to build again - restart computer, reopen, try to build again - perform clean (cmd + shift + K). None of these worked so I looked back at the seemingly innocent changes I made in the code.

造成坠毁:

if (!([[buttonsArray objectAtIndex:i] tag] > 299 )) {
   //NSLog(@"removed [buttonsArray removeObjectAtIndex:i]:%@",[buttonsArray removeObjectAtIndex:i]);
   [buttonsArray removeObjectAtIndex:i];
}

The Didnt:

if ([[buttonsArray objectAtIndex:i] class] != [UIButton class] ) {
   //NSLog(@"removed [buttonsArray removeObjectAtIndex:i]:%@",[buttonsArray removeObjectAtIndex:i]);
   [buttonsArray removeObjectAtIndex:i];
}

我的阵列包括3个UIButtons,每个区有超过299个和1个UIImage号。 阿雷拉的1个安保记录仪显示:

2012-05-10 01:46:14.555 My Application[542:fe03] buttonsArray:(
    "<UIImageView: 0x6b7f940; frame = (0 0; 252 272); opaque = NO; userInteractionEnabled = NO; layer = <CALayer: 0x6b71dc0>>",
    "<UIButton: 0x6b7ae70; frame = (8 8; 53 53); opaque = NO; tag = 300; layer = <CALayer: 0x6b6fb70>>",
    "<UIButton: 0x6b8be00; frame = (69 8; 53 53); opaque = NO; tag = 301; layer = <CALayer: 0x6b8bd70>>",
    "<UIButton: 0x6b8c1b0; frame = (130 8; 53 53); opaque = NO; tag = 302; layer = <CALayer: 0x6b8c140>>"
)

因此,问题是,UIImageView确实有被指派给它的标签。 当我试图将其标识与299进行比较时,汇编者将这一错误推向了。 我认为,这将是ok的(我对一些未签字方违约到0的地方读了),但我猜想不要!





相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...