Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Iphone app not showing properly on the device

i have an app which works perfectly on the simulator but on the device in is not as expected. Animations are misplaced and other bugs. But on the simulator it works fine.

My question is how to fix this bug. Here is list of things I already tried:

Restart Mac. Restart Xcode. Clean Project. Rename Project. Delete app from iPhone. Restart iPhone. Shut down iPhone. Clean and build in Xcode.

I really don't know where is the problem. Thank you for your help. Would be really appreciated.

Notice: App is correctly signed.

like image 644
Radim Halfar Avatar asked Dec 07 '25 12:12

Radim Halfar


2 Answers

Make sure your files typed correctly and are case sensitive. The Simulator is not case sensitive but the iPhone is.

like image 163
Eric Avatar answered Dec 10 '25 03:12

Eric


Did you ever move code/xib files into different groups or directories? Sometimes there is a old copy of the file in the original directory after the move. I've had scenarios in which those old files caused the old code to executed when switching between build settings.

If there are duplicate files, make sure you delete those copies at the old location, or those that you don't intend to be used. For instance, if your original directory as ~/Work/App/Resources and the new directory is ~/Work/App/Resources/xibs then delete the duplicated files from ~/Work/App/Resources

Make sense?

Now, after deletions, if files start to show up as red in XCode, that means XCode cannot find them anymore (maybe you deleted one too many, or who knows the state of your workspace). If this happens, use the "File Inspector" to confirm that the location and path XCode is using for the file is correct.

enter image description here

like image 37
Andy Obusek Avatar answered Dec 10 '25 02:12

Andy Obusek