Skip navigation

Can't download xcode 4.1

9213 Views 17 Replies Latest reply: Oct 23, 2012 1:31 PM by will_brett RSS
1 2 Previous Next
agrunnet Level 1 Level 1 (0 points)
Currently Being Moderated
Jul 22, 2011 2:18 PM

I just upgraded to Lion, and have been trying to install Xcode 4.1

 

I get this error message when I select the "install" from within the app store.

 

"The product distribution file could not be verified. It may be damaged or was not signed."

 

Please help!

 

I can download other apps from within the app store just fine.

MacBook Pro, Mac OS X (10.7)
  • LordChaos Level 1 Level 1 (10 points)
    Currently Being Moderated
    Jul 23, 2011 7:32 AM (in response to agrunnet)

    Hi,

     

    I had the same issue on Lion and was able to fix it. This was the related error I saw in /var/log/system.log:

     

    Jul 23 16:22:45 macboek13 App Store[399]: FRPurchaseManager: Preflight operation for 448457090 failed with error: Error Domain=com.apple.appstore Code=0 "The product distribution file could not be verified. It may be damaged or was not signed." UserInfo=0x7f90c9b35120 {NSLocalizedFailureReason=Cannot create PKProduct from "file://localhost/var/folders/c0/t8bcf_yd7t18mppns6bdzv480000gn/C/com.apple.app store/448457090/preflight.pfpkg" Error Domain=NSURLErrorDomain Code=-1100 "The requested URL was not found on this server." UserInfo=0x7f90c9b3f700 {NSUnderlyingError=0x7f90c9b229e0 "The requested URL was not found on this server.", NSErrorFailingURLStringKey=file:///var/folders/c0/t8bcf_yd7t18mppns6bdzv480000g n/C/com.apple.appstore/448457090/preflight.pfpkg/index.sproduct, NSErrorFailingURLKey=file:///var/folders/c0/t8bcf_yd7t18mppns6bdzv480000gn/C/co m.apple.appstore/448457090/preflight.pfpkg/index.sproduct, NSLocalizedDescription=The requested URL was not found on this server.}, NSLocalizedDescription=The product distribution file could not be verified. It may be damaged or was not signed., NSUnderlyingError=0x7f90c9b3a510 "The requested URL was not found on this server."}

     

    You should check your system.log to see wheter you see a similar error. I deleted the /var/folders/c0/t8bcf_yd7t18mppns6bdzv480000gn/C/com.apple.appstore/448457090/p reflight.pfpkg file and was able to install Xcode again.

     

    Cheers,

     

    Eric

  • CoffeeGuy251 Calculating status...
    Currently Being Moderated
    Aug 31, 2011 10:36 PM (in response to LordChaos)

    After trying this solution and having it fail, I finally got it to work after deleting the entire com.apple.appstore folder, logging out, and then logging in again.  Xcode 4.1 is finally downloading!

     

    Thanks again!

  • RuaanBrink Level 1 Level 1 (0 points)
    Currently Being Moderated
    Sep 7, 2011 12:09 PM (in response to LordChaos)

    After trying about everything!! This worked like a charm!

    I was  getting "We could not complete your purchase. Unknown Error." From Mac app Store and Software Update didn't want to download any updates.

     

    I deleted everything in /var/folders (hoping no major damage will be done) and it SOLVED my problem I had for about 2 months now! Thanks!

  • Vinalys Level 1 Level 1 (0 points)
    Currently Being Moderated
    Sep 14, 2011 8:17 AM (in response to RuaanBrink)

    I do not think this is a good idea to delete all in the var folder, it contains other scripts and will certainly impact on the behaviour of the machine (if not crashing it at the next restart).

    Just try deleting only the file mentionned by copy / paste it in the terminal with the rm command.

  • RuaanBrink Level 1 Level 1 (0 points)
    Currently Being Moderated
    Sep 14, 2011 12:17 PM (in response to Vinalys)

    What!? No, I said/meant  /var/folders/. Def not everything in /var/ , sorry if someone misunderstood.

  • neel_naya Level 1 Level 1 (0 points)
    Currently Being Moderated
    Sep 19, 2011 2:40 AM (in response to agrunnet)

    Hi,

     

    I faced the same issue on Lion OS. I am not able to download apps from App Store even on Snow Leopard.

     

    This is the console log generated on Lion OS:

     

    9/19/11 2:51:48.946 PM App Store: FRPurchaseManager: Preflight operation for 448457090 failed with error: Error Domain=com.apple.appstore Code=0 "The product distribution file could not be verified. It may be damaged or was not signed." UserInfo=0x7ff0744910f0 {NSLocalizedFailureReason=Cannot create PKProduct from "file://localhost/var/folders/jn/kzl_8zs11s9390s93k3rh__00000gp/C/com.apple.app store/448457090/preflight.pfpkg" Error Domain=NSURLErrorDomain Code=-1100 "The requested URL was not found on this server." UserInfo=0x7ff07448bf80 {NSUnderlyingError=0x7ff07422cef0 "The requested URL was not found on this server.", NSErrorFailingURLStringKey=file:///var/folders/jn/kzl_8zs11s9390s93k3rh__00000g p/C/com.apple.appstore/448457090/preflight.pfpkg/index.sproduct, NSErrorFailingURLKey=file:///var/folders/jn/kzl_8zs11s9390s93k3rh__00000gp/C/co m.apple.appstore/448457090/preflight.pfpkg/index.sproduct, NSLocalizedDescription=The requested URL was not found on this server.}, NSLocalizedDescription=The product distribution file could not be verified. It may be damaged or was not signed., NSUnderlyingError=0x7ff0742bc700 "The requested URL was not found on this server."}

     

     

    I tried to delete the file preflight.pfpkg in the same path. Launched App store but no luck, the same error is thrown again and again. Even I logged-out and relogged-in but still the same error.

     

    There is same error on SnowLeopard. If I use reliance netconnect, I am able to download other apps except xcode 4.1, as it requires Lion OS as the current OS before downloading xcode 4.1. (Xcode 4 can only be downloaded on LION OS)

     

    Problem is I can download apps from App store of Snow Leopard using reliance netconnect but not xcode 4.1.

    And I tried to download xcode 4.1 from App store of Lion using reliance netconnect, but reliance netconnect usb modem is not getting detected on Lion OS.

     

    Can someone help me on solving this issue?  And I wanted to know whether this problem is related to App Store or Network?

  • jawhite20 Level 1 Level 1 (0 points)
    Currently Being Moderated
    Sep 19, 2011 5:12 PM (in response to LordChaos)

    Thank you so much.  This worked perfectly.

  • paulabq Level 1 Level 1 (0 points)
    Currently Being Moderated
    Oct 7, 2011 2:56 PM (in response to jawhite20)

    I tried the 'delete the preflight.pfpkg' file but that didn't help. Is there anywhere that the file can be downloaded and not installed? Here's one of the errors I got in the system.log file:

     

    Oct  7 15:23:08 fuji-macbook App Store[285]: resource failed with error http://myapp.itunes.apple.com/WebObjects/MZAppPersonalizer.woa/wa/customersAlsoB oughtFragment?sd=448457090 --- Error Domain=NSURLErrorDomain Code=-999 "The operation couldn’t be completed. (NSURLErrorDomain error -999.)" UserInfo=0x7f96a5160820 {NSErrorFailingURLStringKey=http://myapp.itunes.apple.com/WebObjects/MZAppPersonalizer.woa/wa/customersAlsoB oughtFragment?sd=448457090, NSErrorFailingURLKey=http://myapp.itunes.apple.com/WebObjects/MZAppPersonalizer.woa/wa/customersAlsoB oughtFragment?sd=448457090}

     

    Any suggestions?

  • LordChaos Level 1 Level 1 (10 points)
    Currently Being Moderated
    Oct 8, 2011 6:45 AM (in response to paulabq)

    What's the error you get from the app store app ?

  • paulabq Level 1 Level 1 (0 points)
    Currently Being Moderated
    Oct 8, 2011 7:02 AM (in response to agrunnet)

    I never got any error. It said "Installing" forever (without any progress bar or anything) whereas the Lion larger install worked fine after an hour or two. The system.log seems to have the only hint as to what's going on.

     

    However, after more searching, I downloaded from

    http://imzdl.com/#

    the version

    xcode_4.1_for_lion__gm_seed.dmg

    and that seems to work so I'm going to use that. Hopefully it's close enough to the app store version.

     

    But it would be nice to get the download from app store working if you have any suggestions...

     

    Thanks!

  • bethfromanchorage Level 1 Level 1 (0 points)
    Currently Being Moderated
    Nov 4, 2011 3:44 PM (in response to agrunnet)

    forgive my ignorance, I need to buy a book - i'm a long time PC developer who needs to start working in XCODE.  I got my macbook today and I am attempting to download xcode from the app store and i get the error in the original post and I have a similar entry in my console log. 

     

    HOWEVER, I do not know HOW to find Var/Folders to delete the offending preflight package file.  Where do i do this?

     

    thanks in advance, I promise to get smarter soon. I won't tell you how long it took me to figure out how to click.

  • paulabq Level 1 Level 1 (0 points)
    Currently Being Moderated
    Nov 4, 2011 4:14 PM (in response to bethfromanchorage)

    The 'ignorance boat' that we're all in is a huge ocean liner, plenty of room for ya! :-) We're not only in the same boat, our cabins are ajoining - I'm stumbling around in the dark with my new (used ebay) macbook too. :-) BTW, it took me a long time to discover that <right-click> is <control-left-click>. You can also plug in a USB mouse and use the right button like normal.


    If you know the filename, you can use the 'filefinder' (looks like 2 faces with a vertical face-line thru it - on the left of the icons at the bottom). It'd also help if you know Unix/Linux, you can get a terminal window and do a lot of stuff there.

     

    However, I think I tried deleting that preflight file, but it didn't seem to help (don't remember where I found it). I'd suggest just doing what worked for me - download from that alternate site, although you have to upgrade to Lion. I think that site might have had an iOS4 for Snow Leopard too, can't remember, but I'd already upgraded to Lion before I found the download problem and the alternate site so I went with the Lion version. I guess Apples don't solve all our problems like we PC people had been led to believe by the koolaide drinkers, huh? :-)

     

    As to books, I bought (used) O'Reilly's "Programming iOS4" by Neuburg. It has great detail, but I'm missing connections on how to put the great detail together, but it has good guidance about using Xcode 4. So I also picked up Sadun's iPhone Developer's Cookbook, but it's for Xcode 3 so the user interface is a good bit different and difficult if you're new. But it does have good background that's a bit different from the Newburg book. However, neither book has the big picture connection stuff that I need so I'm still flailing around.

  • LordChaos Level 1 Level 1 (10 points)
    Currently Being Moderated
    Nov 5, 2011 7:49 AM (in response to paulabq)

    Hi,

     

    Start a Terminal (Applications --> Utilities), make it's window substantially bigger and type the following in it:

     

    cat /var/log/system.log |grep -i "It may be damaged or was not signed"

     

    It should show you the error and which preflight.pfpkg should be deleted.

     

    Welcome to OSX, by the way. I'm sure you'll love it.

     

    Cheers,

     

    Eric

1 2 Previous Next

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.