How i can make modifications to code after i deployed it on iPhone device. i only see summary, info, build settings, build phases and build rules. Don't see all project files which i can open and add changes to it.
Any ideas how to add changes after deploying and testing on real device.
It sounds like you are in the project or target settings. If you see a menu on the left of your screen you should be able to browse the files in your project to make changes. If you do not see that menu, then on the top right corner of the screen there should be 3 buttons with the word "View" underneath them. Click the left-most of those 3 buttons and the menu will show.
#user1120133, if you just run the program on your device again instead of the simulator, it will automatically update everything for you. I think that is what you mean.
Related
I'm trying to build a cordova (version 4) based project with Xcode (for iOS). Everything is working until the process to validate the archive.
I'm build for iOS v > 7 and always have the error:
"iTunes Store operation failed: missing required icon file. The bundle does not contain an app icon for iPhone of exactly '120x120' pixels in .png format for iOS versions.
The thing is, there is such file, as shows in the printscreen!
printscreen with Xcode nav, with the Resources/icons folder
I'm sure the file icon-120.png is exactly 120x120px (I have saved several times it, using Photoshop, Fireworks, https://github.com/AlexDisler/cordova-icon plugin).
I don't know if I have to configure anything else. I have also reloaded Xcode, nothing seems to work by now :-/
go to Xcode, view -> Navigators -> Show Project Navigrator
Go to Resources in the project navigator
Click on Image-xcassets
you will see all the icons that the xcode is using to build. Most likely, you will a lot of warning sign attached to each icon. read the required size from each warning. right click -> go to finder, then change the icon size from preview app as required.
repeat for each icon with warning till you resolve all of them.
I'm trying to localize my app.
I noticed that if I add a language every localized file become doubled.
In this way it's impossible to maintain code or storyboard so I learnt that I need Base internationalization.
The problem is that when I select that checkbox in xcode project setting it shows a window without nothing to select, does anyone know how to fix this?
Here's a screenshot
First, you need to go to your storyboard file, open the bar on the right side, and go to Show the File Inspector, the furthest tab to the left. Then, scroll down and click localize. After this, when you check Use Base Localization, you should see the storyboard appear.
This could happen if Base Internationalization was active before then disabled and files deleted manually.
Create Base.lproj folder in your project folder using the finder.
Move your main story board to it also using the finder.
fix the reference to it from Xcode.
remove app. from device, clean & build your project.
All will be back to normal.
I've applied changes in interface builder for my app which has labels in it. I just changed the name and position of a label and in addition to that I changed the font of a text view in my app. When I started to run my app, the font remains the same as previous one and none of the labels are displayed in it.
Can anyone help it pls?
in Xcode try this: main menu:product:Clean
if not enough: main menu:Xcode:preferences: -> click over locations icon:
click over the little gray right arrow for derived data:
that will show you the finder folder "DerivedData": delete it.
one other thing to try: in simulator, delete your app.
quite your xcode and then again open your project . Clear your build then run your code.
You should also make sure, that the interfacebuilder file is linked to the target you are starting in simulator.
To do this, select your xib and open the File inspector. There you should see a dropdown named "Target Membership" where you can link the xib to the targets you want.
Also be sure to have the labels defined as IBOutlets in your header file and link them correctly in your xib. Easiest way to do this is using the Assistant Editor and drag the outlet to the header file.
I had the same problem - but only on the iPhone non-retina in the simulator. Cleaning the code did not help. Restarting and rebooting did not help. But removing the app from the simulator worked. Now changes to my UI show up next time I run.
To remove the app from the simulator I did it just like on a real phone. I select the app icon with the mouse and hold it down the mouse button for a few seconds. Then the icon displays a small delete icon that you can select (the app icons shakes too).
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).
All I have to do to show a splash screen in a view-based application is drag an image into the resources folder and name it default.png, correct? This is what I did, but the image doesn't show.
When you added it, did you tell it to copy to output location? It was a checkbox on the dialog that showed up after you added it. Try readding and make sure this checkbox is checked.
UPDATE from comments: a clean build fixed the problem
It sounds like what you are doing is correct, but reading through the documentation might help you work out what the problem is.
Perhaps your Default.png is not in the root of your bundle? To check, expand the Products section in the Groups & Files panel, then select Reveal in Finder from the context menu. Then right click on the app bundle in Finder, and select Show Package Contents. You should see your Default.png listed there.