質問

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top