+ Reply
Results 1 to 15 of 15

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: App gets stuck on Default.png when put in /Applications, syncs fine with iTunes

is a discussion within the

iPhone / iPod Touch SDK | Development Discussion

forums, a part of the

3rd Party Apps For iPhone | iPod Touch

section;
Hello, I have an app .ipa file for an app that I've written. If I add the ipa file to iTunes, and sync my iPod, the app opens and runs
...
  1. #1
    Green Apple
    Join Date
    May 2010
    Location
    Under Your Bed, Ready to eat you
    Posts
    53
    Thanks
    6
    Thanked 2 Times in 2 Posts

    Question App gets stuck on Default.png when put in /Applications, syncs fine with iTunes
    Hello, I have an app .ipa file for an app that I've written. If I add the ipa file to iTunes, and sync my iPod, the app opens and runs perfectly. However, if I rename the .ipa file to .zip, extract the .app folder, and put it in /Applications so it has the directory structure /Applications/MyApp.app, the app shows up on the home screen. However, if I try to open the app, it loads Default.png and a picture of Default.png stays on the screen but the app never loads. It's not taking a long time either (I left it overnight, and it was still displaying Default.png). Is there a way to make the app load when I put it in /Applications, or do I have to sync it through iTunes? I am looking to distribute it on Cydia, so I hope I don't have to sync it.

    I have tried many things, including chmod -R 755 MyApp.app/, chown -R mobile MyApp.app/, and ldid -S MyApp, and none of them worked. It's still getting stuck on Default.png.
    Don't rewrite your permission groups, that involves reinventing the wheel!

  2. #2
    Green Apple ReverseEffect's Avatar
    Join Date
    Aug 2011
    Location
    Declared in main.h
    Posts
    70
    Thanks
    2
    Thanked 2 Times in 2 Posts

    Put it in a DEB package then install your app again. This should add your bundle to the list of installed packages on your device. I know this sounds weird and kinda pointless to an extent but there's no harm in trying. Btw you'll need APT 0.7 Strict to repackage DEB files. You'll also need to write a control file. I know I'm missing something else because IPA packaged apps are sandboxed and idk of that matters or not. It may.

    Good luck.

    EDIT: When you install a DEB it loads from var/stash/Applications/ which is where jailbreak apps are loaded from.

  3. #3
    Green Apple
    Join Date
    May 2010
    Location
    Under Your Bed, Ready to eat you
    Posts
    53
    Thanks
    6
    Thanked 2 Times in 2 Posts

    Didn't help. In cause you are wondering, the app is the Tic Tac Toe app from cydia. (ID = tictactoeiphone)
    Don't rewrite your permission groups, that involves reinventing the wheel!

  4. #4
    Green Apple ReverseEffect's Avatar
    Join Date
    Aug 2011
    Location
    Declared in main.h
    Posts
    70
    Thanks
    2
    Thanked 2 Times in 2 Posts

    Check your headers to see if everything was declared properly and try to compile your app using an unofficial toolchain or something like that.

    I also looked at your app itself. I could be wrong but I don't think Jailbreak apps allow nib or xib. Again, I could be wrong about that one.
    My brain has an error at line 300: In function brainInitialize: the function "sarcasm" may not respond to "init".

    <a href='http://internetometer.com/give/34221'><img src='http://internetometer.com/image/34221.png'/></a>

  5. #5
    Green Apple
    Join Date
    May 2010
    Location
    Under Your Bed, Ready to eat you
    Posts
    53
    Thanks
    6
    Thanked 2 Times in 2 Posts

    I made the app with Flash Packager for iPhone, and I followed the guide on How to use Adobe's iPhone Packager without an Apple Developer Subscription
    What's weird is that version 2.0 of the app, published for iPhoneOS 3.0 with Flash CS5 worked when I synced it and when I put it in /Applications. Now, Flash CS5.5 doesn't publish a .ipa which works with /Applications, just works when I sync it. Note that I need ******* to sync the app, I don't recommend it at all, this is purely used from a developer standpoint. However, version 2.0 of the app also needed *******, so I don't know what could be wrong.
    Don't rewrite your permission groups, that involves reinventing the wheel!

  6. #6
    Green Apple ReverseEffect's Avatar
    Join Date
    Aug 2011
    Location
    Declared in main.h
    Posts
    70
    Thanks
    2
    Thanked 2 Times in 2 Posts

    I use Theos to do my Jailbroken development. I only develop Jailbreak apps now. Not for the App Store.
    My brain has an error at line 300: In function brainInitialize: the function "sarcasm" may not respond to "init".

    <a href='http://internetometer.com/give/34221'><img src='http://internetometer.com/image/34221.png'/></a>

  7. #7
    Green Apple
    Join Date
    May 2010
    Location
    Under Your Bed, Ready to eat you
    Posts
    53
    Thanks
    6
    Thanked 2 Times in 2 Posts

    But do you know why it would get stuck in /Applications but wouldn't get stuck in ~/Applications?
    Don't rewrite your permission groups, that involves reinventing the wheel!

  8. #8
    Green Apple ReverseEffect's Avatar
    Join Date
    Aug 2011
    Location
    Declared in main.h
    Posts
    70
    Thanks
    2
    Thanked 2 Times in 2 Posts

    From what I understand, Adobe is an official company. So I'm assuming that they would much rather you develop for the official App Store, therefore packaging your applications into IPAs which are "sandboxed" in /Applications (the one that holds all other IPAs). I highly doubt Adobe would consider adding Jailbreak variants to their apps for possible legal issues with Apple. Which is most likely your app won't run alongside the system applications(like most jailbreak apps do), and which is also why I keep suggesting you compile with a compiler that works with DEBs as opposed to IPAs. Now, I've also heard of people developing Jailbreak apps straight through XCode itself. Without a developer's account too.
    My brain has an error at line 300: In function brainInitialize: the function "sarcasm" may not respond to "init".

    <a href='http://internetometer.com/give/34221'><img src='http://internetometer.com/image/34221.png'/></a>

  9. #9
    Green Apple
    Join Date
    May 2010
    Location
    Under Your Bed, Ready to eat you
    Posts
    53
    Thanks
    6
    Thanked 2 Times in 2 Posts

    I'm writing this with Flash Packager for iPhone because I don't own a mac and because I know actionscript and I don't know objective-C. If people can write jb apps with XCode then Flash PFI is clearly not the problem. Please don't tell me to do a complete rewrite in a different programming language with a different toolchain. Thanks.

    Also, I mentioned before that previous version made with flash did not have this problem.
    Don't rewrite your permission groups, that involves reinventing the wheel!

  10. #10
    Green Apple ReverseEffect's Avatar
    Join Date
    Aug 2011
    Location
    Declared in main.h
    Posts
    70
    Thanks
    2
    Thanked 2 Times in 2 Posts

    I don't own a Mac either. I know its your compiler because HACKERS modified XCode to be able to dev JB iPhone apps. It doesn't run out of the box. Theos is easy because you code and compile on the iPhone itself with MobileTerminal. However, I'm just trying to help you out.
    My brain has an error at line 300: In function brainInitialize: the function "sarcasm" may not respond to "init".

    <a href='http://internetometer.com/give/34221'><img src='http://internetometer.com/image/34221.png'/></a>

  11. #11
    Green Apple
    Join Date
    May 2010
    Location
    Under Your Bed, Ready to eat you
    Posts
    53
    Thanks
    6
    Thanked 2 Times in 2 Posts

    I've noticed that some jailbreak apps like AptBackup or MobileTerminal (the one from google code) do have MainWindow.nib's, but most of them don't. I don't think that is the problem though, because mobile terminal opens fine.
    Don't rewrite your permission groups, that involves reinventing the wheel!

  12. #12
    Green Apple ReverseEffect's Avatar
    Join Date
    Aug 2011
    Location
    Declared in main.h
    Posts
    70
    Thanks
    2
    Thanked 2 Times in 2 Posts

    Any other "actionscript" compilers out there? Never actually heard of actionscript so I don't know of any compilers for it. Also, if you really want to use Flash Packager for your apps, a good way to google a question would be "how to make jailbreak iOS apps with flash packager/actionscript", "how to make deb with flash packager/actionscript", etc. Or something similar to that.
    My brain has an error at line 300: In function brainInitialize: the function "sarcasm" may not respond to "init".

    <a href='http://internetometer.com/give/34221'><img src='http://internetometer.com/image/34221.png'/></a>

  13. #13
    Green Apple
    Join Date
    May 2010
    Location
    Under Your Bed, Ready to eat you
    Posts
    53
    Thanks
    6
    Thanked 2 Times in 2 Posts

    Everything I googled points me to the article which I linked to earlier, which I said I followed and it doesn't help.
    Don't rewrite your permission groups, that involves reinventing the wheel!

  14. #14
    Green Apple ReverseEffect's Avatar
    Join Date
    Aug 2011
    Location
    Declared in main.h
    Posts
    70
    Thanks
    2
    Thanked 2 Times in 2 Posts

    Let me ask, what's your goal in all of putting a flash app in Cydia? Just curious? If your app won't work via direct deb, why not indirectly distribute your ipa through Cydia? (IPA inside of a DEB, have the DEB copy the file to var/mobile/Documents/**********/Downloads, and include instructions in your app to install your onboard IPA through **********. You still achieve distributing your app through Cydia. (in a rigged up kind of way)

    EDIT: It blocked out the name because of what the app is commonly used for, but this counts as a legitimate purpose.
    My brain has an error at line 300: In function brainInitialize: the function "sarcasm" may not respond to "init".

    <a href='http://internetometer.com/give/34221'><img src='http://internetometer.com/image/34221.png'/></a>

  15. #15
    Green Apple
    Join Date
    May 2010
    Location
    Under Your Bed, Ready to eat you
    Posts
    53
    Thanks
    6
    Thanked 2 Times in 2 Posts

    AHA!!!!! (No, I didn't solve it, but I'm getting there)

    When I open an app like fruit ninja which is constantly updating the graphics, and I run ps aux over ssh, it says it has the running status (R). When I open an app like facebook or tic tac toe 2.0, it says it has the running status until the graphics stop updating, then it says it's sleeping (S). However, when I open Tic Tac Toe 3.0 (my app), it never says running, it stays on sleeping the whole time that it's open. Now my question is what is causing it to sleep. Is there a way to figure out what the app is waiting on? Thanks!
    Don't rewrite your permission groups, that involves reinventing the wheel!

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts