How to setup iOS development environment? [duplicate] - iphone

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
How to use device instead of Simulator
I like to know how to test my own iOS app on my ipad or iphone. I know that there's IOS emulator in Mac OS, but I like to test my apps with a real hardware.
My research says that I have to jailbreak my ipad. Is this correct? or is there any other alternatives?

You do not need to jail break your device to test on it.
You do need to sign-up with apple and get a developer account. That will allow you to get a provisioning profile and certs, then you can run on your device to test.
If you want others to test your apps on real devices look into ad-hoc deployments.
The majority of your development will be with the simulator but by all means, always test on real devices ...

Related

Test iPhone App without Apple Dev Account or Jailbreak [duplicate]

This question already has answers here:
How can I deploy an iPhone application from Xcode to a real iPhone device?
(12 answers)
Closed 9 years ago.
I made a small little app I want to test out on my iPhone 5. Problem is I cant fork out $100 for apple or since its an iPhone 5 I cannot jailbreak it. I really need to test this can somebody please help?
Thanks!
iPhones will only execute binary code that has been cryptographically signed by a private key which Apple has authorised.
The only way to get your encryption key authorised is to pay $100 per year and agree to their developer contract.
You can run the app in the iOS simulator on any modern mac without signing it and without paying any money. Just install Xcode, select "iPhone Simulator" as the target, and click the Run button.
If you can find a friend who has a developer account, they might be willing to sign your app with their private key. Build/Archive the app without signing it, email it to them along with your device UDID and a few other details, they will have to create a provisioning profile and then sign the app and email it back to you. Then you can drag it onto iTunes to install the app.
This deployment method is only intended for beta testing code, so it will expire after some months the steps have to be repeated.

Why don't all great apps detect jailbreak to limit functionality in their app? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How do I detect that an SDK app is running on a jailbroken phone?
I see there are many ways to detect which device is jailbroken in xcode.
How do I detect that an iOS app is running on a jailbroken phone?
I'm undestanding that: I don't want jailbroken device access to my app, so I put my detection code to my project, so all jailbroken device can't use it.
But a lot of paid app can install in jailbroken device (Angry Bird, Fruit Ninja...). Do I missunderstand, or there are some special reason so they don't do this (they want their app is popular...), or before app can be installed in jailbroken device, code of this app can be changed a little (I don't think so)?
Beside this, I see a lot of answer for question "How to detect that device is jailbroken" in this link above.
I've found this:
http://www.interiders.com/2011/10/26/enable-directv-to-work-on-jailbroken-ipad/
So, what is the best solution for detecting jailbroken device?
Why [don't] (all) great apps use “Detect jailbreak feature” to limit
user[s] from their app?
Because why would you intentionally restrict your target market? Money from advertising, app sales, and in-app purchases that comes from jailbroken devices is just as real as the money that comes from non-jailbroken devices. So why would you throw your hand up and say "I want less money"?
What you may legitimately want to do is prevent piracy of your app. But detecting a jailbroken device isn't the same thing as detecting a pirated copy of your app. A jailbroken device can still install apps without pirating them.
Besides, generally speaking there's no 100% foolproof way to prevent piracy, apart from not publishing a desirable app. You'd do better if you focus on making an awesome app that everyone wants and most people pay for, and not worrying about the handful of pirates out there.
As for the "best" way to detect a jailbroken device, the question you linked to has lots of good suggestions:
How do I detect that an iOS app is running on a jailbroken phone?
...try some of them, and see which works best for you.

Can I use a jail broken device for iPhone app development [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
can Jailbroken iphone used for development
For example, testing in app purchase, game centre, icloud or notification.
Anyone have tested and verified if it work?
Thanks.
I had tried to call server data from the app in Jail Broken device. I am not able to call webservices from it. It always display error. On other had application is working fine in factory unlock device.
It works for the most part. Some things don't work perfectly. Sometimes Game Center won't automatch in Sandbox mode for example. But mostly it works.
I unjailbroken mine yesterday because it got stuck when I run the app. It said something like Locktalking so I restored it to iOS6 beta 3. The most of the 'cool' thinks of jailbreaking have a price (of course, they deserve it, but I don't need them so much) so it wasn't an advantage at all.

Deploy application to iPhone Simulator [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
How to install iPhone application in iPhone Simulator
I am looking for a way to deploy my application to another users simulator. To be blunt the person needs to show the application on the simulator and is not capable of compiling the source code and I don't have the time to produce the instructions.
What I want to do is provide them with the .app (or another) file and have them install it in the simulator just like they can do with any real iPhone Device.
Does anyone know how I can do this?
If they are not capable of compiling the source code, I highly doubt that they are capable of installing it in the simulator, for which you would also need to provide the instructions and support them.
Maybe you could do screensharing with them to show it to them on your own simulator? Or send them a video or screencast of the app being used?

can Jailbroken iphone used for development

We have paid developer account for iphone development and we have 2 iphones one jail broken and other one non jail broken. We have registered both phones for development and got provisioning profile. We can use non jailbroken phone for development. But we try to use jail broken phone for development we get message Error starting executable no Provisioned iphone device is connected.
But We can test application on it using ad hoc profile.
Does this means jailbroken devices can not be used for development?
Regards,
Manish
I personally do development/testing on jailbroken devices (I find that it is nice for profiling/debugging with all the UNIX tools available, as well as testing out code for checking for tampered plist files ;-) ) as well as non jailbroken devices.
I have not had any problems specifically with jailbroken devices, as they behave exactly like stock standard firmwares..
Have you:
Added the UDID to the provisioning profile
Tried removing and adding the provisioning profile in XCode organizer
Rebooting the phone then trying to build an app targeting the device
I personally am paying the $99 per year and use my iPod Touch 2G (jailbroken) for development purposes. I have seen no disadvantages to using jailbroken devices for development. I have actually seen some advantages to using jailbroken devices.
I have no any problems with development for jailbroken iPhone. Moreover I like to use several advantages... for example full-featured UNIX console environment into device.
In additional using jailbroken iPhone may help developer better understand how iPhone/OS/Environment works at low level.
You may add new Target to your project and use it if you connect jailbroken device.
You just need to add two keys for new target in User-Defined Settings (Target->Get Info->"Build" Tab->Show "User-Defined Settings")
PROVISIONING_PROFILE_ALLOWED NO
PROVISIONING_PROFILE_REQUIRED NO
So you will have two very similar targets... one for jailbroken and second for povisioned iPhone.
Be warned - the iPhone Developer agreement now bans you from jailbreaking your phones:
http://news.softpedia.com/news/iPhone-Developer-Agreement-Bans-iPhone-OS-Jailbreak-108599.shtml
I'm not sure what you should do if, say, you want your application to disable itself on jailbroken phones - how would you test it?
Jailbroken devices won't work with push notification. I lost almost one day with one such device. So better stay away from jail broken device for development .