iOS system data - iphone

I am developing an application where I need to know some of my iphone system information such as the cpu speed and above the list of processes in memory and the system log.
I have seen on AppleStore that there are some apps (Apple-approved) that display the data (Ex JustSys) then it means that Apple provides tools for information system of this type.
I tried searching on the net but could not find anything. Does anyone know how to get this info?
thanks

You should look at below link. Might be helpful for you
http://iphonesdkdev.blogspot.com/2009/01/source-code-get-hardware-info-of-iphone.html

Related

Find number of battery charge cycles Swift

i want to build an app that tells the user the environmental impact of different products, and naturally i want to include the phone itself in this. to do this i want to know how much electricity my phone has used up over its lifetime to calculate the electrical consumption.
as such, im trying to work out how many times my battery has been charged (how many cycles) in swift. ive looked into the documentation for UIDevice.BatteryState but it doesnt seem to give me this info? i also found some info pointing me at IOKit but not much further, the apple doc that ive found said that its unsupported?
theres an app called CoconutFlavour that does this, and i can find the maximum capacity in the menus but i need to find it using Swift.
how do i find the number of cycles my battery has run through in Swift? which class am i looking for? please help.
As far as I know, Apple keeps the battery information of the phone in log-power-date.session File and this file contains phone information written in XML. It writes the information you want in <key>.com.apple.ioreport.BatterCycleCount </key> section.
This file is located in the analysis and data section of the phone's privacy section. But I don't know how you can get it with an app.

Getting CPU,RAM info using IOKit in swift

I need to get information about CPU, RAM, Battery usage in mac application.
I can get all those information by using vm_stat,top,system_profiler using NSTask.
But I can't use those if I enable sandbox.
I can't find anything because the documentation for that is very poor(or I didn't find anything I guess).
So, what are the functions I can use to get the info about the system? Like using IOPowerSources.h I can get information about the Battery.
Can anyone guide me?
Thanks!

How does the System Status iPhone app obtain Wifi network roaming information?

I've just downloaded an app from the App Store called System Status which gives you detailed information about the iPhone it's installed on.
One of the features provides a system log which allows you to see the network info when you roam from one BSSID to another.
My question is how did they do this?
I have searched everywhere and the only way I have found requires the use of private APIs. I am assuming that since this app is live on the App Store there is a legal way to obtain the information.
After some deeper digging I think that they got the information from the Apple Status Log, more details are available via these links:
https://developer.apple.com/library/ios/#documentation/System/Conceptual/ManPages_iPhoneOS/man3/asl.3.html
http://www.cocoanetics.com/2011/03/accessing-the-ios-system-log/

Physical memory size limit on a iPhone device - per application

Is there any limit on the physical memory size (file system) one can utilize in a iPhone application. My concern is what if someone keeps on writing some data files in the Documents folders and do not purge it. And the data can be of any size.
The only hard storage limit is that of the total available space on the iOS device.
The scenario you have described is likely reality... there is a feature in the upcoming version of iOS that will assist in managing this issue, but it's still under NDA so cannot be discussed here. (yet)
EDIT: And in iOS 5, on your device you can now go to Settings -> Usage to get a list of all installed apps on your phone/pad/pod and see how much extra space they are consuming. :)
You can use ASL or GTMLogger to manage your log files.
Some links that might be handy for you:
Best Practices for Error Logging and/or reporting for iPhone
objective-c logging best practices

Best options to integrate my application with the Nike+ features of the iPhone 4G

How can I integrate my application with the Nike+ features of the iPhone 4G. I want to access the data captured and send that to my own applications. There seems to be limited information available on this topic. Any help is greatly appreciated.
I actually created a PHP class that extracts data from the Nike+ service. It might be of use to you. You can find the download and documentation at http://nikeplusphp.org
Not sure how you would save authentication in your app, but this class would definitely give you access to literally everything Nike return back to their own apps and website. Well, everything I could find!
If you do have any issues with the class or anything is missing, please feel free to get in touch or contribute!