xcode4

How do you create a Shell Script target in Xcode 4.2?

泪湿孤枕 提交于 2019-12-05 00:35:37
I was wondering if anyone knew with XCode 4.1 how to create a shell script. The option for that doesn't exist, but it might be called something else in the latest version. Ta Select your project in the navigator Click "Add Target" - Choose "Aggregate" for an empty Target Add Build Phase -> Add Run Script Click Build Phases and edit the Run Script Phase 来源: https://stackoverflow.com/questions/9088985/how-do-you-create-a-shell-script-target-in-xcode-4-2

SenTestingKit (integrated with XCode) versus GHUnit on XCode 4 for Unit Testing?

我怕爱的太早我们不能终老 提交于 2019-12-05 00:19:12
问题 Any advice on which way to go regarding Unit Testing on XCode 4 out of SenTestingKit (the inbuild unit testing framework with XCode 4) and GHUnit? In particular: With the apparent improvements to Unit Testing in XCode 4 does this mean there are no major benefits of running with GHUnit? Alternatively are there some integration benefits that make a smooth development process that could be achieved using XCode's unit testing framework (SenTestingKit) as opposed to GHUnit? 回答1: Greg, I answered

Use database (such as sqlite) with cocos2d-x

只愿长相守 提交于 2019-12-05 00:10:12
问题 I am starting to build a gaming application on iphone. I am using cocos2d-x game engine, since it is easy to port to android from there. Also the coding is in C++, which I am very much familiar with. I want to know if there is a way to use any database with cocos2d-x. Although sqlite is preferred but not mandatory. I will have about 1/2 mb of data in the database. So, yes I have thought about keeping/using an in-memory database too, but I want my read/write queries to be time efficient. I

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

两盒软妹~` 提交于 2019-12-04 23:36:36
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. 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 Eclipse. What's New in Xcode 4.4 Xcode can show the callers and callees of the current function or method.

“Incorrect Architecture” when trying to install iPhone app onto my development device

穿精又带淫゛_ 提交于 2019-12-04 23:33:18
问题 I have an iPhone 3G (running iOS 4.0) that I use to performance-test my app on my old hardware. I used to be able to use the device without issue, even with Xcode 4. Somehow, though, when I installed the latest build of Xcode4 (4.0.2 build 4A2002a) I lost the ability to install my app on this older device. When I press the Run button, I get No provisioned iOS devices are available. Connect an iOS device or choose an iOS simulator as the destination. However, nothing's changed on the device

What should I do about xcuserdata directories with my old username?

橙三吉。 提交于 2019-12-04 23:30:58
(I have a mac running Mountain Lion with Xcode 4.5.2) I changed my username a while ago, and Xcode has started recreating xcuserdata directories with the new username at $path_to_.xcodeproj/xcuserdata/blackl.xcuserdatad . I've been working with it like that since, and I can't remember if anything seemed to have reset after the change, so whatever was in there must not have been too important… What does Xcode store in xcuserdata and what should I do about the old ones? There are some old projects I haven't opened since the change; I could just rename the directories in those. Newer projects

XCode 4 and XCode 3.2.6 side-by-side

与世无争的帅哥 提交于 2019-12-04 22:44:56
问题 I need to build one iOS app and one Mac OS app on the same machine. Mac OS app needs to run on 10.5, and even though Apple claims you can build with the 10.6 SDK and run on 10.5 by setting the right target value, it's not true. Simple things, like the name/version of libssl , are different on 10.5 and 10.6 which makes this impossible. Anyway, so I'm about to try and install XCode 3.2.6 on the same machine as I have XCode 4 on - any tips/gotchas/guides? Thanks! 回答1: That should work fine,

Why are my targets in Products colored red? [duplicate]

我们两清 提交于 2019-12-04 22:17:17
Possible Duplicate: .app file appears in red (missing) in new projects with Xcode 4 With seemingly no provocation, the three .app entries in the Products folder of my hierachy are listed in red. Show In Finder is greyed out when I right click them, even if I build them first (and building is successful, no errors). Any idea what's happening? Assuming that you are talking about iOS apps: Xcode shows only the .app built for the device in the Products folder. So if you clean the product and then build for Simulator, it will still be red. If you build for the device, Xcode will show it and "show

How to name a block of code and call it in a different method?

六月ゝ 毕业季﹏ 提交于 2019-12-04 21:39:10
问题 I use Grand Central Dispatch methods to do some executions of my app in a queue. I decide the frames for buttons in a calculation on that queue. I want my app to re-draw its scren and calculate new frames after rotation. Here is some pseudo code explanation from what i do: CGFloat a=123, b=24; dispatch_async(drawingQue, ^{ //needed loops to get the total button count-how many ones will be drawn et.. for(int x=0;x<someCount<x++){ for(int y=0;y<anotherCount;y++){ //needed frame&name ect

reloadData in MasterView from DetailView

北慕城南 提交于 2019-12-04 20:40:25
I ran into an issue similar to this earlier on the iPhone, but the same solution doesn't seem to apply to the iPad environment. My goal is to call my method forceReload , defined in my RootViewController, that will reload the countdown_table's data in the RootView from the DetailView once a modal is dismissed. forceReload works fine when called directly from the RootViewController, but I can't seem to point to point to the RootViewController from the DetailView. I've tried using RootViewController *root_view = [self.splitViewController.viewControllers objectAtIndex:0]; [root_view forceReload];