xcode4

How can I hide resource forks and other special files in a workspace in Xcode 4's project navigator?

蹲街弑〆低调 提交于 2019-12-06 10:04:57
问题 I've noticed the resource forks ( ._filename ) and other hidden files like ._.DS_Store are shown in the project navigator when working on a "Workspace" project (Ruby). How can configure Xcode 4 to not display these files in the project navigator? 来源: https://stackoverflow.com/questions/5371963/how-can-i-hide-resource-forks-and-other-special-files-in-a-workspace-in-xcode-4

Routing audio input to receive from TOP microphone on iPhone

天大地大妈咪最大 提交于 2019-12-06 09:47:23
I am writing a little app to record multiple tracks and play them back over one another. I am using the PlaybackAndRecord mode and i am routing my output to the main speakers. Problem is that the bottom microphone is still being used for input as well so now I when I record I get the output from the other tracks really loud on the new track. Here is what I have so far: audioSession = [AVAudioSession sharedInstance]; [audioSession setCategory:AVAudioSessionCategoryPlayAndRecord error:nil]; OSStatus propertySetError = 0; UInt32 allowMixing = true; propertySetError = AudioSessionSetProperty

The relationship between Provisioning Profiles, Certificates, App IDs, and Keys

人走茶凉 提交于 2019-12-06 09:35:50
Right now I'm just trying to test my app on my phone and not deploy to the store. How are all these things related? Since I'm not trying to upload to the store, can I ignore any of them? I'm on the University Developer program. I was able to get a certificate and install it in Xcode, but builds still fail. Is solving this problem just a matter of changing the application identifier? How do I know what to put in? One thing I noticed is that in the Developer Portal I see only one App ID but it's for someone with a different name. So I guess I don't have an App ID. Do I need one if I'm just

NSXMLParser stops parsing after encountering special character

江枫思渺然 提交于 2019-12-06 09:11:38
I am reading a XML file from google weather api and parsing it using NSXMLParser. The city in question is Paris. Here is a brief xml output I get <?xml version="1.0"?> <xml_api_reply version="1"> <weather module_id="0" tab_id="0" mobile_row="0" mobile_zipped="1" row="0" section="0" ><forecast_information> <city data="Paris, Île-de-France"/> <postal_code data="Paris"/> <latitude_e6 data=""/> <longitude_e6 data=""/> ... ... Now the code I used to pares this xml is NSString *address = @"http://www.google.com/ig/api?weather=Paris"; NSURL *URL = [NSURL URLWithString:address]; NSXMLParser *parser =

Change 'enter' key behaviour in NSTableView

我是研究僧i 提交于 2019-12-06 09:05:50
I'm trying to create a simple data entry application for the Mac (not iPhone). It has an NSTableView (inside an NSScrollView) which contains an NSTextField into which the user keys data, line by line. What I have so far is working okay, except that in order to actually be able to type anything into the text field, you have to press the 'Enter' key first. Then when you press the 'Enter' key at the end, the field leaves 'edit' mode, but the highlight just sits on the same row. Having to press 'Enter', 'down arrow', 'Enter' between each row of data entered is not very efficient. What I would

How to debug “Xcode CodeSign error: The entitlements file Entitlements.plist is missing” in Xcode 4?

一个人想着一个人 提交于 2019-12-06 08:31:54
问题 Xcode throws this error when I try to CMD+I (Profile) an app on the device. Running is fine. Just profiling doesn't work and gives this error. The path to the Entitlements.plist is bogus and points to a location that doesn't exist anymore. I don't want to do Ad-Hoc Distribution, just profile my app on the device. I'm finding only Xcode 3.2 related resources about this issue. Has anyone else encountered this with Xcode 4 and found a solution? 回答1: Copy your Entitlements.plist file into the

Xcode — delete images are still getting built when building app

廉价感情. 提交于 2019-12-06 08:12:55
问题 I am trying to clean up my app before I submit it for apple approval, but I have an issue. I have delete some unwanted background images but the app seems to think they are still there. I have delete the app completely from the phone but when I build it is still there. The image has been completely remove from the Mac it doesn't exist anywhere not even in the simulator folder /Users/******/Library/Application Support/iPhone Simulator/5.0/*********/appname.app I can't seem to figure out whats

Xcode 4 and “SIGABRT” error? (only for iphone though)

戏子无情 提交于 2019-12-06 07:31:20
问题 I'm new to ios development and to stackoverflow. I did try searching both stackoverflow and google before posting. I built a simple little app, originally just left it an iphone only app, but decided to make it universal in the end. I, stupidly, was messing around when i was getting to know xcode 4 and switched it to universal and then back again so i had to recopy the project and do it again. This time i started it with a universal app. (Not when i created it but after i went to project and

Xcode semantic issue “Initializer element is not a compile-time constant ”

僤鯓⒐⒋嵵緔 提交于 2019-12-06 07:26:53
I have this Error with calling NSMakeRange method. What I'm doing wrong? #import <Foundation/Foundation.h> // NSRange range1 = NSMakeRange(12, 5); yuji When you initialize a variable outside of a function or method, you can only use constant values: you can't execute any code. Here the problem is that you're trying to execute NSMakeRange . (See the answers to this question , which is similar). The solution is to declare range1 but not assign any value to it, and then implement an +initialize method that sets the value. initialize is a class method that is invoked before any other methods are

Xcode 4 - ready for production use? Also, console window behaviour [closed]

早过忘川 提交于 2019-12-06 07:17:01
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 7 years ago . (Currently using Xcode 3.2, hesitant to move to a newer version until it's stable and practical, but am about to start on new projects.) Q. Is the Xcode