xcode4

Unable to connect to svn repository with XCode 4

限于喜欢 提交于 2019-12-06 06:28:38
After installing XCode 4 I went to the Organizer window to try to verify that the svn repositories that were set up in XCode 3 were recognized. The repositories were there but whenever I clicked on one I would always get the 'busy-wait' spinner. Thinking that XCode 4 didn't properly import the repository information, I went through the steps to re-create one of the repositories from scratch. I'm pretty sure I've input all the details correctly and I know I'm using the right password, but still all I'm seeing is the 'busy-wait' spinner. Beyond this, I don't know anything more about what the

How to create framework from Xcode 4 project?

北战南征 提交于 2019-12-06 06:20:27
问题 I want to use CHDataStructures as framework: https://github.com/davedelong/CHDataStructures. However there is no binary of the project. So I assume I have to build the .a file myself using xcode. How do I do that in xcode 4? I read the documentation but it is very confusing... Any ideas? 回答1: First we'll grab the CHDataStructures project: git clone https://github.com/davedelong/CHDataStructures.git Next, open the relevant CHDataStructures xcode project open CHDataStructures-iOS.xcodeproj I'll

Xcode 4 configure to use less RAM?

喜夏-厌秋 提交于 2019-12-06 06:19:44
I've been trying to use Xcode 4 on my 1GB Mac Mini. It's not a happy situation. It frequently slows way down, presumably due to memory shortages. Are there any settings I can change so it won't be such a memory hog? Todd Hopkinson Another post here suggests that the problem may be having the "predictive compilation turned on in the Xcode preferences." I ended up doing the following. None of them reduced Xcode's memory consumption, but they did reduce the memory needed by other programs, and hence solved my problem -- speed is fine now. Start using chrome instead of Firefox Turn off spotlight

Xcode 4 debugging

橙三吉。 提交于 2019-12-06 06:11:02
问题 since migrating to Xcode 4 I am totally perplexed by the debug view inasmuch as I am unable to see the values of arrays / dictionaries etc. Under Xcode 3 I could view debug console and see the actual values stored? 回答1: Debugging information now appears in the debug navigator (Cmd-5) and the debug area (Shift-Cmd-Y). You can have these areas show up by default when you run the application (or hit a breakpoint) by toggling the options in the "Behaviors" tab of Xcode's preferences. 回答2: To see

XCode 4 active architecture setting

会有一股神秘感。 提交于 2019-12-06 06:09:41
问题 I've updated the XCode to the latest 4 version (final). My project depends on a 3rd party library that was build for armv6. The problem is that i can not change the "active architecture" as it was in 3.x.x instead I see that during linking the active architecture flag is always passed as armv7. Does anyone know how to set active architecture for the build target (or for scheme) ? Thanks in advance. 回答1: Answering to myself ... Yes and no. You can not change the arc but you can trick the Xcode

FSMountServerVolumeSync parameter objective c

和自甴很熟 提交于 2019-12-06 06:06:36
I'm just starting Objective C after being pampered with Applescript, and I can't seem to get FSMountServerVolumeSync to work. This is going to seem like a completely beginner question, but how do you pass a parameter from a variable to this action ? Let me explain: I want to take a variable called *username and set it to the username in this action. I would also like to do this to *url and url . Is there any way someone could show me a sample of how to set this up, from an absolute beginner standpoint? I am currently reading through tutorials and etc., but I would like to get this section of

How do you return from an asynchronous NSURLConnection to the calling class?

╄→尐↘猪︶ㄣ 提交于 2019-12-06 06:06:02
问题 I've got the following class which makes an HTTP post request asynchronously to avoid problems on the main UI thread: @implementation DataFeeder -(void) doLookup:(NSString *)inputValue { NSString *myRequestString = [NSString stringWithFormat:@"val=%@", inputValue]; NSMutableData *myRequestData = [ NSMutableData dataWithBytes: [ myRequestString UTF8String ] length: [ myRequestString length ] ]; NSURL * myUrl = [NSURL URLWithString: @"http://mywebsite/results.php"]; NSMutableURLRequest *request

XCode 4.2. issue: Standard (armv7)

只愿长相守 提交于 2019-12-06 05:29:11
问题 I want to update my app in the App Store but when I try to upload it I get an error that armv6 is not supported in my app. The problem is I cannot even choose Armv6 as an Architecture. I have the following Architecture settings: Architectures: Standard (armv7) Base SDK: Latest iOS (iOS 5.0) Build Active Architecture Only : NO Valid Architectures : armv6 armv7 armv7f armv7k I thought because of 3 and 4 everything is set right. I can NOT change 1 for something else. What can I do? 回答1: It's

How to rename a project in XCode?

随声附和 提交于 2019-12-06 05:29:05
问题 There are some pretty horrible instructions out there for renaming projects in XCode. Is there no easy way to do this? 回答1: In Xcode 4 try this: ⌘+1, click the blue node with the project name, wait a second, click again (the name becomes editable). That's it. 回答2: In the menu bar choose Project -> Rename... It'll do all the hard work for you and rename everything that needs renaming apart from the folder that the project is in. 回答3: In XCode 4, select the project name at the top of the

Xcode is not using 'Header Search Path' to find my header files

会有一股神秘感。 提交于 2019-12-06 05:24:55
I have just downloaded and compiled curl. In my /usr/include folder I can see folder, 'curl' and I can see that I do, indeed, have '/usr/include/curl/curl.h'. However I cannot talk XCode into looking there when compiling. #import <curl/curl.h> In my target's properties I have included '/usr/include' to 'Header Search Paths'. The build continues to fail stating that it cannot find 'curl/curl.h' Am I not adding my search paths correctly? Thanks Rahul User Header Search Paths - searched for #include "..." and Header Search Paths for #include <...> . when we will provide its its frame work then it