xcode4

if statement fails with variable from CoreData managed object

狂风中的少年 提交于 2019-12-24 20:24:57
问题 I'm having some trouble with Managed Objects... imagine that. Here is one real doozy, maybe someone can help. So I have a managed object class called "Format" which is an entity. Anyway, it has a property called "slot" that's an NSNumber. Now the number can have values from zero to four, but if it does not have a value then I want the NSNumber object to be equal to "nil" as opposed to zero. I wasn't having any luck with that since evidently being zero is the same as being "nil." Ugh. (Is

Why does xcode throw this error even though the profiles are set to distribute?

北城以北 提交于 2019-12-24 18:43:50
问题 So I am submitting my First App. I have followed various guides and documents to the letter and managed to upload it to the itunes app store one time. It came back as invalid binary relating to an icon path. Fair enough... I applied what I felt was a fix then BANG! Everytime I tried to upload it since then it comes back with an error, this error to be exact.: warning: Unable to extract codesigning entitlements from your application. Please make sure DoorStop is a valid Mach executable that's

(iphone) Is there a way to see compile output of xcode4?

我怕爱的太早我们不能终老 提交于 2019-12-24 16:09:57
问题 as in question, How can I see compile output of xcode4? Thank you 回答1: you could see the build/Compile output in the issue navigator and log navigator Follow the below simple step to go to the issue navigator Open XCode 4, Build your project, then press command + 4 for issue navigator . (there are two filter here " By File " and " By Type ") press command + 7 for log navigator (contain compile information for all day build). 回答2: Press MAC key (command) + shift + B to show build output. 回答3:

XCode - Same classe name, two targets

試著忘記壹切 提交于 2019-12-24 13:58:02
问题 I'm trying to regroup several applications I have in the same XCode project. So I created a new XCode project and added two targets, and import the source code of my two apps in one of the targets. The problem is that I have classes with the same name in the two applications. When I compile the first one, no problem. But if I try to compile the second target, I have lots of issues like this : In file included from /Users/administrateur/Documents/Merged_iPhone_Projects/Target2/Classes

Resizing NSTextField within Xcode 4 to fit default font?

蓝咒 提交于 2019-12-24 13:09:26
问题 In XCode 4, if I change the font of an NSTextField its frame does not update to accommodate the change. Further, under "Frame layout" its height is grayed-out and unalterable. Is there a quick way to adjust the frame of the NSTextField to fit its font choice without having to resort to a programmatic adjustment? Hopefully I have overlooked a simple control in Xcode 4. 回答1: I found a somewhat awkward solution: by setting the "Line break" to "Word wrap" I was allowed to adjust the the height of

How do I release updates to adhoc builds?

笑着哭i 提交于 2019-12-24 11:32:17
问题 I want to release an update to my ad hoc build that exists on my various devices? UPDATE: I don't mind doing it manually for each device my question is, how do I update the app's without deleting them first off the device. i.e. I want to keep the database on the device in tact...itunes doesn't allow this. 回答1: I guess you will have to install a new build on every device via iTunes. Or you can try TestFlight, it's a great tool. And you can just install a new builds from the device itself. And

xcode 4 crash at marking references inverse

只愿长相守 提交于 2019-12-24 11:07:07
问题 For the third time in a row, I create a blank navigation-based iOS project, create two entities in the core data model, create references from entities to one another, and the second I mark them as inverse, this happens: UNCAUGHT EXCEPTION (NSInternalInconsistencyException): Cannot remove an observer <IDEDMArrayController 0x27fbcc0> for the key path "inspectedInverseRelationship.name" from <CDMRelationship 0x2911060>, most likely because the value for the key "inspectedInverseRelationship"

TabBarController inside NavigationController

蹲街弑〆低调 提交于 2019-12-24 10:43:31
问题 Imagine that we have multiview apllication which is controlled by Navigation Controller. We go from the first view to second by using pushViewController method and that's not a problem but then we need to move to the third view. And the third one is a view which looks like a TabBar. How do we do that? The third view is supposed to be controlled by TabBarController, isn't it? So how to pass the control? I declared an outlet UITabBarController * tbc and connected it to TabBarController in xib

Xcode 4 not showing line that debugger is stopped on

旧巷老猫 提交于 2019-12-24 10:02:22
问题 When I place a breakpoint on a line in XCode 4, and it stops at that breakpoint, it doesn't show the line that is highlighted initially or when I step. This only happens once--when I initially open XCode. It will show the line, and then every run after that it won't. Any ideas how to bring it back? It's XCode 4.0.2. I've read a lot about XCode being broken, and I've experienced that too, but is there anything I can do? Edit: I've also tried reinstalling XCode from a fresh download. 回答1: Fixed

Xcode 4 Navigation item prompt property misbehaving?

回眸只為那壹抹淺笑 提交于 2019-12-24 10:01:41
问题 When designing in Interface Builder and you add text to a prompt property, it creates an additional top title. This comes with the extra thickness needed to allow for 2 tiles in the navigation bar. Once I remove the text, let's say to reset back to the way it was, it keeps that thickness even though there is no text there. At runtime switching views makes the bar grow and shrink, which isnot nice. My question is, how do you reset this back to a default single line thickness bar? Thank you Jim