xcode4

Xcode 4 internal compiler error: bus error

孤街浪徒 提交于 2019-12-22 05:03:34
问题 Xcode 4.0.1 has started giving me an internal compiler error. It just says "Bus error". It occurs at the bottom of one of my .m files, which is now almost 4000 lines long. I've looked at this question, but I'm not making that mistake, and when it comes up I can usually fix it by adding some random lines of code somewhere. When it first cropped up, I tracked it down to where I was setting the frame of a view in a bunch of new code: view.frame = CGRectMake(otherView.frame.origin.x, 0,

UITableViewController Background Image

≯℡__Kan透↙ 提交于 2019-12-22 04:18:10
问题 How can I set an image for UITableViewController ? I have used many things but it doesn't help me to set the image as background UIImageView* bgView = [[[UIImageView alloc] initWithImage: [UIImage imageNamed:@"Default.png"]] autorelease]; [tableView.backgroundView addSubview:bgView]; And this [[self view] setAutoresizesSubviews:NO]; UIView *backgroundView = [[UIView alloc] initWithFrame:self.view.frame]; backgroundView.backgroundColor = [UIColor colorWithPatternImage: [UIImage imageNamed:@

“Strip Debug Symbols During Copy” and “Strip Linked Product”

巧了我就是萌 提交于 2019-12-22 03:55:13
问题 I read a lot of thing and discovery this configs have 2 side effect: Make the binary size smaller The program show a better debug crash I am building program for iOS, so I want my binary to be the smallest possible. This mean: If I set YES to both config, my binary will be the smaller If I set NO , I will get better debug crash So I have to set YES for AppStore version and NO for Debug? 回答1: You are correct, set it to YES for AppStore build and NO for debugging builds. Even when you build you

Can't Rename Files In Xcode 4 Anymore?

◇◆丶佛笑我妖孽 提交于 2019-12-22 03:35:09
问题 Seriously, in previous versions of XCode I could right-click a file or group in XCode and I would get the "rename" option. In XCode 4 I can't seem to rename my files in XCode directly anymore. What happened? Why would Apple remove such a feature? How can I rename my nibs, image resources, and others in XCode now? 回答1: The contextual menu item was removed, but you can still rename from within. Select the file and then click again in the name and you should get the editor field. Type away to

How do I navigate through a method call hierarchy in Xcode 4?

帅比萌擦擦* 提交于 2019-12-22 01:52:07
问题 I come from Eclipse, I would like to know if there is a way in Xcode 4 to navigate through method calls like there. I know I can jump to the definition of a method, but I want to know who is calling that method/function. The only way I've found is doing a regular text search, but that's not very helpful. 回答1: Since Xcode 4.4 the feature to look up the immediate caller and/or callees of a method has been available. Unfortunately, there doesn't seem to be a handy hierarchy view as there is in

How to keep an application activated/in foreground while a script is running?

≯℡__Kan透↙ 提交于 2019-12-22 01:40:34
问题 I'm using Applescript to automate deployment of applications from Xcode 4. I use System Events to click the menu items in the menu bar for that. I have the whole thing working, but with one quirk. If the user clicks elsewhere while my script is running, that is the XCode 4 window goes out of foreground, my entire script fails. Is there a way to force Xcode to be in the foreground from my script? Now, if only Xcode 4 was at least as scriptable as Xcode 3, I wouldn't have to resort to GUI

Linking One View To Another Via A Button

爱⌒轻易说出口 提交于 2019-12-22 01:09:24
问题 I'm a bit new to programming for iOS, and I'm having some trouble linking one view to another via a button. I'm just creating a simple little app that does some calculations on a NSDate in an attempt to learn XCode and iOS programming. I've already searched this quite a bit, and I've tried to learn from other examples but I'm having trouble getting the view to present, nothing happens when I press my button (which I've already checked to be linked to the button). I've been having trouble

Why does Xcode 4 continually display “Checking source control status” for a git repository?

。_饼干妹妹 提交于 2019-12-21 22:37:26
问题 When I open my project which has a git repo, Xcode continually displays "Checking source control status" at the top of the window. My git repo is working find and I am able to commit changes to it using the command line utility. Why am I seeing this message? Furthermore, is there any way to get rid of it? I would like to rename my Xcode project, but with this issue, I can't. When trying to rename the project, Xcode gives the error: The operation could not be performed because the repository

Change the editor Xcode 4 uses for property lists?

天涯浪子 提交于 2019-12-21 21:39:53
问题 I like PlistEdit Pro way better than the default plist editor that comes with Xcode 4. Is there any way to tell Xcode 4 to always use PlistEdit Pro an an alternate editor for my property lists? 回答1: First set PlistEdit Pro as the default application to open property list files. You can do this from the Finder by selecting a .plist file and bringing up the Info panel. After that, the "Open with external editor" option will be available when you right-click on a .plist file in Xcode 4's project

[ controllerWillChangeContent:]: message sent to deallocated instance

本秂侑毒 提交于 2019-12-21 20:51:02
问题 I am having a problem with my ipad app. I've got a view that is accessed in 2 ways, if i go in one way it works perfectly. If I go in through another though, it crashes when saving the context. I suspect it is something in the parent (orders by customer) -- I get a zombie with the message: [OrdersByCustomer controllerWillChangeContent:]: message sent to deallocated instance 0x10102020 when I run it through intstruments with Zombies I get: # Category Event Type RefCt Timestamp Address Size