xcode4

What is target membership in Xcode 4

狂风中的少年 提交于 2019-12-18 12:19:42
问题 I am searching for an example for target membership in Xcode. I am a bit confused about what it means exactly. For example, I have two different target membership. myApp and myAppTests. What does it mean if I specify a file (say myAppFile.h) to be part of myAppTests but not myApp? What happens exactly when my app build and run? Thanks 回答1: Generally header files are not members of targets. Making an implementation file a member of a target tells Xcode to compile the file when you build the

How do I set up a C++ project in Xcode 4?

限于喜欢 提交于 2019-12-18 11:45:17
问题 This probably has a really obvious answer, but I can't seem to find it. I am trying to use Xcode 4 to program with C++, and I want to create a project, build, and run it through Xcode 4 like I do for other languages. My problem is that I can't find the right type of project to do this. 回答1: Check this out : http://www.youtube.com/watch?v=Ey8LK7P1K94 at 2:30 he creates a C++ project. Or try this: Open XCode. File/New Project... In the "New Project" Assistant, expand the "Command Line Utility"

How to display compiler output or custom build steps output when building with xcode?

不羁岁月 提交于 2019-12-18 11:42:00
问题 How can I see the output from the compiler of from the custom build steps (pre-action or post-action)? 回答1: Pre-action output at least appears in system.log and is visible in Console.app. 回答2: You'll find (and you can watch during the build) the complete build output in the Log Navigator. That's the right most icon of the small icons just below the Run and Build buttons. 回答3: Per my answer here ( Is it normal for Xcode not to detect if a pre-action failed? ) this is an issue that's been

Compile error in empty cocos2d 2.0 (iPhone)

陌路散爱 提交于 2019-12-18 11:35:40
问题 When I try to compile new cocos2d+box2d project in xcode4. I got error message like: /Users/bla-bla/Cocos2d testing/Cocos2d testing/libs/cocos2d/CCDirector.h:32:9: fatal error: 'kazmath/mat4.h' file not found [2] /Users/bla-bla/Cocos2d testing/Cocos2d testing/libs/cocos2d/CCNode.h:37:9: fatal error: 'kazmath/kazmath.h' file not found [2] File I checked, what is wrong? 回答1: This is caused by having a space in the path name to your project. To work around this, you'll need to add the following

Xcode 4 became extremely slow and kills my hard drive

早过忘川 提交于 2019-12-18 10:49:16
问题 My machine has 8 GB or RAM, Core 2 Duo 3,06 GHZ and it seems it is not enough for Xcode 4 (4.0.1). From some time now it started to behave more and more slow. Auto completion, editing code as well as Xib files became almost impossible to use. Other applications behave smoothly. Activity monitor shows a lot of RAM usage (still few GB left of completely free memory, so it is quite OK) and huge disk activity usage. I can see on the graph high peaks of data being saved periodically when I work in

UINavigationBar - Set title programmatically?

喜夏-厌秋 提交于 2019-12-18 10:44:14
问题 I have a tab bar application with a different view on each tab. Each view has a UINavigationBar with title set on Interface Builder. I want to change the title based on a clause in the ViewDidLoad method, so if x { change the title }. I have tried self.title = @"title" , but this changes the title of the tab bar item itself. So, how is this done? 回答1: I've set the title programmatically using code something like this: navBar.topItem.title = @"title"; where navBar is declared as an IBOutlet

Is there a way to jump to a specific method in Xcode?

被刻印的时光 ゝ 提交于 2019-12-18 10:14:26
问题 I'm using Xcode 4.3 for Objective-C development. One feature that I like in other text editors (I know Xcode is an IDE), is jumping to a method definition within the same code file. For example if I'm in @implementation of Calculator and calculator has 10 methods, I will like a way to jump between them. If I press command+L I can jump to a specific line number, is there a way to jump in a similar way but to a method definition? e.g. instead of typing the line number to type only the beginning

Ad-hoc distribution in XCode 4

核能气质少年 提交于 2019-12-18 09:47:39
问题 I have a problem, I've got ad-hoc distribution povisioning profile. I have done all procedure product/archive and there are only two buttons validate and distribute and NO share button. What to do? I followed this tutorial http://diaryofacodemonkey.ruprect.com/2011/03/18/ad-hoc-app-distribution-with-xcode-4/ But there no button share. I tried to click distribute then chose save for enterprise or ad-hoc distribution then saved it but ipa file doesn't work on IPhone(. Please help me. 回答1: I

Xcode 4 SVN hanging at “Checking out” if client certificate required

妖精的绣舞 提交于 2019-12-18 08:29:36
问题 I am trying to get Xcode 4 working with my svn repository. I type in the svn address, which it says is reachable, but when I try to check out, it comes up with "The server 'svn.testbedapp.com' requires a client certificate." (it doesn't provide the option to supply the certificate) and then it shows "Checking out 'ProjectName'" indefinitely with s pinning wheel. Any ideas how I supply the certificate or get it checking anything out? 回答1: It's a known issue. Open terminal, type svn ls <your

Cannot delete derived data in Xcode 4's organizer

本秂侑毒 提交于 2019-12-18 07:28:11
问题 I'm trying to restore Code Sense, which has stopped working for my project, and it looks like the accepted way to do that is to delete the derived data. The problem is that the project has to be open or it doesn't appear in the Organizer, and the delete button for the derived data is faded out and unable to be clicked. My project is a dropbox folder. 回答1: You can clear Derived Data manually without using Organizer . Go to ~/Library/Developer/Xcode/DerivedData/ and delete every thing there, or