Cocoa error 260

后端 未结 6 1559
借酒劲吻你
借酒劲吻你 2021-02-05 03:20

I keep getting this error. I\'m uploading via ftp to a server. It works fine and uploads completely while running in the simulator, but when I provision it on my iPhone, it says

6条回答
  •  生来不讨喜
    2021-02-05 03:45

    I know Peter Hosey already has solved this question, but I want to add something. If you want to find your error quickly, you can use a simple command in the terminal to locate it's definition:

    ief2s-iMac:Frameworks ief2$ cd /System/Library/Frameworks
    ief2s-iMac:Frameworks ief2$ grep '260' $(find . -name "*Errors.h" )
    
    • cd to your frameworks directory
    • grep all the files ending with 'Errors.h' for the error code:

    Change the '260' with the error code you want. The above command returns the following:

    ief2s-iMac:Frameworks ief2$ grep '260' $(find . -name "*Errors.h" )
    ./CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers/MacErrors.h:  midiDupIDErr                  = -260, /*duplicate client ID*/
    ./CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers/MacErrors.h:  kECONNREFUSEDErr              = -3260, /* Connection refused           */
    ./Foundation.framework/Versions/C/Headers/FoundationErrors.h:    NSFileReadNoSuchFileError = 260,                        // Read error (no such file)
    ief2s-iMac:Frameworks ief2$ 
    

    You could of course better specify it by doing a grep on 'Error = 260':

    ief2s-iMac:Frameworks ief2$ grep 'Error = 260' `find . -name "*Errors.h"`
    ./Foundation.framework/Versions/C/Headers/FoundationErrors.h:    NSFileReadNoSuchFileError = 260,                        // Read error (no such file)
    ief2s-iMac:Frameworks ief2$ 
    

    I hope this can help you with your further development, ief2

提交回复
热议问题