xcode4

MOMC error with XCode4 and Data Model Compile

杀马特。学长 韩版系。学妹 提交于 2019-12-03 11:21:47
Whenever I build my project, I'm getting the error: Command /Developer/usr/bin/momc failed with exit code 1 I've read posts here about deleting extraneous Data Model versions as a fix, and nothing works. I'm stumped because nothing changes the behavior of my Build: It always fail with the above error code, regardless of whether I actually have CoreData model files or not. What I did to cause this error: Switched to a versioning model What I tried: Removing new version of Data model Removing any old versions of Data model Removing entire versioning model and using previous version from Git

Unable to get destinationURL data in connectionDidFinishDownloading for ios5

余生颓废 提交于 2019-12-03 11:19:45
I'm trying to get a list of assests urls to download. I'm using NSURLConnection in order to get a JSON file that have this list of urls. in - (void)connection:(NSURLConnection *)connection didWriteData:(long long)bytesWritten totalBytesWritten:(long long)totalBytesWritten I'm getting 122239 as total bytes written. when - (void)connectionDidFinishDownloading:(NSURLConnection *)connection destinationURL:(NSURL *)destinationURL is called I'm trying to read the url data in order to extract the JSON file: NSData *data = [NSData dataWithContentsOfURL:destinationURL options:NSDataReadingUncached

OCUnit tests to existing iOS project. “ld: file not found”

蓝咒 提交于 2019-12-03 11:19:15
问题 I've been following this blog post: Adding unit tests to existing project. I'm getting this error however: ld: file not found: Build/Products/Debug-iphoneos/MyApp.app/MyApp Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed with exit code 1 I have my test target properties, Bundle Loader = $(BUILT_PRODUCTS_DIR)/MyApp.app/MyApp Test Host = $(BUNDLE_LOADER) (which both equate to: build/Debug-iphoneos/MyApp.app/MyApp) My wild guess is that those variables aren't

Xcode 4 Git—“This file does not exist at the requested revision”

北战南征 提交于 2019-12-03 11:16:45
I have a local git repository that I set up with a project in Xcode 4. The repository shows up fine in the Organizer and I can see commit histories and Source Control icons in the File Navigator. Commits work fine as well. However, when I use the version editor, I get the error "This file does not exist at the requested revision" whenever I try to see any previous revision. I can't find any information on this error and have no idea how to fix. git log shows four recent commits (I know there are more, but I don't know if this is a restriction of the command or if something's disappearing). Any

Xcode 4: deleting items in Build Settings

China☆狼群 提交于 2019-12-03 11:06:45
问题 In XCode 4.0 there's a newly designed Build Settings page. My problem is that I can't see how to remove a setting once I've specified it. Example: I've changed "Versioning System" to "Apple Generic" at the target level. Afterwards I realised I should set it at the project level, and so I want to delete the target level setting. However, there's no way I can see to remove the setting -- you click on it and there's two options, neither of which is the default "not specified" empty setting.

How to display the exact line of code causing application crash in xcode 4 debugger like in xcode 3.2

别说谁变了你拦得住时间么 提交于 2019-12-03 11:05:06
I just downloaded xcode 4 recently and have read the xcode transition guide, however, I am still wondering how do I get the same feature for debugger in xcode 4 like in xcode 3.2. When I program in xcode 3.2 and run my application, if my code happened to cause a crash in the program, I could just press command+shift+y and I'll get the debugger mode appearing, which will shows which lines that it crashes. However, I can't seem to get this working for xcode 4. I know that I can look at which line that actually causes the crash by looking at the stacktrace, however, having that functionality in

In Xcode 4 GM, how do I turn on LLDB? All I see is GDB

倖福魔咒の 提交于 2019-12-03 11:00:25
In the scheme run debugger popup, all it shows is 'None' and 'GDB'. This is for an iPad 4.2 simulator built with LLVM. Jano You can't. In words of an Apple employee, LLDB is not available for iOS development yet . As of july 2011 it is unknown when LLDB will become available for iOS. In Xcode 4.0.2 your only option is GDB. In Xcode 4.2 you have LLDB as an option, but you can't use it: The LLDB project doesn't list a date for iOS support. The FAQ says: Q: What targets does LLDB currently support? Mac OS X native debugging for i386 and x86_64 targets. And the WWDC 2011 sessions that talk about

Turn off warnings coming from subprojects

别来无恙 提交于 2019-12-03 10:53:48
问题 Can someone help me to turn off warnings in Xcode 4 that I'm getting from subprojects? I have three subprojects, with a lot of warnings. The subprojects are provide by my customer's R&D studio. I would like to turn off the warnings there, to put all my efforts and attention on warnings in my own code. Is this possibile in Xcode 4? 回答1: If you're using Xcode 4.2 or later, you can use LLVM compiler setting Inhibit All Warnings in Warning Polices for every subproject you have: 回答2: A partial

XCode 4.2: Organizer documentation is locked in a OSX Lion way

一个人想着一个人 提交于 2019-12-03 10:43:07
I'm using the XCode 4.2 beta (build 4D199) on Lion, and can't access the Developer Documentation in XCode 4.2 anymore. When I attempt to log-in, I get a pop-up telling me the (remote) file is "locked", in the fashion that Lion does these things. Does anybody have a suggestion what I can do to access the documentation from within the Organizer? I used to be able to access it without any issues, not sure what changed. The situation was fixed for me by Apple / XCode itself, as it automatically downloaded the (newly available?) "iOS 5.0 Library" documentation files. Documentation now runs from a

iOS 5: Can you override UIAppearance customisations in specific classes?

醉酒当歌 提交于 2019-12-03 10:30:53
I'm building an app with many view controllers: I have a UITabBarController which holds 4 UINavigationController . I want all the nav bars to be my custom color, say blue, which I achieve by doing this in my app delegate: [[UINavigationBar appearance] setTintColor:[UIColor blueColor]]; But I also have one special view controller which has a map, and for this view controller I want to override the blue navbar set using UIAppearance to make it the black opaque style. I've tried by calling this inside viewDidLoad : self.navigationController.navigationBar.barStyle = UIBarStyleBlack; self