How to install a Theos project to device? - ios

I'm new to cydia dev and I downloaded a couple of examples fro iphonedevwiki.
I've got my iPad jailbroken and how do I install the demo Theos tweak to my device? Thanks.
And by the way is iOSOpenDev working for iOS 8?

Once you have compiled your tweak (using make), you need to create a deb package file (using make package). This will create a .deb file. Then you transfer the .deb file to your iPad. Once it is transfered, open an ssh session to it and install it from the command line using:
dpkg -i 'filename.deb'
Of course, the method Cl3ment mentioned works too but this is a step-by-step way of doing it in case you wanted to do some parts manually.

If your device and your computer use the same Wi-Fi network, you need to edit the project's Makefile to add this to its first line :
THEOS_DEVICE_IP = 192.168.1.4
(Of course, replace the IP address with your iDevice's IP)
To install the tweak, you need to use the make package install command within Terminal. It will compile the tweak, then create a .deb package for it, then attempt to install it to your device (you will be prompted for root password two times, and your iDevice will then respring)

Related

Alternative for hybrid web app without knowledge in app/server

i used to upload my ZIP (with HTML5/CSS web app) in phonegap since 4, 5 years and create cool mobile apps. But since some months it's look like Adobe dismiss the project, no more answer on forum etc.
Is there a good solution, when you don't know everything about shift/cocoa/java and server things, to simply upload your webapp (basically a website in a zip) and get IPA/APK ?
I heard about monaco or voltbuilder. Thanks
Not really. Although I can confirm https://build.phonegap.com works for me. If you have an error related to a malformed xml, you can try to delete the project on the website and re-uplading the zip file onto a new project. That's a bug I have experienced in the past.
Otherwise, you can install Cordova and Phonegap on your pc to build it using npm on the terminal (Linux/MacOs).
$ sudo npm install -g cordova
or for windows (CMD):
C:\> npm install -g cordova
then navigate with the command line using cd to go to a folder
eg. cd myfolder.
You can see the files in your current directory with ls (Linux/MacOs) or lsdir (windows)
Once you are in your project's folder and that you can see with lsdir or ls your config.xml file of your project, then you can run those commands to add the platform you want to build:
cordova platform add ios
cordova platform add android
Finally to build the app, you need to:
cordova build
Note: To build an Ipa, you will need to use a device running MacOs since it requires XCode. I highly recommand you to get familiar with Cmd or the terminal if you are building an app.
I hope I have answered your question well

How to export and run iOS project from Kony Visualizer to Xcode?

I am not used to work with kony platform and I have created simple app but I want to export it and run it as native iOS .xcocdeproj.
Kony Visualizer gives you different ways of building and viewing your app, depending on your needs. In Kony Visualizer Enterprise, you can build your app either from the Product menu, or from a command line. And you can view your built app either by previewing it on a mobile device, or by using device emulators and simulators that you configure. Please refer to this docs link to build for iOS using Kony Visualizer.
Please do this below steps.
once Kar file was build. go to your visualizer installation folder and go to plugins and then you can find com.kony.ios_8.2.28.v201811051627.jar file if you are using 8.2.28 version just for example.
Copy above file and rename it as zip file and unzip it.
once unzip was done inside you can find another zip file please unzip. ( ex: 8.2.28.zip)
you can see folder called VMAppWithKonylib.
now go open command-line tool and go to VMAppWithKonylib location.
now go to gen folder location inside your commandline. gen folder will inside VMAppWithKonylib.
7.now run this command - perl extract.pl konyappiphone.KAR
once extract done now go to VMAppWithKonylib and open project in xcode.
let me know if you are facing any more issues.

Access iOS filesystem without jailbreak?

I would like to write/use an open source script that can access iOS filesystem (non-jailbroken). On a Jailbroken device, i use ssh/scp to access, transfer data from the device. Intent is to copy some part of the iOS filesystem (say /var/mobile/Applications/xxx-xxxx/Documents) to a Mac, from a non-Jailbroken device, using some script. I see that tools like iFunBox is able to do it. Would like to know it manages to do so.
I came across mobiledevice.h but could not really understand how to use it.
Also, would prefer getting this done over USB.. for a jailbroken device, i use tcprelay.py for doing the usb tunneling. Is there something i can use for a non jailbroken device?
You can install the ifuse tool, which is hosted here: https://github.com/libimobiledevice/ifuse
In order to compile this tool, you will need the a working set of Gnu-tools (make, libtool, etc).
#Don't worry - clang is still default
sudo port install gcc48
NB: Update your .bash_profile (or similar) to include the following:
#Important - this is where your compiled libs will get installed to, so we need this
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/**
The rest of this process should take a few minutes
Install fuse4x
sudo port install fuse4x
Build the dependencies:
Check out: https://github.com/libimobiledevice/libplist, cd into the checkout, and run:
./autogen.sh
./configure
make
sudo make install
Check out: https://github.com/libimobiledevice/libusbmuxd, cd into the checkout, and run:
./autogen.sh
./configure
make
sudo make install
Check out: https://github.com/libimobiledevice/libimobiledevice, cd into the checkout, and run:
./autogen.sh
./configure
make
sudo make install
(If you're on Linux you'll also need to install usbmuxd, after building libusbmuxd and libimobiledevice. . otherwise, for Windows and OSX . . . )
Now build iFuse:
Check out: https://github.com/libimobiledevice/ifuse
./autogen.sh
./configure
make
sudo make install
To use ifuse to access your app's documents directory:
Make a mount directory:
sudo mkdir -p /Volumes/myapp.app
Now mount the app's dir:
ifuse --container <appid> /Volumes/abced.app
Where app id is the name what's displayed in the bundle identifier . . example:
ifuse --container mycompany.ABCED.com /Volumes/abced.app/
(Refer to the attached pic)
The MobileDeviceManager library brings us simple filesystem operations (it's an easy-to-use Objective-C wrapper around the MobileDevice framework you have come across).
The thing is that it doesn't support copying files from the device to the computer, only the other way around. So, in order to work around this issue, I've created a patch (GitHub gist) that you can merge into the included sample program to have it understand the copyFrom command.

App won't work in background when using dpkg to build my own package

I write a jailbroken app using iOSOpenDev which can play audio in background when a timer fires.
When I use iOSOpenDev to build a .deb package, scp it to my iphone and install it using iFile, it works fine. But when I extract the .app to fold ~/temp, control file to ~/temp/DEBIAN/ , build a .deb package using command dpkg-deb -b ~/temp ~/myapp.deb, install and run it. It won't play music in background untill I bring it back to foreground.
Did I miss something when building the package?
There is no need to use scp and iFile.
With iOSOpenDev's command-line tool iosod there are commands to perform what you're trying to do:
iosod build: Builds a Debian package (does not require dpkg).
iosod install: Installs a Debian package on an iDevice.
There are even commands to remove and purge packages from an iDevice (iosod remove, iosod purge). To see all commands provided, in Terminal type iosod.
I should not only use terminal when building package but also to extracting file, then we can avoid the Finder adding some files, such as .DS_Store, we don't need.

Build and Compile PJSIP For Desktop Mac

How to build and compile PJSIP for desktop Mac?
I have done with iPhone/iPad. But still have an issue, so now I want to try to build in a desktop Mac version.
I followed this link, honestly i dont understand at all how to use it. Because it's different for what I have done in mobile.
Any clue? thanks.
For iphone you had to define the PJ_CONFIG_IPHONE to your config:
#define PJ_CONFIG_IPHONE 1
This part is not needed anymore.
Then you had to call ./configure-iphone
for mac you just have to call ./configure and in the rest is like any other package compilation and installation on linux and unix environment:
# ./configure
# make dep
# make
# make install

Resources