[iphone sdk] audio queue programming problem

hello everyone, this is my first post. i am new to mac/iphone programming and need some help.
i am trying to play a simple .wav file in my iphone app and can't get it to work. here is my code.
//here is the structure i use to keep track of the data
typedef struct AQPlayerState {
AudioStreamBasicDescription mDataFormat;
AudioQueueRef mQueue;
AudioQueueBufferRef mBuffers[3];
AudioFileID mAudioFile;
UInt32 bufferByteSize;
SInt64 mCurrentPacket;
UInt32 mNumPacketsToRead;
bool mIsRunning;
} AQPlayerState;
//here is the callback function
static void HandleOutputBuffer(void *aqData, AudioQueueRef inAQ, AudioQueueBufferRef inBuffer)
//typecast the AQPlayerState struct
AQPlayerState *pAqData = (AQPlayerState *)aqData;
//if it's already done playing, return
if(pAqData->mIsRunning == true)
return;
//set up the read data
UInt32 numBytesReadFromFile;
UInt32 numPackets = pAqData->mNumPacketsToRead;
//read in from the audio file
OSStatus status1 = AudioFileReadPackets(pAqData->mAudioFile, false, &numBytesReadFromFile, NULL, pAqData->mCurrentPacket, &numPackets, inBuffer->mAudioData);
//set the number of packets in the buffer
inBuffer->mAudioDataByteSize = numBytesReadFromFile;
//increment the packet index
pAqData->mCurrentPacket += numPackets;
//enqueue the data
OSStatus status2 = AudioQueueEnqueueBuffer(inAQ, inBuffer, 0, NULL);
//stop the playback if needed
if(numPackets == 0)
AudioQueueStop(inAQ, false);
pAqData->mIsRunning = false;
//here is where i create the audio queue and buffers
//open the audio file
NSString *nspath1 = [[NSBundle mainBundle] pathForResource:@"song" ofType:@"wav"];
CFStringRef path1 = CFStringCreateWithCString(NULL, [nspath1 UTF8String], kCFStringEncodingUTF8);
CFURLRef url1 = CFURLCreateWithFileSystemPath(NULL, path1, kCFURLPOSIXPathStyle, NULL);
//open the file and get the data format
OSStatus status1 = AudioFileOpenURL(url1, fsRdPerm, 0, &aqData.mAudioFile);
UInt32 dataFormatSize = sizeof(aqData.mDataFormat);
AudioFileGetProperty(aqData.mAudioFile, kAudioFilePropertyDataFormat, &dataFormatSize, &aqData.mDataFormat);
//create the output queue
OSStatus status2 = AudioQueueNewOutput(&aqData.mDataFormat, HandleOutputBuffer, &aqData, CFRunLoopGetCurrent(), kCFRunLoopCommonModes, 0, &aqData.mQueue);
//get the max packet size
UInt32 maxPacketSize;
UInt32 propertySize = sizeof (maxPacketSize);
AudioFileGetProperty(aqData.mAudioFile, kAudioFilePropertyPacketSizeUpperBound, &propertySize, &maxPacketSize);
//set the buffer size and how many packets to read each time
aqData.bufferByteSize = 44100 * 4;
aqData.mNumPacketsToRead = aqData.bufferByteSize / maxPacketSize;
//set the current packet to be read, create the buffers and prime them
aqData.mCurrentPacket = 0;
for(int i = 0; i < 3; i++)
OSStatus status3 = AudioQueueAllocateBuffer(aqData.mQueue, aqData.bufferByteSize, &aqData.mBuffers);
HandleOutputBuffer(&aqData, aqData.mQueue, aqData.mBuffers);
//set the gain and start playback
AudioQueueSetParameter(aqData.mQueue, kAudioQueueParam_Volume, 1.0);
AudioQueueStart(aqData.mQueue, NULL);
//here is the code right below of where i create the queue and buffers
NSString *nspath = [[NSBundle mainBundle] pathForResource:@"white" ofType:@"png"];
CFStringRef path = CFStringCreateWithCString(NULL, [nspath UTF8String], kCFStringEncodingUTF8);
CFURLRef url = CFURLCreateWithFileSystemPath(NULL, path, kCFURLPOSIXPathStyle, NULL);
CGDataProviderRef provider = CGDataProviderCreateWithURL(url);
whitePNG = CGImageCreateWithPNGDataProvider(provider, NULL, true, kCGRenderingIntentDefault);
now, when it runs and, all of the audio function return a value of 0, which means successful, right? what happens is that it gets to the last line i listed (starting with whitePNG = ) and i get a BAD_ACCESS message in the debugger. that code worked just fine before i added the audio stuff, so i don't understand why it's broke now.
if i comment out the enqueue function in the callback, it will run just fine, but the return value of that is not an error, so i don't understand. i am completely new to audio programming, so i need some help. is the buffer size and packet read size wrong? i'm confused. i am trying to play a .wav file that is 16 bit, 44100 PCM.
please help, i don't see anything wrong with the code.
Message was edited by: jharkey

//if it's already done playing, return
if(pAqData->mIsRunning == true)
return;
this is actually
//if it's already done playing, return
if(pAqData->mIsRunning == false)
return;
i had that typed wrong in the code, but after i changed it i still get the errors.

Similar Messages

  • IPhone SDK (Beta 5) - AudioQueue Problem playing MP3

    Dear community,
    i have a problem using the iPhone SDK (Beta 5). I want to playback a simple MP3-file. So i checked a lot of examples, read documentation and found a least the "AudioQueueTest" example. This is an simple example which is able to play MP3, WAV, ... from the command line. I ported the example to a simple application on the iPhone. Now the problem:
    If i playback a WAV file in the iPhone simulator, everything works fine. If i want to playback an MP3 file, it doesn't work and i don't know why. I stepped through the debugger and found out that the application freezes at the command "AudioQueueNewOutput".
    Do you have the same problem? What i am doing wrong? Is it no possible to create a background thread playing back a local MP3 file?
    Thank you!

    Did you get PCM recording on actual iPhone hardware? With Beta5, my PCM recording works fine in the simulator, but on the hardware, all the buffers I receive contain only 4 bytes of audio data!
    Here's my source code - if anyone can spot anything wrong, I'd be enormously grateful!
    #import "AudioAppDelegate.h"
    #import "AudioViewController.h"
    #import "AudioToolbox/AudioQueue.h"
    #define BUFFER_CT 4
    #define BUFFER_BYTES 8192
    AudioQueueRef audioInQueue;
    static void AudioInCallback(void* aqData,AudioQueueRef aq,AudioQueueBufferRef buffer,const AudioTimeStamp* startTime,UInt32 numPackets,const AudioStreamPacketDescription* desc)
    OSStatus result;
    printf("received %d bytes\n",buffer->mAudioDataByteSize);
    result=AudioQueueEnqueueBuffer(audioInQueue,buffer,0,NULL);
    if(result)
    printf("AudioQueueEnqueueBuffer returned %d\n",result);
    static void StartAudio(void)
    OSStatus result;
    AudioStreamBasicDescription format;
    // 11KHz, 16-bit stereo
    memset(&format,0,sizeof(format));
    format.mSampleRate=11025;
    format.mFormatFlags=kLinearPCMFormatFlagIsSignedInteger | kAudioFormatFlagIsPacked;
    format.mFormatID=kAudioFormatLinearPCM;
    format.mBytesPerPacket=BUFFER_BYTES;
    format.mBytesPerFrame=4;
    format.mFramesPerPacket=format.mBytesPerPacket / format.mBytesPerFrame;
    format.mChannelsPerFrame=2;
    format.mBitsPerChannel=16;
    result=AudioQueueNewInput(&format,AudioInCallback,NULL,CFRunLoopGetCurrent(),kC FRunLoopCommonModes,0,&audioInQueue);
    printf("AudioQueueNewInput result was %d\n",result);
    for(int i=0;i<BUFFER_CT;i++)
    AudioQueueBufferRef buffer;
    result=AudioQueueAllocateBuffer(audioInQueue,format.mBytesPerPacket,&buffer);
    printf("AudioQueueAllocateBuffer result was %d\n",result);
    result=AudioQueueEnqueueBuffer(audioInQueue,buffer,0,NULL);
    printf("AudioQueueEnqueueBuffer to in result was %d\n",result);
    Float32 gain=1.0;
    AudioQueueSetParameter(audioInQueue,kAudioQueueParam_Volume,gain);
    result=AudioQueueStart(audioInQueue,NULL);
    printf("AudioQueueStart result was %d\n",result);
    }

  • IPhone SDK 2.2: Localization problem?

    Can anybody replicate that Localizeable.strings no longer work?
    Set up:
    - SDK 2.2 final installed.
    - Localizeable.strings in de.lproj and en.lproj.
    - Compiled Debug for OS 2.1.
    - Works perfectly fine for both languages on Simulator.
    - Does not work on 3G device.
    Can anybody duplicate problems with Localizeable.strings? Any hints?

    Can anyone confirm that this is the problem, and that this solves the problem? I haven't had a chance to try it myself. I saw on another forum, which was in Russian so I'm not sure I understood it all correctly, that there was an issue where the SDK wants the files to now be called Localizable.strings.<some number>. So I'm wondering if that is just an incorrect item, or if there may perhaps be multiple solutions?

  • IPhone SDK - post bugs and problems with the Firmware...

    So far I'm noticing issues with the 2.0(5A225c) build of the OS.
    Everything is much slower than it used to be for one. I have a simple UIViewController with a table with only 9 text elements. It doesn't even fill the screen and it scrolls like a snail. My app runs so slow, but I can't tell if it's a performance issue in my app, or a debug firmware. Even the slider to unlock is slow and so is scrolling in all OS menus.
    I also noticed in Contacts that the fast slider on the right appears but does not respond to touches. So much for actually using my phone for the next few months. I hope they fix some of this stuff soon.
    Anyone else noticing issues?

    What a relief! I can also confirm that this build is very slow. I am writing a game called Trism (www.demiforce.com for info) which makes use of layered UIImageViews for the game pieces, scoring, borders, and so on. When beta 2 arrived, I got really disheartened because suddenly everything was moving much more slowly. I initially thought the slowdown was because of some fault in my code, which led me to learn some lower-level CoreAnimation and Quartz stuff, which has got the speed back around where it was originally.
    We can only hope the slowdown is due to new features of the OS needing to be tightened up a bit, and not as a sign of things to come. Nevertheless, I encourage other developers out there to take a look at using different implementations if need be. Specifically, if your views or text labels don't require the heavy animatable features of the UIView class, try taking a look at using the lower-level CALayer class and see if that helps your performance.

  • IPhone SDK UISegmentedControl and hiding view

    Hello,
    Im slowly getting to grips with the iPhone SDK but having a problem today, I have a UISegmentedControl setup to a toggleSetting function but this toggleSetting calls a url in the background for some data, but this freezes my application while the web request is taking place, this can take around 2 seconds and so I made another view (loadingView) with a loading screen thats animated and I want to show this whis the connection is taking place and then hide it again once complete.
    I don't have any problems with showing or hiding the view until the web request happens.
    When my app loads I call \[loadingView setHidde:YES] which hides my view straightaway, then my toggleSettings method is below, but this does not cause the view to show while the quest is taking place, I think it is showing an hiding it instantly as if I just ask to show it, it will show but only after the web call is complete. Anyone got any pointers???
    <code>
    -(IBAction)toggleSetting:(id)sender
    [loadingView setHidden:NO];
    UISegmentedControl *segmentedControl = (UISegmentedControl *)sender;
    NSInteger segment = segmentedControl.selectedSegmentIndex;
    if(segment==0) {
    NSURL *url = [NSURL URLWithString:@"http://myurl"];
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    [NSURLConnection sendSynchronousRequest: request returningResponse: nil error: nil ];
    [loadingView setHidden:YES];
    </code>

    I don't have code handy but take a look at the class reference for NSURLConnection and related calls.
    NSURLConnection *theConnection = [[NSURLConnection alloc] initWithRequest:urlRequest delegate:self startImmediately:YES]; would be a good start.
    You want to use a call that will create some callbacks to update you when a connection is confirms, how many bytes are transfered, etc. so be sure to write the call functions.

  • IPhone SDK installation problem

    Hi All,
    I have a problem installing the iPhone SDK.
    In the installation process, "Installation Type" page, the page you can choose modules either you want to install or not. I see "iPhone SDK" module is listed, but i couldn't select it, it's greyed out and it is not checked by default. So i had to continue like this, after installation, i couldn't open any iPhone sample code at all. XCode said i don't have iPhone SDK installed.
    I downloaded the SDK from ADC days ago.
    I upgraded my mac to 10.5.4, also upgraded iTunes to 7.7
    are there any other prerequisites?

    excuse me i'm quite new to this community.
    you mean the iphone sdk can not be installed on apple's own hardware?
    is apple switching the focus to x86 architecture? are there any background information that i should take a look at?
    appreciate it.

  • IPhone SDK Download Problems

    I have just made the account and started the long download process for the iPhone SDK. When I download the file and it completes the process, I click on it and it says Disk Image not able to mount. I tried that three more times and it still won't open. Any suggestions?

    Another victim here. Happily started downloading iphone SDK just after purchasing my new MacBook and it always stops at 2.1 GB. And of course it is corrupted.
    For those who are thinking about OS or firewalls, here are my trials:
    1. From my MacBook at home
    2. From my HP laptop at home
    3. From my desktop at home
    4. From my HP laptop at work
    5. From my Ubuntu at home
    6. From my Ubuntu virtual machine at work.
    Do you think it is still a client problem? Or the version on the server is corrupted?

  • IPhone SDK with iPod Touch 2G problem

    I installed the SDK last night but when I went to plug in my iPod Touch 2G, I got the error message: 'Unable to locate a suitable developer disk image. Please re-install the SDK'
    I have reinstalled the SDK many times but still get the same error message. Any help appreciated.
    Thanks

    {quote}He's talking about the iPod Touch, not a regular iPod{quote}
    Yep, I know. Do a Google search for "Unable to locate a suitable developer disk image". Found this on the comments of [this blog post|http://www.tbradford.org/2008/03/iphone-sdk-beta-2-possible-ppc-fix.html]:
    {quote}
    If anyone else runs into the "Unable to locate a suitable developer disk image." problem, there's a package called "DeveloperDiskImage" in the iPhone SDK that needs to be installed.
    As of 2.1, these are the extra packages that you need to install manually:
    iPhoneSDKHeadersAndLibs
    iPhoneSimulatorPlatform
    iPhoneHostSideTools
    iPhoneDocumentation
    DeveloperDiskImage
    {quote}
    Another [blog post|http://khakionion.blogspot.com/2008/09/iphone-sdk-21-doesnt-include-ipod-t ouch.html#links] says:
    {quote}
    The problem is that the huuuuuge iPhone SDK 2.1 installer doesn't come with the iPod touch 2.1 firmware image. Suck. Fear not, though: All you have to do is force iTunes to do a firmware restore, which will download the appropriate image. On next launch, Xcode will find it and everything will work great.
    {quote}

  • Problem in iPhone SDK Sample: [CrashLanding ]

    iPhone SDK build : build 9M2199a
    Sample: CrashLanding
    Version: 1.7
    OpenGL swap buffer method seems to fails sometimes resulting in a crappy blink display. The display seems split into two images. The screen goes messy, I can view the backbuffer blinking over frontbuffer with no drawing update on it.
    Thanks,
    Julien Meyer
    Jadegame.com

    I developed my application based on the CrashLanding sample. I have inherited the same rendering failure. The swap occurs, but it's presenting stale data for one of the frames. The stale data appears to be the first frame rendered. The failure occurs either immediately, or not at all. Restarting the application usually makes the problem go away.
    Has anyone determined a fix for this?
    Thank you,
    Joel-

  • IPhone SDK 3.1: Problem compiling first Hello World App

    Hi,
    I am new to XCode, Mac OS and iPhone Development.
    I had already installed the earlier iPhone SDK (version prior to the latest 3.1) into my Mac OS 10.6. I was not able to run
    the hello world program through xCode as while opting for Build and Run, the simulator it was giving me an error saying that it cannot find the right SDK.
    I had assumed that the old SDK is not compatible with the new Mac OS 10.6 (Snow Leopard). I had then uninstalled the old
    iPhone SDK using Terminal tool, using the command line given in the xCode uninstall guide.
    Installed the latest iPhone SDK (version 3.1), and then tried to compile the hello world app through xCode. Now I am getting the following error:
    *error: can't exec '/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2' (No such file or directory*)
    I had located the above mentioned directory and could not find the file: "gcc-4.2" as mentioned in the error. Instead
    executable files like "i686-apple-darwin10-gcc-4.2.1" are present there.
    My Project Settings are:
    Project Format - xcode 3.2 -compatible
    Base SDK - iPhone Simulator 3.1
    Compiler Version - System Default (GCC 4.2)
    I am totally confused here, as I don't know how to correctly set up the ENV, as I thought the iPhone installer SDK does that automatically.
    Please help me out.
    Thanks in advance for your time,
    JC.
    Error Messages:
    Build helloworldxc of project helloworldxc with configuration Debug
    ProcessPCH /var/folders/P-/P-zMg0EzHree36VYyqKEvU+TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/helloworldxcPrefix-gylsydenhucpkgfnujlgvzvhfhzd/helloworldxcPrefix.pch.gch helloworldxc_Prefix.pch normal i386 objective-c com.apple.compilers.gcc.4_2
    cd "/Users/jaideepchakravorty/Jaideep/R&D/helloworldxc"
    setenv LANG en_US.US-ASCII
    setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr /bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -x objective-c-header -arch i386 -fmessage-length=0 -pipe -std=c99 -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -D_IPHONE_OS_VERSION_MINREQUIRED=30000 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1 .sdk -fvisibility=hidden -mmacosx-version-min=10.5 -gdwarf-2 -iquote /Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/build/helloworldxc.build/Deb ug-iphonesimulator/helloworldxc.build/helloworldxc-generated-files.hmap -I/Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/build/helloworldxc.build/D ebug-iphonesimulator/helloworldxc.build/helloworldxc-own-target-headers.hmap -I/Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/build/helloworldxc.build/D ebug-iphonesimulator/helloworldxc.build/helloworldxc-all-target-headers.hmap -iquote /Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/build/helloworldxc.build/Deb ug-iphonesimulator/helloworldxc.build/helloworldxc-project-headers.hmap -F/Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/build/Debug-iphonesimulato r -I/Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/build/Debug-iphonesimulato r/include -I/Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/build/helloworldxc.build/D ebug-iphonesimulator/helloworldxc.build/DerivedSources/i386 -I/Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/build/helloworldxc.build/D ebug-iphonesimulator/helloworldxc.build/DerivedSources -c /Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/helloworldxc_Prefix.pch -o /var/folders/P-/P-zMg0EzHree36VYyqKEvU+TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/helloworldxcPrefix-gylsydenhucpkgfnujlgvzvhfhzd/helloworldxcPrefix.pch.gch
    while compiling hellowworldxc_Prefix.pch,
    error: can't exec '/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2' (No such file or directory)

    Could you let me know as where is the xcode setting through which it is looking for the compiler in the following path ? This path is probably wrong (Pls refer to the error messages)
    I'm not sure this will be of any help to you -- I'm not sure if it's the answer you're looking for, since I don't really know enough on the subject. However, this may answer your question, or at least maybe help you find the answer for yourself, so it's worth a shot. Try going to Edit Project Settings in the Project menu, and once the Project Settings open, select the Build tab. Search through this and see if you find any preferences along the lines of what you are looking for. In particular I would try the sections toward the bottom about the GCC 4.0 compiler. Sorry if this was a waste of time, but I wanted to try...

  • Problems downloading iPhone SDK

    I just recently signed up for an Apple Developer account and am trying to download the iPhone SDK. When I start the download it never actually downloads and eventually times out. My problem is also described in these threads:
    http://discussions.apple.com/thread.jspa?messageID=11033796&#11033796
    http://discussions.apple.com/thread.jspa?messageID=11000681&#11000681
    In those threads I have tried the fixes and still been unable to accomplish the download.
    I have tried on computers running Vista and Windows 7 and on my Mac running Snow Leopard.
    On Windows (either one) after clicking on the link it comes up with the file information, I click save, and then the file download dialog opens. No transfer rate ever appears and neither does any indicator that I have downloaded any of the file. Eventually it times out.
    On the Mac I tried downloading with Safari. Safari gets 1.1kb of the file and then tells me it will be many, many years before the download completes and eventually errors out that the server has not responded.
    I currently have a 7 mb DSL connection. I am able to download any other file in the developer release section including X-Code and the Mac SDKs. In fact I have installed both X-Code and the Mac SDKs already and they were fine.
    Other things I have tried:
    1. Multiple browsers on Windows (Firefox, Chrome) with similar errors.
    2. Hooking straight into the modem (normally hooked into wireless N router)
    3. Disabling the modem firewall and Windows Firewall (Macs firewall is off by default. Is that normal?)
    4. using the trick from the other threads of changing http to https. For me it makes no difference.
    5. My work computers (with the same ISP) have no problems downloading the file. However with no disc drive, and with the USB ports disabled that doesn't really help me much. I only tried to see if they would work with my login since another thread suggested some users were being cut off.
    Something else I do not understand is why I have to download the SDK with X-Code. Since I already have the latest version installed it seems like Apple could be saving on bandwidth there. No big deal but just kind of strange.
    Any help anyone could give me would be appreciated.

    Alright it turns out it was actually the DSL modem. Apparently the last major firmware update causes it to have problems downloading specifically from Apple servers. Both iTunes HD content and large downloads from Apple servers are unable to be downloaded. SD content, music, and downloads under roughly 1 gb are unaffected.
    The modem is the 2Wire 2701. I actually managed to find an older modem that worked and downloaded the SDK fine. At this point I am looking around for a new modem just so in the future I will be able to download updates etc.
    Also after a lot of searching it turns out that Qwest doesn't cap their service at all. Even the one report with a limit I turned up turns out that it was either true only back then or was part of a trial that ended. At this point Qwest does not cap at all.
    Take a hint if you are going to respond to a post try to be helpful. If you are not actually going to help troubleshoot don't both.
    But you did use an emoticon. So at least you were useless . . . with style.

  • Iphone developer program or free iphone sdk - where is the difference?

    I am a bit confused.
    on one hand I can download the free iphone sdk on the other hand there is the $99 iphone developer program.
    where is the difference?

    And the Developer Program isn't the computer kind of program. It is the other kind, meaning "a plan or system under which action may be taken toward a goal." It is how Apple tracks those who want seriously want to distribute to through the iApp Store.

  • Problems building w/ Snow Leopard and iPhone SDK 3.0 Snow Leopard

    Suddenly having problems building and codesigning after upgrading to Snow Leopard and iPhone SDK 3.0 Snow Leopard.
    Profile set to Distribution, Device 2.2.1 Distribution, as has worked in the past.
    The build fails with this error:
    Command <com.apple.tools.product-pkg-utility> failed with exit code -1
    The below section is highlighted in Build Results.
    ProcessingProductPackaging /Users/harvey/Documents/iPhoneApp_Work/Listening-Hiragana/iPhone_Comprehension_timerharvey/entitlements.plist "/Users/harvey/Documents/iPhoneApp_Work/Listening-Hiragana/iPhone_Comprehension_timer_harvey/build/iPhoneComprehension.build/Distribution-iphoneos/Kana Listening.build/iPhone_Comprehension.xcent"
    cd /Users/harvey/Documents/iPhoneApp_Work/Listening-Hiragana/iPhone_Comprehension_timerharvey
    setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/u sr/bin:/bin:/usr/sbin:/sbin"
    <com.apple.tools.product-pkg-utility> /Users/harvey/Documents/iPhoneApp_Work/Listening-Hiragana/iPhone_Comprehension_timerharvey/entitlements.plist -entitlements -format xml -o "/Users/harvey/Documents/iPhoneApp_Work/Listening-Hiragana/iPhone_Comprehension_timer_harvey/build/iPhoneComprehension.build/Distribution-iphoneos/Kana Listening.build/iPhone_Comprehension.xcent"
    Any ideas? This is really strange.
    The same error occurs when trying to build for Device - 3.0, and any other version it seems.
    This is especially frustrating as I'm simply trying to update an app that I released before I upgraded.
    I will love whoever helps me forever and ever.
    saikyo

    Found the new SDK on the CD. Now I am running XCode 3.2.
    I'm talking to myself now for the benefit of future readers.
    On the Dev Center I see the note:
    "Important: You will need to re-install the iPhone SDK for Snow Leopard if you plan on developing iPhone applications after upgrading your Mac to Snow Leopard and installing Xcode 3.2."
    So I'm going to download and install the iPhone SDK 3.0 (Snow Leopard) from the SDK downloads area on the Dev Center page. This seems weird to me as it's 3.0... but I'm running 3.2 now... I guess this will just update my 3.2?
    I also notice that when I run XCode 3.2 I don't have Simulator as an option anymore in my profiles.
    Going to go ahead with the update now and see how it goes.

  • IPhone 5 audio jack problems

    My iPhone 5 audio jack seems like it's broken or something. Every time I put my headphones in and I move them a little bit the music either pauses, changes into a different volume , only plays on one side ,or sounds like static. Is is broken? If so can it be fixed? Also it isn't the earbuds since it did the same thing when I use a brand new pair!

    Bring your phone to Apple for evaluation.  If defective, it will be replaced (free of charge if within the warranty period)

  • Problem in set selectedTextcolor in uitableview cell in iPhone SDK 3.1.2

    Hello,
    I set selected text color in uitableview cell using cell.selectedTextColor = [UIColor whiteColor]; for iPhone SDK 2.2.1.
    Now i use iPhone SDK 3.1.2, So for that i make change as per documentation for that i use textLabel properties. But selectedTextColor is not exit.
    So Now for SDK 3.1.2 how to set selectedTextColor?..
    Thank you.

    The textLabel property is an instance of UILabel, so it has its own textColor, textAlignment, and font properties. E.g.:
    cell.textLabel.text = @"foo";
    cell.textLabel.textColor = [UIColor whiteColor];
    cell.textLabel.textAlignment = UITextAlignmentLeft;
    Hope that helps!
    - Ray

Maybe you are looking for

  • [Theme] Black75 for N9

    NOTE: While this does not void a warranty, if you are not familiar or comfortable with using terminal or flashing (just in case), you may be best to just looky-loo here. Anything released here is tested and does not "break" the device. Remember, anyt

  • Connecting 2010 iMac to 46" HDTV Overscan Issues

    I have an 2010 iMac and I have purchased a Display Port to HDMI adapter and a HDMI cable connecting to my Sony Bravia 46" HDTV. My question has to deal with overscan issues when it is displaying on the TV, How exactly can I resolve this problem. Than

  • Why has my Mac re-arranged my Logic files?

    I wiped my Mac's hard drive the other day pending installation of Snow Leopard and re-installation of all my software. Having now installed the operating system, it seems all Logic project folders on external drives have somehow been re-arranged for

  • All the passwords I have do not work. i do not understand what is needed.

    need a pasowrd that will work all the passwords I have donot work?  do not understand what is wanted.

  • How much faster or better is the new iMac... really?

    Hello all, I have a 20" 2.33Ghz C2D iMac w/256Meg video RAM, and 3Gig of RAM. I understand that many factors come in to play when you compare the over all speed of a computer. How much faster, over all, is the new iMacs over the system I have? Has an