How do I deploy to a jailbroken device running ios 6.1? - ios

I am learning iOS programming, is it possible to deploy my app to a jailbroken ios 6.1 device? if so please advice, thanks. btw,im using Xcode 4.6 on Mac OS X Mountain Lion 10.8.2

Install appsync 5.0+ on your jailbroken device.
Download jailcoder from HERE.
Right click on JailCoder.app -> Show Package Contents, then from folder Resource.
Copy two certificate iPhone Developer.cer and iPhone Developer.p12 to your desktop.
Then CMD+Space and type Keychain ENTER (to open Keychain Access), from left view select login.
Click on File menu click on Import Items, choose iPhone Developer.cer to import. Choose always trust and give your system passward it asked.
Again click on File menu Click on import items, choose iPhone Developer.p12 to import.
now enter the password "jailcoder" and ignore error msg.
That's it! Now try to build or archive your project.
Good Luck

Related

Installing PDF reader in iOS simulator

Currently I am using Xcode 8.3.3 and Xcode 9 Beta 4.
How do I install a PDF reader and email apps in the iOS simulator.
I have gone through this link:
Is it possible to install Adobe reader or third party application in iOS simulator for testing?
and
*How to install iPhone application in iPhone Simulator.
But it was of no use.
I even tried the drag and drop method. It shows the process, but then it displays the error "unable to install the app".
How do I add applications in simulators? Currently I don't have any devices, so I want to test the functionality on the simulator.
After trying a few options and going through some folders, I am confirmed that it can be done. Can it be done by placing the payload files of PDF viewers in iPhone simulator's application folder?
If it's an app built for the simulator, then yes it can be done using the methods you linked to.
If this is an app built for the AppStore, then it's not possible. Apps built for AppStore are compiled for ARM CPUs; for simulators, they're compiled for x86.
Firstly, read these steps. However for me, the second step was not working. So I went for alternative method.
You need an iPhone for the above. If you don't have one, search the web for .ipa file of that apps and follow above procedure. Or you can use open source projects like: https://github.com/Alua-Kinzhebayeva/iOS-PDF-Reader.
Run this project for the first time. Go to project navigator:
Right click on the PDFReader.app and click "Show in Finder".
Copy and paste it in this folder Applications > Xcode.app (right click - Show Package Contents) > Contents > Developer > Platforms > iPhoneSimulator.platform > SDKs > iPhoneSimulator7.0.sdk > Applications.
and reboot the simulator. The app will be preinstalled like other apps in simulator. Ready enough to test your app functionality with pdf readers or any app you want.

Is there a way to test my Xcode 7.2-compiled app with iOS 9.3?

I have the iOS 9.3 beta installed on a testing device as I'm running a few 9.3-compiled apps, but I also have an old app that is compiled in Xcode 7.2. I can run the app on any iOS 9.2 device with ease, but if I try to run it on the one iOS 9.3 beta device, I get the "could not find Developer Disk Image" error.
Xcode 7.3 includes some updates to Swift, so I'd have to change a great deal of my files, and I just want to test to see if it's working fine. Is there any way to do this without having to change a lot of Swift code? It's on the App Store compiled for 9.2 and I can run it on my 9.3 device, so I don't understand why it's so difficult.
If you want to avoid the beta version of Xcode from potentially altering your original project, just make a copy of the project and then just open it up in the beta version. If you have an app running in Swift 2.1.1 (Xcode 7.2), the differences to Swift 2.2 (Xcode 7.3) are pretty modest. And if you do this with a copy, you can be confident that your original project won't be altered.
If you don't want to do that for some reason you can install apps from a production version of Xcode on a device running a beta version of iOS:
First, you want to make sure you have the profiles installed on your beta iOS device. The easiest way to do this is to run some "Hello World" app on your beta device from the beta Xcode. If prompted to add a team/profile onto your device, you should go ahead and do so, like usual.
Quit the beta Xcode and start the production Xcode and open the project for the app you want to install. Select "Generic iOS Device" where you choose the active scheme in jump bar and then build the app. You should then see the .app file (not in red) in the Products folder in the "Project Navigator" tree in the left panel.
Install the app on the device by opening the devices window (shift+command+2) and selecting the device in question. In the right panel (or top right panel if you're showing the console, too), you'll find a "Installed Apps" section. Just drag the .app file from the Products folder into this installed apps section.
Clearly, if you have other apps you want to install, you can just repeat steps 2 and 3 as appropriate.
There are a bunch of different ways to install an app on a device, but I find this is the easiest for one-off installs with a device sitting in front of me. You won't be able to debug if you do it this way, but you can at least fire it up, run it through its paces, watch the device console for any debugging messages you may be NSLog'ing, etc.

iPad with iOS 8 or 9 : Can't install enterprise app

I have been trying to install an .ipa using itms-services to an iPad with iOS 9.1. However, it shows the "Install..app?" and "Unable to install.." pop-ups the same as asked in this question:
iOS 8 - Can't Install Enterprise App
The installation is successful in iPhone with iOS 9.1 (same version as iPad). I tried the installation in another iPad with iOS 8.1. I tried the suggested fixes in the accepted answer of the above mentioned question. Also, tried cleaning the Downloads folder using iExplorer. Still unable to download.
I'm able to install app using iTunes, so it's not a provisioning profile issue.
Any suggestions? Thanks in advance.
There are many reasons why this stupid error can occur. To be overly cautious, let's..
1) delete the app from your ipad
2) delete all of the related provisioning profiles from your ipad
3) in xcode make sure you are using the provisioning profile correctly associated with the enterprise account (bundle identifiers must match properly) .. also make sure the DEPLOYMENT TARGET is lower than the ios version on the ipad
4) in xcode -> product-> clean
5) xcode -> product-> archive
6) while its building, turn your ipad off then back on
7) upload the enterprise build
8) try to redownload and install it on the ipad
there is a VERY VERY small chance that your wifi is corrupting the downloaded file, to check, see if you can get it to install on your iphone via wifi as well.
connect the ipad to your computer via usb, while doing the install, open up in xcode -> window -> devices, pick your ipad in the left column and hit the very tiny little square with an up arrow in it to show the console.. clear it before you open the app, then open the app and see what it says, this will give you more clues hopefully of whats going wrong

iOS 8, How to use device for development?

I have a new iPad Retina and I'd like to use it for development with Xamarin Studio and XCode 6. In the past, with XCode 5 you simply connect the device and click the button that says "Use for Development". But XCode 6 doesn't have that button anymore and when I try to build my application to the device in Xamarin Studio i get the error message saying "Could not install the application '/Users/jzacherl/Projects/CyCom/CyCom/CyCom/bin/iPhone/Debug/CyCom.app' on the device iPad: Your application failed code-signing checks. Check your certificates, provisioning profiles, and bundle ids. Probably your device is not part of the selected provisioning profile (error: 0xe8008015).
".
My application should support both iOS 7 and iOS 8. I've tried changing target deployment to and from 7 & 8 and I've tried restarting my mac/device and build/cleaning my project.
Despite the hints here and elsewhere, it took me awhile to find the exact solution. So, for others who are new to Xcode:
The navbar at the top of the main Xcode 6 window has a triangle run/play button, a square stop button, the app's name, then a target name, e.g. "iPhone 6" for one of the simulator options. The target name is actually a drop-down menu! That is where to select your actual device.
Now click the triangle button to build & run. Likely result: "No non-expired provisioning profiles are installed" with a button to "Fix Issue". Click that, wait a bit ... done!
Hat tip (and screenshots): http://www.bignerdranch.com/we-teach/how-to-prepare/ios-device-provisioning/#loc-provisioning-easy
Cross reference to a later question with a more descriptive title: There is NO Use for Development in Xcode's Organizer window
You can register a device with your Developer ID at:
https://developer.apple.com/account/ios/device/deviceList.action
(You will have to be logged into the developer site to do so.)
After that, everything should work fine. You can get your device's UDID from iTunes.
Try building and deploying an Xcode app and see what happens.
I believe Xcode will popup a helpful dialog if you need to do something Xcode can't do automatically.
First you have to register the UDID of the device in iOS member center and add with the provisioning profile and install the provisioning profile
In versions of Xcode prior to Xcode 6, you can connect the device to your computer over USB, open Xcode -> Organizer and select Use for Development.
Use for Development was removed from Xcode in Xcode 6 and later. It is no longer possible to do this for devices using Xcode 6 or later, even with the Devices page
Try going to Window->Devices. You should see your attached device in the list so right click on the device and select Show Provisioning Profiles.It will show a window where you can add your profile.
After that you will be able to install your app in that device.

iPhone 4 - no provisioned iphone os is connected

I'm trying to install an app onto an iPhone 4 and I get:
no provisioned iphone os is connected
I am using:
Xcode 3.2.3
iTunes 9.2
iPhone 4.0 with iOS 4.0 (8A293)
I have the development provisioning profile in XCode and in the phone.
The Organizer window shows the iPhone 4 with a green circle next to it. I have the correct App ID in the bundle identifier in Info.plist.
I've tried powering on/off phone, stopping/re-starting Xcode and iTunes with no luck.
Any ideas what is wrong?
If the profile is installed, you are probably trying to install the app on the device with the build configuration set to "Distribution"... you need to set it to "Debug" or "Release" in the drop-down menu in XCode on the main window.
So, build options should be "Debug" and "Device"
Did you check the status of the Organizer? From Xcode, go under Window->Organizer, and look under the DEVICES section on the left pane. It should show the connected devices, and provide a more detailed explanation (e.g., device is not enabled for development, OS installed on phone is not supported by SDK, etc).
One possibility is that you are running 4.0.1 on your phone, but only have the 4.0 SDK installed.
Double check the provisioning profile is tied to the build you are doing: Right click-> Info on the project icon in Groups & Files then Build and scroll down to Code Signing.
There seem to be a million different things that can go wrong with getting the app to the iPhone, I never get it right the first time.
I've followed this before: http://adeem.me/blog/2009/04/24/tutorial-list-guideline-for-building-ad-hoc-application-for-iphone/
It's for Ad Hoc but most of the steps are the same.
I figured out what the problem was. I had the build set to iPad and I was trying to download to an iPhone! I hope this helps someone else.

Resources