Install an IPA through USB? - objective-c

After using the "iPhone Configuration Utility" program to install IPA applications to my iPhone on the go, I wondered how this process worked. Within a few Google searches, I found out about "MobileDevice.framework" and the "MobileDevice Library" connected to it. After reading an article of all the Known Functions in the library, I found one called "AMDeviceInstallApplication". I thought this would work once I saw install, but I'm currently perplexed on how to use it.
TL;DR I have IPA files and I want to make an Xcode program (for Mac) that installs the IPA's application to a connected iOS device when a button is pressed.
Also, don't worry about the application not being signed correctly. It is signed with a provisioning profile installed on devices [the application] will be used with.

If you're still interested in this problem I've written a blog entry on how to install apps on a connected iPad / iPhone without using Xcode or iTunes.
This method allows you to run a Terminal command to install an iPA file.
http://pervasivecode.blogspot.co.uk/2012/06/install-ios-app-ipa-file-without-xcode.html
I suppose you could bundle up the terminal commands in your application and use it that way?

I found a simple way to install iPa file to real iPhone or iPad:
Connect iPhone to Mac via USB and follow the below steps:
Steps to follow:
Open Xcode
Click on Window
Select Devices and Simulators
Drag and drop the IPA files into it
App got installed on the iPad

Related

Execute iOS simulator for an Expo project run on a Windows computer on the same network

Currently developing an Expo project on Windows computer using Visual Studio Code, and I want to simulate the project with iOS simulator on my Mac computer on which I have already installed XCode and iOS simulator. However, as the project is saved on my Windows computer, there is no way to run it on my mac computer unless I copy the project to the Mac computer. My question is if it is possible to start a simulator for the project run on a different computer on the same network? In this specific case, I want to run the project on my Windows, and simulate it with iOS simulator on my Mac. Is there any way to do this?
Its better if you just transfer your React Native code to your Mac or just use usb and transfer through Dropbox or P-Cloud. but to answer your question i don't really know much about firewall but if you disable firewall you can get the ip or url and you can go to your mac and go to that link...
But i really suggest for you not to do it because other people can go to your link as well and hackers can hack you...
I really recommend to just transfer your react native code instead...
You can just run your expo project in tunnel mode and connect manually via the connection string to your IOS simulator running on your mac.

Unsigned ipa crashes on launch

I followed this tutorial (Generating an unsigned IPA iOS application) for an application I created. I installed it onto my iphone5s with ifunbox. The problem is when it goes to launch it shows the new launch screen with Xcode 6, where it says the app and that it's copywrited and stuff, and them immediately crashes. In the iOS simulator it runs perfectly. I don't know if I'm missing a step or what. Thanks in advance.
I'm running iOS 8.1, built with Xcode 6, installed on a jailbroken iPhone 5s, written with objective-c on Yosemite. Incase that information helps.
Unsigned apps will be terminated despite iOS being jailbroken. The fix is, you can still sign with a certificate created by yourself or just fake sign with ldid.
The following link explains it in detail.
Link
Link 2
I had the same problem, to fix it I followed this guide, making sure to follow the steps at the bottom (to add SHA1 Hashes, and to put it in my device.) From this guide.
Add Required SHA1 Hashes To Application Binary:
In the Xcode Project Navigator, expand the section "Products".
Right-click the application binary (HelloWorld.app) and select "Show In Finder".
Copy the application binary to the desktop.
Open Terminal on the OSX system where the application was built.
Add the SHA1 hashes to the application binary:
# cd ~/Desktop/
# ldid -S HelloWorld.app/HelloWorld

Installing iOS apps without Apple Developer Program on iOS 7

I'm trying to install my iOS app on to devices running iOS 7.0. I can install them on my iPhone 4 with iOS 5.1 jailbroken. But currently I'm not able to do so on a friend iPad 4 with iOS 7.0.
For installing them on JB devices I'm using JailCoder .
It works without any problem and I can code and compile my test apps, and put them on JB devices without any effort.
Recently trying to investigate possibilities I found an application named PP25 for Windows, it is a chinese application and it is said to be able to install cracked apps on NON-JB devices.
So i tried to see ig it works somehow, I was able to get my apps converted as ipas from my phone and download them to desktop with it, and i can then upload on other JB devices, thanks to a Cydia application named AppSync, pretty good indeed, but I tried and wasn't able to install them on iOS 7.
That was disappointing, I made additional tests and it appears that the PP Assistant application is able to install cracked apps on iOS 7.0 too, but not my unsigned apps (fails to verify the app rights).
Indeed there is a section in the chinese application where you can download and install commercial apps on iOS 7.0, so there must be a trick they use to re-sign the apps to make it appear as it's a legit app and thus be able to upload to the device even if not jailbroken.
If someone has any idea of what they actually do to make this happen, this would be very useful to know to test apps without JB on every device.
Non-jailbroken devices require valid code-signing to execute binaries. Either wait for a jailbreak to surface for iOS7.X, or find a code-signing service (they are available out there).
Using Xcode 7, you can install your app to your device using a freely available Apple ID.
Free On-Device Development
Now everyone can run and test their own app on a device—for free. You can run and debug your own creations on a Mac, iPhone, iPad, iPod touch, or Apple Watch without any fees, and no programs to join. All you need to do is enter your free Apple ID into Xcode. You can even use the same Apple ID you already use for the App Store or iTunes. Once you’ve perfected your app the Apple Developer Program can help you get it on the App Store.
See Launching Your App on Devices for detailed information about installing and running on devices.
Source

How to run iOS .app package within Simulator?

Dev guys from other company, sent me iOS app package that is build with Xcode, but I don't have its Xcode project, just built app package file. How to run that on simulator or on iphone?
UDPATE: I'v tried Simulator launcher but the solution is not working when using Xcode 4.2.1.
UPDATE2: Also tried to use this solution but with no luck (getting black simulator screen and errors shown in terminal after launch). IMHO these problems might be related to iOS 5
UPDATE3: Also, unsuccessfully, tried to use this solution
normally you should be able to install it with itunes, a detailed step-by step guide can be found here: http://www.wikihow.com/Install-Ad-hoc-iPhone-OS-Apps
If it is built for device, you can install it to your device using iTunes or Xcode Organizer. However, you cannot run it on any device. They should also give you a provisioning profile for letting you install that app on your device.
Found the solution. I'v asked the guys to send me "ipa" package instead of raw .app package. Then added it to my iPhone device.

Can I build and compile an app built for jail broken iOS and run as a development app on my device?

Just a quick q about iOS development..
I'd love to be able to run a certain game emulator on my iPad..
If it's released under open source is there any thing stopping me from compiling it and running it in an emulator or getting a provisioning profile and running it on my device?
Do jailbroken apps tend to use libraries that wont run on a vanilla copy of iOS?
I.e. Do they patch the kernel to get full control of the video controller etc..
Thanks
Daniel
I think the jailbroken apps can utilize eglibc or glibc, as when I jailbroke me iPod Touch, I remember looking over the installed packages, and remember seeing something along the lines of glibc.
In short, I think if the app is self-sufficient, you probably could package it with XCode, but if it requires some low-level APIs and libraries, you're out of luck.