How to get the ямс of connected ios device ямс in Linux, or c ++ programming. basically, I использовал the Qt in Linux. and I want to get the ямс of the connected device ямс. after в searching in google we met в UIdevice class. By writing UIDevice.currentDevice () .name we get the ямс of the iPhone. but the UIdevice is в class of Обхективе К. I also follow the following steps: - reference - https://wiki.qt.io/IOS_device_info
All methods, usage Objective-C code. You could использовал Objective-C in your application on C ++. All you need it, just add new class with header *. h and implementation file *. мм. Then add this file to you *.pro using special keywords:
OBJECTIVE_HEADERS + = \Helpers/iOS/redminedevicehelper.h
OBJECTIVE_SOURCES + = \Helpers/iOS/redminedevicehelper.mm
Also, you need to использовал frameworks to get access to basic Objective-C classes and methods:
UIKit
#import <UIKit/UIKit.h>
Foundation
#import <Foundation/Foundation.h>
In the *.pro file you need add this framework схвати в library:
LIBS + =-framework Foundation-framework CoreFoundation-framework УИКИТ Ов to access the UIDevice class in qt.
But nothing подарил.
Please help я. if any one know about this. Sorry for my Бад Энглис. I installed the libimobiledevice packages in Linux.
Thanks, Рам Кумар.
В маке используется углеродное какао. тогда используются все файлы заголовков target-c. в Linux углерод-какао не используется, поэтому файлы заголовков target-c не поддерживаются в Linux.