Is it standard that a XCode-Build empties the documents folder of the app on iphone simulator?
How can I prevent that?
when ever you re-build the application or make any other application with same app id ,the document folder for that is not erased .It will be removed only when the app is removed from the simulator.
Related
I am working on app that reads gpx (topografix) file attached to an email. I have successfully registered this document type to my app so whenever I select such a file I get the option to open it by this app on iPhone. It works fine on my iPhone but on iPad my app is not recognised for opening such a file so my app does not appear on the list of apps that are capable to open it. This app uses iPhone environment and is set for iPhone not for universal environment. By changing on universal environment does not change anything. Why is my app not recognised in the list?
Well the conversion of an iphone app to ipad app has to be done if you want to make it universal.
refer this
I'm having a problem with a new App that I'm developing. I have a App with no main icon/logo for the application running, the problem is that everytime I run the App on the device an icon from another App appears on my application, tests that i have made:
I made sure my app certificate was unique and it is.
I checked the app folder for icon images and found nothing.
I cleaned xcode and restarded my mac.
This could happen in the case of not-unique bundle identifier. Your Bundle ID should follow this format:
com.companyname.appname
I'm using iCloud to store small audio files with a simple UIDocument class. Running iOS 5.1 on an iPhone 4s and an iPad 1. The iPad is communicating properly with the iCloud container. As I create documents, I see them pop into the iCloud store from Settings->iCloud->Storage&Backup->ManageStorage->MyAppName on both the iPhone and the iPad. The iPhone, however, seems to be connecting to it's own separate store. Files I create there do not show up in Settings on either device but appear to go to some container somewhere. I can see them when running an NSMetaDataQuery (but I don't see the documents from the real iCloud container).
How the problem began:
When I first created the iCloud entitlement and container identifier, I omitted the "com." prefix from the store name. This worked fine until I submitted an app update to Apple and they immediately rejected the upload citing an invalid iCloud container identifier. My problems began after I changed the identifier. I have deleted and reloaded the app on both devices, but the iPhone is still stuck using what appears to be an invisible iCloud container.
Please help me get my phone back in sync with the real iCloud container. Thanks!
This appears to be an Apple bug with iCloud. I restored my iPhone 4s to its original settings and everything now works fine.
I created an app and when i test it in the simulator it looks perfectly fine and works fine. When i try and test it on my iPhone it doesn't have some buttons and certain things aren't there. It seems to not have the newer stuff I've added to the app and is only loading the unfinished version.
I want to submit it but it wont load the finished version on my iPhone.
What could be the problem ?
I think you are using iPhone 4.0 or later and forgot to set retina images for it...
The problem has two possible causes:
Your image names might have been mis-spelled, case wise. If your image is named "IMAGE.png" and in the code, you load it as "image.png", it will show up on the simulator, but not on the device.
Sometimes, after adding new images and other resources, try cleaning your project and then build and run, if you can't see the new images.
Also, on the physical device, if all else fails, delete the app and then try rebuilding again.
Are you using the same bundle identifier to build multiple apps to your device? That might be an issue as well. Delete all those apps.
This may be because your iOS version of simulator & device may be different check in same ios in simulator which is in your device
I am trying to write an app for jailbreak iphone.
Basically I want to change the home screen wallpaper programatically.
I have got that it can be changed by writing to some /var/Library but exactly how to write to this file in the coding and how to set the permissions
I have learnt that such app need to be run as root. What needs to be done to run the iphone app as root??
Since iOS 4.2.1, the wallpapers are "cpbitmap" files in /var/mobile/Library/SpringBoard/. I'm not aware of any Objective-C code to write to these files, but there should be something out there that you can use. Prior to 4.2.1, the wallpapers are JPEGs in the same folder.
Once you've copied over these images, a respring should make it appear.