libimobiledevice-win32 icon indicating copy to clipboard operation
libimobiledevice-win32 copied to clipboard

libimobiledevice-win32 code showing error

Open prateek1108 opened this issue 11 years ago • 26 comments

hi....... libimobiledevice-win32 is showing error of "error link 1104 :cannot open file libimobiledevice.lib " in projects idevice-debug-client and idevicebackup2

prateek1108 avatar Aug 08 '13 04:08 prateek1108

hi prateek1108,i can build the solution with no errors, maybe u should set idevice-debug-client 'project dependence' libimobiledevice?

airwolf2026 avatar Aug 08 '13 04:08 airwolf2026

thanks airwolf2026 for reply, by your suggestion i am able to remove the compile time error but now runtime error is coming i.e" unable to start program \libimobiledevice-win32-master\debug\getopt.lib"

prateek1108 avatar Aug 08 '13 08:08 prateek1108

just set a project that you need as startup project using project's context menu (you have getopt project as startup project now)

storoj avatar Aug 08 '13 21:08 storoj

which project i have to set as startup project.....

prateek1108 avatar Aug 12 '13 03:08 prateek1108

I have set getopt project as startup project but runtime error is continuing... i.e "unable to start program \libimobiledevice-win32-master\debug\getopt.lib"

vc123456 avatar Aug 13 '13 06:08 vc123456

hi vc123456, the getopt project is a dll ,not a exe, so if you want to debug ,you should set 'ideviceinstalller' or other you like as a startup projcet

airwolf2026 avatar Aug 13 '13 06:08 airwolf2026

hi airwolf2026, for your reply, i have set ideviceinstaller as a startup project but now runtime error is coming i.e" The program can't start because zlib1.dll is missing from your computer. Try reinstalling the program to fix this problem"

vivek0626 avatar Aug 14 '13 10:08 vivek0626

hi airwolf2026, In which operating system and evirnment(Software installed) for compiling this code

prateek1108 avatar Aug 14 '13 10:08 prateek1108

there are dlls (zlib, iconv, libxml2) in vendors directory, you have to put them to Debug directory

storoj avatar Aug 14 '13 11:08 storoj

hi prateek1108 my env is win7+sp1, and vs2010

airwolf2026 avatar Aug 15 '13 01:08 airwolf2026

hi, i have restore all dlls (zlib, iconv, libxml2) in debug folder respect to error but runtime exception is coming. i have simple explain my problem.... i want to create simply window based application (vs2010) to copy sms.db ( /private/var/mobile/Library/SMS/sms.db) file in iphone to my computer for recover deleted sms and backup purpose without jail-breaking.

please give you any type of suggestion.. thanks in advance....

vivek0626 avatar Aug 21 '13 03:08 vivek0626

but in vs 2010 this .sln is showing file unidentified .........i had tried this in windows xp ,vs 2012.,

prateek1108 avatar Aug 21 '13 05:08 prateek1108

hi vivek0626, you could use Filerelay service to download the sms.db or use the backupclient2

airwolf2026 avatar Aug 21 '13 06:08 airwolf2026

hi airwolf2026, thanks for reply, suggest any of the demi project link...

vivek0626 avatar Aug 21 '13 06:08 vivek0626

currently my project copied sms.db database on jailbreak iphone but i want to copy without jailbreking iphone.

vivek0626 avatar Aug 21 '13 07:08 vivek0626

without jailbreak,you could use file_relay.c to download the user dbs(contains addressbook,sms etc);

airwolf2026 avatar Aug 21 '13 08:08 airwolf2026

can you create a small project to download the addressbook db.

vivek0626 avatar Aug 22 '13 10:08 vivek0626

i had run this code but some of .dll is giving error at run-time ..........can you please provide any other link to this code or to code compatible with vs 2010......something is missing or corrupted in this libimobiledevice-win32 code.

prateek1108 avatar Aug 22 '13 10:08 prateek1108

hi vivek0626, i wrote a demo func to download the userdatabase

idevice_t device = NULL; lockdownd_client_t client = NULL; lockdownd_service_descriptor_t service_descriptor = NULL;

if (IDEVICE_E_SUCCESS != idevice_new(&device, NULL)) {
    fprintf(stderr, "No iPhone found, is it plugged in?\n");
    return;
}

if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(device, &client, "file_relay")) {
    fprintf(stderr, "Could not connect to lockdownd. Exiting.\n");
    goto leave_cleanup;
}

if ((lockdownd_start_service
    (client, "com.apple.mobile.file_relay",
    &service_descriptor) != LOCKDOWN_E_SUCCESS) || !service_descriptor->port) {
        fprintf(stderr,
            "Could not start com.apple.mobile.file_relay!\n");
        goto leave_cleanup;
}

file_relay_client_t fileRelayClient = NULL;
file_relay_error_t ret = file_relay_client_new(device,service_descriptor,&fileRelayClient);
if(ret!=FILE_RELAY_E_SUCCESS)
    goto leave_cleanup;
else
{
    idevice_connection_t connection = NULL;
    //connect to the service port
    idevice_error_t  connRet = idevice_connect(device,service_descriptor->port,&connection);
    if(connRet==IDEVICE_E_SUCCESS)
    {
        const char* source[2]={"UserDatabases",NULL};
        ret = file_relay_request_sources(fileRelayClient,source,&connection);
    }
}

leave_cleanup:
if (client) { lockdownd_client_free(client); } idevice_free(device);
//bla bla other resource release

airwolf2026 avatar Aug 23 '13 08:08 airwolf2026

Hi Sir @airwolf2026 ,

Could you please tell me how can i insert and extract Text Message(SMS) from ios device .If any Example code or process its really appreciated .

Thanks a lot in advance.

vipinbeni avatar Feb 20 '15 05:02 vipinbeni

@vipinbeni You can extract SMS from FileRelay service. You can't insert message in SMS in normal iOS(except jailbreak)

airwolf2026 avatar Feb 27 '15 01:02 airwolf2026

Dear Sir @airwolf2026 ,

Can you give me some reference code for sms(FileRelay ) and i have a product that insert sms to ios device without jailbreak. is there are no way to insert sms text messages to device.

thanks vipin

vipinbeni avatar Feb 27 '15 02:02 vipinbeni

@vipinbeni That product may be use a ath flaw (no check the path is valide)

airwolf2026 avatar Feb 27 '15 02:02 airwolf2026

Dear Sir @airwolf2026 , Could you please tell me about this in detail if you have time as i have no idea about ath flaw and FileRelay

thanks.

vipinbeni avatar Feb 27 '15 03:02 vipinbeni

@vipinbeni Why your team make another wheel? Because there are a lot free software to manage iDevice.

airwolf2026 avatar Feb 27 '15 03:02 airwolf2026

Dear Sir ,

Its our project to complete ios syn .

that why we have to complete it. Please help me.

thanks.

On Fri, Feb 27, 2015 at 8:36 AM, airwolf2026 [email protected] wrote:

@vipinbeni https://github.com/vipinbeni Why your team make another wheel? Because there are a lot free software to manage iDevice.

— Reply to this email directly or view it on GitHub https://github.com/storoj/libimobiledevice-win32/issues/7#issuecomment-76323266 .

Thanks Vipin Kumar Beniwal

vipinbeni avatar Feb 27 '15 03:02 vipinbeni