How to share iPhone application with different users on the Mac? - objective-c

I want to know can we share the iPhone application in Simulator with the different users in the Mac system, without sharing the source code of that iPhone application with other users?
If yes how can we achieve this?

The only way I know (without jailbreaking) to share your application is by doing the following:
http://developer.apple.com/library/ios/#documentation/ToolsLanguages/Conceptual/Xcode4UserGuide/DistApps/DistApps.html
http://developer.apple.com/library/ios/#featuredarticles/FA_Wireless_Enterprise_App_Distribution/Introduction/Introduction.html

Related

How to detect a docked device in cocoa

I've been searching all over the web and have found solutions to mounted device detection from within a Cocoa App using the NSWorkspace notification system. However this notification doesn't seem to be triggered when an Apple device is docked.
I specifically want my OSX App to detect docked iPads/iPhones, be able asses whether the iOS version of my App is installed and then synchronise files. I realise that the easiest way to do this is using iCloud, but I do not as yet have a developer membership with Apple and would like the option to be able to synchronise files without the internet.
An iTunes like system would be ideal. Any ideas.
Thanks in advance.
Apple don't provide any official APIs for doing what you ask.
Unofficially, you can try the stuff here: https://bitbucket.org/tristero/ipodaccessframework
You can definitely use it to determine whether a particular app is installed (by looking for a match for its bundle-id) and you can read/write files to/fro a particular apps document directory.
Disclaimer: this one is mine. There are definitely other libraries around that achieve similar results.

Accessing iPhone data from a Mac OS X application?

Is there a class library or an Objective-C framework which could permit me to access my iPhone data from a Mac OS X application?
For example, if I develop an application to edit pictures, I would like access to my iPhone pictures from this application without using iTunes. I connect my iPhone as USB device and pictures are displayed into the application.
Apple doesn't support this mode for (recent) iDevices. There are some apps (mainly on Windows) which can sort of do this kind of thing, but I don't think you're going to find any libraries to make it simple. You may want to check the jailbreaking sites. They might provide better information.

iOS: Access to root directory in a jailbroken iPhone

Ok, I used jailcoder.com to patch my xcode project in order to run my app in a jailbroken iOS device and it works. But still I need list some others files located at root folder. I saw some applications that do that but didnĀ“t find the way to accomplish It.
Maybe there's a possibility to run code as root
I don't know exactly which files you need to access, and what permissions they currently have.
Normal apps run as user mobile. If you do need to run your app as user root, then here is one way to do that.
I answered here in a similar question How to get inbox all SMS on iphonse sdk?
It is possible if you have a jailbroken device. You may use jailcoder to fake code signing and then move your app to /Applications folder. This way you can access to any database in your iOS device jailbroken.

Sync iOS & Mac OS X data

Friends I am working on an app with two versions i.e. iOS & Mac OS X. Currently I am exploring my options to sync core data of iOS version to Mac OS X and vice versa.
Could someone suggest me regarding right tools/apis for the same. Or someone have some tips on how to do the same.
The only condition is we can't use cloud/webservice based syncing.
--- Update 01 ---
While working towards the solution, I explored towards syncing via HTTPServer inline/embeded in an app.
http://cocoawithlove.com/2009/07/simple-extensible-http-server-in-cocoa.html
This allows iOS app to share data but via its IP. I am confused how an OS X app would be able to detect the IP or is there any iPhone connected with the Mac OS.
Just to clarify what I am exactly looking for is ---
User work on any one of the app iOS app OR Mac OSx app. Then user connect the iPhone with Mac machine and sync the data.
I hope someone would be able to guide me accordingly.
I recommend to create a Status Menu Bar Application on Mac and sync your data with libimobiledevice.
The syncing itself is not so easy (if it's directly iOS<->Mac or not iOS<->Cloud<-Mac/iOS->). You might start here.

How to test iphone p2p aplications?

Is there a way to test iphone OS 3.0 p2p applications?
Can I run multiple iphone simulator instances? Aperantly no.
Any help?
I put up a detailed post on how to do this a couple weeks ago, so I'll just refer you to it: http://ramin.firoozye.com/2009/06/18/debugging-peer-to-peer-and-wifi-apps-on-the-iphone/
Try to get permission from work or someplace with several computers on a LAN to run several instances. This will let you test network stuff, too.
According to this forum post you will need to test it on two real devices.
You must use 2 hardware devices for testing gamekit p2p connections.
Untested, but you should be able to run two instances of the iPhone Simulator by duplicating it..
Run the simulator as normal for phone 1.
For the second, go to /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/ and copy (not move) the application somewhere (your Desktop?). When you run the copy, it will ask where the Developer Tools are installed and the application to run. Provide this and it should run a second copy.
Also, perhaps you could test it on both your real phone and the simulator?
I found a solution:
activate tethering on your iPhone
connect your mac with the simulator on it to the phone
Now you can test the gamekit on your sim and your iPhone
(I also have internet-sharing activated on my macbook - but I think the tethering-part is important... oh, this implies that bluetooth is running on the iPhone and the mac, of course)...
I'm pretty happy I found this solution - this was a major drawback...
I try to the same test on my macbook OS5.0 and iPhone 3gs , the iPhone simulator app can see the iPhone device via the app , but can not connected ... does this problem cause the bluetooth device is unauthorized ?
install VMware seem great but too trouble...