[iPhone SDK beta 7] screen capture error?

As of beta 7 of the SDK, I get the following error when I try to capture a screenshot of my device via Xcode: "Could not communicate with the device, connection failed".
Anyone else encounter this? Or is it working for you?
Thanks.
Message was edited by: Abra Dabra

Me, too. Xcode 3.1. I am using the old-fashioned screen capture technique (holding power while pressing home), but it's not nearly as nice and the fact I can't do the other worries me a bit.
Has anyone been able to do this since iPhone 2.1 came out?

Similar Messages

  • IPhone SDK Beta 4 - How to send emails with attachments?

    Hello everyone!
    This is my first post Please be so kind to point me in the right direction.
    Using the official iPhone SDK Beta 4, I am trying to show the compose email screen not only with a subject and body fields, but also with an attached PDF file that I generated. I know that many apps available in the Installer.app can do that, but can the SDK do that as well?
    Generating a mailto URL doesn't seem to be the answer since the RFC 2368 doesn't support attachments as far as I understand. All my attempts to hard-code a mailto URL that could trick the Mail application into composing a message with an attachment have failed...
    Could you give me a hint or maybe copy paste some code to help me with attaching files to emails?
    Thank you so much in advance,
    Eugene

    I tried the following :
    NSError *error;
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *documentsDirectory = [paths objectAtIndex:0];
    NSString *path = [documentsDirectory stringByAppendingPathComponent:@"export.csv"];
    if ([records writeToFile:path atomically:YES encoding:NSUTF8StringEncoding error:&error] == NO) {
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Export error" message:@"An error occured while writing the file."
    delegate:self cancelButtonTitle:@"OK" otherButtonTitles: nil];
    [alert show];
    [alert release];
    static NSString *email = @"[email protected]";
    NSString *outMailtoPath = [NSString stringWithFormat:@"mailto:%@?subject=Review&body=%@&attachment=%@", email, @"test", path, nil];
    NSURL *url = [NSURL URLWithString: [(NSString *)CFURLCreateStringByAddingPercentEscapes(NULL, (CFStringRef)outMailtoPath,NULL,NULL,kCFStringEncodingUTF8) autorelease]];
    [[UIApplication sharedApplication] openURL:url]

  • 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);
    }

  • Screen capture error

    Hi there, after upgrading a MacPro to 10.6.8 I get an error when I make a screen capture using the standard cmd/shift/4 in the Finder. A dialog panel is stating that the screen capture can't be saved. Now I have to launch ScreenCapture and work from thare. However it is working on my MacBookPro running 10.6.8. What am I missing?

    Anyone?

  • Screen capture error, using "ctrl command shift 4"

    when I captured the screen using "ctrl command shift 4", the captured picture is cracked. but when using "command shift 4", the captured picture is fine.
    like below
    How can I fix it?

    use CMD  Shift 4
    better still use a FREE screen capture APP like ducklink
    http://www.ducklink.com/p/free-screen-capture-tool-on-mac/
    Best one is the APP SnapNDrag I use all the time.
    http://download.cnet.com/SnapNDrag/3000-2094_4-40913.html

  • IPhone can no longer screen capture

    I used to be able to perform a screen capture by pressing the home button at the same time as the power button. I don't know why, but that no longer works. Can anyone tell me what to look for or do to restore this useful feature?

    I found that the screen capture function works again after I restart the iPhone. Same thing if I reboot the iPhone as you described. Thank you.
    The problem comes back however after a few tries. Here is what I'm doing to recreate the problem:
    I have an app called PhotoTropedelic. It posterizes an image in bright and contrasty colors. I like playing with some of my photos in this way. The app does this by stages so you can see the first several layers of color being applied and then successive layers are added on until the image is complete. Sometimes the image looks interesting in the early stages of development in this process so I make a screen capture at any point along the way.
    That works for two or three times and then the screen capture function ceases to work.
    Thanks for your suggestion

  • IPhone SDK Beta 2 Interface Builder Add a UIViewController

    Hi,
    I am trying the new SDK (beta 2). I didn't try the beta 1 before, because of the lack of IB. However, I am having a problem when trying to code a simple Hello World with a button, with a classic MVC design.
    If I use a UIViewController as a view controller, it compiles fine, but when I hit the button, it crashed. If I code it, or if I subclass the UIView and use it as a view controller, it works.
    Is there any difference of coding compared to a "classic" cocoa app ?
    I hope everything is clear.
    Thanks for your help.
    Have a great day.

    scottjg wrote:
    I've written a tutorial on how to setup a basic Hello World MVC app at: http://ihatetheiphonesdk.blogspot.com
    hope it helps!
    thanks. That helped me!
    A couple of issues though:
    1. I could not "*right click*" and bring up the outlet popups. I had to control-click to do that.
    2. the steps for connecting up outlets for viewController and window did not exist already for me as selectable outlets
    "-Connect our App Delegate's viewController outlet to our view controller, and the window outlet to our window:"
    I added them manually to the app delegate and then ran the connections. Then, I had to add
    +" IBOutlet UIWindow *window;+
    +IBOutlet UIViewController *viewController;"+
    to my HelloWorldAppDelegate.h file (along with any other code that I compared to your files)

  • Interface Builder not starting (iPhone SDK beta 6)

    Hi,
    I have upgraded my OS to 10.5.3, uninstalled SDK beta 5 and installed SDK beta 6. Since then I cannot start Interface Builder (the icon bounces 3 or 4 times and the application hangs). I tried to reinstall it again and nothing changed.
    Is that a known problem with beta 6? I have a friend who does not experience this problem. Any workaround?
    Thanks and best,
    Rodrigo

    How can it be possible? you invest some money believeng you will start something great and develop allied with the biggest intrepeneur of the world,and... boom. what you see.... isnt really what u get. Why this beta 6/7 Interface Builder crashs when u scroll around too see some v2.0 aspects of the i-phone? just some secret aspects or a little glitch on the final build ? lets see if we can have a taste for it... i was really anxious...

  • IPhone SDK beta 4: error running app on device

    My app ran fine on my iPhone up until beta 4. I've fixed in in accordance with the changes to the SDK, and it runs perfectly on the simulator. I've also followed the directions in the Program Portal to use code signing for the app.
    When I try to compile it for the device, I get the following errors:
    cc1obj: error: /var/folders/pA/pAvrzjzKGQe5O6saRJWAXE+TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/iCrosswordPrefix-ayguzoobuyunjzbvsayctaqnkcfp/iCrosswordPrefix.pch: No such file or directory
    cc1obj: error: one or more PCH files were found, but they were invalid
    cc1obj: error: use -Winvalid-pch for more information
    I get about 7 copies of those errors, once per header file in my app.
    Does anyone know what this means, or how to fix it?
    Thanks,
    Eliza

    Sorry, I'm an idiot; I didn't clean my targets before compiling. After cleaning targets, it installed and ran without any trouble.
    Message was edited by: Eliza Block

  • IPhone SDK Beta and Unix Tools

    Does anyone know how to compile Unix tools for the iPhone with the SDK? All I seem to be able to find is, "install the toolchain". That doesn't help.
    Specifically, I'd like to compile ettercap-ng. I know ettercap has ARM sources and even an ARM .deb in the apt-get repo (for debian). Given all that, it shouldn't be hard to do.
    I've already got some dev tools on my actual iPhone, and I can use a terminal emulator to issue the compile and make commands.
    I'm trying to compile ettercap-NG 0.7.3, and every time I do, (cd /{ettercap source here} && ./configure) I get:
    checking whether make sets $(MAKE)... (cached) yes
    checking how to run the C preprocessor... /lib/cpp
    configure: error: C preprocessor "/lib/cpp" fails sanity check
    See `config.log' for more details.
    Seeing as that's as far as I seem to be able to get on the actual handset, does anyone know how to use the SDK on a MacBook (Leopard 10.5.3 so on and so forth) to do it, and then transfer it over?

    Mark, You have to be a registered iPhone developer to have the beta level firmware that allows direct access to the iPhone via the SDK. As far as accessing the BSD file structures the only way AFAIK thats currently possible is to hack the phone. And of course we cannot discuss that on this forum....
    Try over here: http://www.appstoredeveloper.com/forum/index.php?sid=fdd5a5f29c264bd57440ba989ee 4b054
    or here: http://www.modmyifone.com/forums/iphone-ipod-touch-sdk-development-discussion/

  • Quicktime Screen capture error on start

    I am opening quicktime and wanting to do a "New Screen Recording" and it goes straight to an error then closes the window not being able to adjust the settings within the screen recording. Is there a preference file I can trash to reset the settings?

    dj2x
    same as before? If so, let's make this THE thread then.
    Let's try to get specific, shall we?
    ----------- I just HAVE to put this here, due diligence and such ---------
    Quoted from  Apple's "How to write a good question"
       To help other members answer your question, give as many details as you can.
    Include your product name and specs such as processor speed, memory, and storage capacity. Please do not include your Serial Number, IMEI, MEID, or other personal information.
    Provide the version numbers of your operating system and relevant applications, for example "iOS 6.0.3" or "iPhoto 9.1.2". <-QUICKTIME version?
    Describe the problem, and include any details about what seems to cause it.
    List any troubleshooting steps you've already tried, or temporary fixes you've discovered.
    Now,
    What OS version?
    What version QT?
    Is this error new? First time tried?
    If not new, what can you think of that might have occurred since your last joy with screen recording?
    3. When you click [OK], what happens?
    Enough for now
    CCC

  • [iPhone SDK Beta 6] Simulator only can't find Frameworks

    I'm scratching my head on this one. I can load an example project and it runs in the simulator, no problem. My own project, however gives me this:
    warning: Unable to read symbols for "/System/Library/Frameworks/UIKit.framework/UIKit" (file not found).
    and something similar for every other linked framework. Eventually, this leads to nothing working and the app quitting out. Works fine on the device, and again, it works with the example projects, so the files aren't actually missing or misplaced.
    Instead it seems like something in my build settings or a similar problem. The rub is that I've gone through every build setting and parameter of a working example project line by line to make sure they match, but my project still won't compile in the simulator.
    The only caveat is that I'm not using a .nib or .xib file as all the examples are transitioning to now. I don't see how that's relevant in the smallest way, however.
    Can anyone with more experience or knowledge about XCode projects give me some insight to what I might be missing? It's driving me a little insane.

    Well, I really don't know what the problem was specifically, but I narrowed it down to drawing the render buffer from OpenGL. It seems that, only on the simulator, if I do this too quickly after the window is created and all that it causes the problem.
    The console results were weird talking about missing frameworks which seems completely unrelated to what problems were happening.
    So... no help to anyone else I guess, but I completely rebuilt the project restructured my program like the demos with a nib and everything and it still turns out it had nothing to do with that. I was able to fix my original with one line commented out. 2 days for one line. weeee.
    Message was edited by: aaronsullivan

  • 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}

  • Screen capture in J2ME

    Hello,
    Is there a way to get a screen capture on a mobile device of the current display in J2ME?
    Does anyone know how to do this (even if it is another way)?
    Thanks in advance.

    'spyware' woah, dude, you got it wrong. Sorry, I should have explained what I was trying to do. I would appreciate it if you would remove your remark so that people won't ignore my post.
    Actually (before you jump to conclusions about my motives) all I want to do is to take screenshots of the games/tech demos I've worked on and save them to my PC.
    I saw a program that does it for $50 a while back, might cut my losses and buy it, you (burke) seem rather rigid in your thinking (I'm not a noob to programming, check my website on my profile).
    I've searched for a while trying to find any leads on how I could do this in C# and I thought maybe I could put a J2ME app on my phone then send commands to it from a C# interface to then have the J2ME app feed the image back to the PC (all this through bluetooth). I've heard the Symbian SDK has some screen capture functionality built in, but need it on a non Symbian device.
    Now that I think about it, apalsson your idea sounds like it might be the solution to my needs. I could work this into my own apps and save myself a lot of trouble (and people thinking the wrong thing).
    Could someone point me to some documentation on writing out JPEG files on a mobile device (using J2ME)?
    EDIT: btw, I awarded a Duke star to apalsson because he at least offered some useful advice.
    Edited by: Dartsman on Oct 9, 2007 5:05 PM

  • Problem Installing iPhone SDK on G5 Dual CPU, 2GHz

    When I try to install the iPhone SDK on the screen where you check what's begin installed the iPhone SDK is grayed out and the action is skip. Does anybody have anu ideas how to get around this...
    Im not sure that I can install the iPhone SDK on a Dual CPU Intel??

    jp_nz wrote:
    When I try to install the iPhone SDK on the screen where you check what's begin installed the iPhone SDK is grayed out and the action is skip. Does anybody have anu ideas how to get around this...
    Im not sure that I can install the iPhone SDK on a Dual CPU Intel??
    From your subject line, you say you are using a G5. This is the last gen of Power PC processors, not intel. The SDK requires an Intel processor.

Maybe you are looking for

  • New iPod - It is LOCKED!

    My iPod mini had no problem. I sold it and got a new iPod. It says that it cannot read or write to disk. There is a locked icon on the iPod page in iTunes. How do I get the thing unlocked? My updates are fine. My home Mac is a G5 running 10.3.9.

  • Crashed 160GB Classic Will No Longer Hold More than 32GB of Data

    So, a few months ago, my 160GB iPod Classic (which is 3 years old last Christmas), crashed on me. I was in the process of uploading some songs to it when it froze; I attempted to eject it, got no response and simply unplugged it. Upon plugging the iP

  • How to design a good 60Hz notch filter?

    I tried to design a 60Hz notch filter(59-61 as stop band,tried different kind filters/orders,cont.true)But I can't have a stable output. When test on 60 Hz input,the output signal's amplitude will change in a repeated pattern,sometime the ripples is

  • Cash Flow Statement

    Hello, I need a document stating the configuration of a Cash Flow Statement (Direct / Indirect). Also, special information on how formula components are used or configured. When i tried to create a cash flow I could see there are some defined formula

  • Reward Points for pre-order $?

    I pre-ordered Sunset Overdrive the day before release and also started a new GCU membership either before or after that transaction.  I placed $5 on the game since the 20% discount for GCU wouldn't apply to until pick up so I couldn't accurately pay