launch screen ghost? - iphone

create a new window based app in xcode4 named 'TestLaunchScreen'
right click on launch image in the project settings and select 'select file' and choose a launch image
runs fine and shows launch screen
delete project folder
create the same project with the same name in the same location
in project settings launch image it says 'no image specified' but when i launch it shows the launch screen from the last app i made?
where outside the project folder is this setting being saved and transfered to new apps with the same name in the same location? if i was on windows i would guess the registry...
thanks a lot!

just try to CLEAN your project, and try Uninstalling your app from the simulator with the X that appears when you keep pressing on the icon in the springboard.

If you have a file in the folder named Default.png, then even if you do not set the default image in the Info.plist file, this will appear as the launch image.
If that isn't the problem, then try deleting the app from the simulator, select Build/Clean All Targets, and launch the app again.

Related

Renamed my project in XCode 6, can't build my project now

EDIT: I ended up creating a new project as suggested by justColbs and moving all of my classes plus the launchscreen.xib file and storyboard file into the new project directly in XCode and it works now! Yay for bugs, and I'm never going to try to rename a project again...
I renamed my project by selecting the .proj file, going to view, utilities, show file inspector. I changed the name in the upper right corner and then a window came up and I couldn't click the rename button, so I clicked don't rename and the play button greyed out.
All that shows up in my Devices list now is Mac OS.
I tried changing the name back, and it is now saying that I don't have a launch screen image for iPhone 4 retina displays, which wasn't an issue before this change.
How can I make it so I can build my project again?

How can i change the app icon while building in Rhomobile

I followed the docs for creating the ios application using Rhomobile.
I have all the icon images placed inside icon folder.
But after opening the application in xcode, it shows the rhomobile default icon.
How and where can i change the icon ?
click on your project name go to TARGETS>>summary>>App icon.
Now drag your icon.
When you runs the command to create the xcode project, in your rhodes folder, one icon.png image is generated. You need to replace that image with yours.
Path : <rhodes_path>/platform/iphone/icon.png
Then you can open the xcode and start building the app.

Finished running on iphone simulator

Since Yesterday when I build and run my app I m getting build Succeeded and Finished running 'appname'on iphone simulator and then it stops running. When I reset the contents of simulator then it shows me the app.This happens to me from yesterday.Before that I used to run as many apps in my simulator.But now when I reset contents then only I can run a new app.
I dont understnd whats wrong with xcode..?
Is there a way that I don't reset content settings everytime for a new app?
Try this..
1.Manually launch the iOS Simulator.
2.From the "iOS Simulator" menu, click "Reset content and settings",
3.Close and rebuild your app.
I fixed it by doing the following..
- clearing the derived data
- resetting the simulator
- shutting down the simulator and having it be launched by xcode after that
I did figure out what it was I was doing to get into the problem. I was trying to copy a folder called Resources to the bundle. Twice doing that got me into the mess. Third time I renamed the folder to just Res and it seemed to work. Seems like "Resources" is a special name for folders in a bundle and you can't use it for your own content.

Removed splash screen still appears in my app

please i make a project under xcode with a splash screen (Default.png). Then, i created new project and i didn't put on it a splash screen, but when i execute it i see this Default.png still appear which i don't want, i deleted the old project to make sure but it still there, help please.
Try to clean the project, and remove the app from your device. If a Default.png is still either in the build directory, or in the app directory on the device, it will appear. Simply removing a file from XCode is not enough to make it disappear while developing.
To remove your app use the Organizer (Window > Organizer). Then select your device, then your app and press the minus button. You could also delete your app from the device in the conventional way: hold icon for few seconds, then click X after it starts to shake.
To clean use Build > Clean (or Product > Clean on Xcode 4).

Why is my icon not being distributed to the device?

During the work on my iPhone application the icon changed from time to time. Colleagues or management came with fancy new ideas and .pngS and all I did was changing the Icon.png in the file system. Most times the new icon was distributed to simulator or device with the very next build, sometimes I had to delete and add th icon.png in Xcode (images), but it worked.
Then, the other day I added the UIPrerenderedIcon element to the info.plist to eliminate the icon's shine (it worked) and since I did, I've problems with bringing new icons to the device:
Simulator shows new icon when in debugging mode
Simulator doesn't present new icon in release mode (only when debugging was used before)
Never new icons on any iPhone or iPod
Whenever icon distribution fails, a white square or (even stranger to me) an old icon (corresponding .png is completly eliminated from the file system) is shown
Any ideas?
Try cleaning all targets, that is most likely the case of the old icon showing up.
Also, this happened to me a few times (with in app images)...
The simulator is case insensitive to file names, but the device IS case sensitive.
So, if in the info.plist you say your icon file is: ICON.png
But the actual file is named: icon.png
Then, the simulator will display the icon, However, the device will not.
When ever you change the icon image Try deleting the old application from the simulator/iPhone and thenm reinstall it.. Some times such problem occur with me too.. and also
FOR icon on iTunes
Make the icon image 512 x 512 JPEG or PNG file named iTunesArtwork. Then go to get info and remove the extension. Note that the file must not have an extension.
After generating the file of your application’s icon, follow these steps to add it to your application:
Open your project in Xcode.
In the Groups & Files list, select the Resources group.
Choose Project > Add to Project, navigate to your iTunesArtwork file, and click Add.
In the dialog that appears, select the ”Copy items” option and click Add.
Note that the PNG or JPEG file is just 'iTunesArtwork', with no suffix.
If you try to copy the file into the application bundle after you have built it, it will break the app signing, and you will get a verification error when trying to sync it to your device. Ensure that the artwork file is included in the "Copy Bundle Resources" folder, within your project's target in XCode (step 4, above).
Then drag and drop your app file to the iTunes for cross checkin whether you have done all things correct or not.
Hope this helps..
Start Application in xcode
1 Change the name of the icon.png to icon1.png
2 Remove the app from the simulator or the device
3 Clean all targets
4 Change icon1.png back to icon.png
5 Run app again