How to make iOS simulator always stay on top in macOS - ios

I'm using macOS Catalina and VS Code 1.41.1, how to make the iOS simulator always stay on top of other windows?

If you're using Xcode v12.0.0 or higher, you can use Stay On Top option from Window tab.

A plugin exists for this.
Start by installing mySIMBL: https://github.com/w0lfschild/mySIMBL
Next, download this entire repo: https://github.com/rwu823/afloat
Extract the zip file and open the folder in Finder. Navigate to the “bundle” folder. You should see two files: “Afloat.bundle” and “SIMBL-0.9.9.pkg.”
With the mySIMBL application still running, drag and drop the “Afloat.bundle” file to the mySIMBL app window. Ensure that Afloat appears in the mySIMBL Plugins window and that there is a green dot next to it.
Restart your Mac. Afloat should be working now.
To make your app window “Always on Top,” click on the “Window” option in the menu and select “Keep Afloat.”

Related

Can't view files in Xcode after selecting in project navigator

I'm select a file in the project navigator (it is there, it is not red or missing) and Xcode simply does not open the file.
https://twitter.com/zachshakked/status/1453033845931003907 (I added a screen recording here).
I just updated to Xcode 13.1
Lol. My console was covering the entire screen. Cmd+Shift+Y fixed it.

Xamarin app shows black screen on ios11

An application, which works perfectly in simulator on iOS10 shows black screen after slash screen on iOS 11.
Also on real device it shows splash and then black screen, but here I don't have a spare device with iOS10 to confirm it will work differently on older iOS.
Any hint, what could be done to get it running on ios11?
Clarification: I had this application running on ios11 too, but when I needed to fix something in the app, and started Xamarin Studio after long time (since Jan'17), there were a lot of component updates. And now the App shows black screen after splash...
Try to do real clean (delete bin & obj folder) for each project & right click on solution & choose clean {your solution name}. After it is done, right click on solution again & choose rebuild {your solution name}. After all done, try to debug on iOS11 simulator/ device.
If option no.1 is not working, maybe you can try to do breakpoint in finished launching method to see is it everything is working.
I figured this out after a few hours.
My issue was at the Info.plist, below what I did on Visual studio for windows:
Right click on the info.plist and select Open with
Choose iOS manifest editor
Click on the tab visual effect
Go to the Launch Images
Make sure the option Source and Launch Screen are set up properlly
Clean your entire solution
Rebuild project
Try again
in my case Source was set as none.
enter image description here
What worked for me:
Step 1. Replaced the info.plist with that from a fresh new project.
Step 2. Edit only those fields in the file to its original content
which matters (like package name, permissions, etc.)
I am suspecting the below piece of code in info.plist to have caused the issue:
<key>UIApplicationSceneManifest</key>
<dict>
<key>UIApplicationSupportsMultipleScenes</key>
<true/>
</dict>

iOS : Icon occasionally fails to transfer to device

Does anyone know why this happens? My project uses a local network, so it doesn't make sense to test it on just one device, so I want to install it on 20. The way I do this is I build it once and then load it onto each device using the organizer. However, about every 3 or 4 transfers, the icon fails to transfer with it, and instead I am left with a white icon only on the home screen. If I launch it, and then check the multitask bar, the icon is there (and it is shown faded out on the home screen while the multitask bar is active). If I transfer the app again, the icon comes just fine. The devices are all 32 GB iPad 2.
The dimensions of the icon are correct (72x72 RGB24), and the name of the icon is correct (Icon-72.png). I noticed that there are two entries in my info plist: Icon files and Icon files (iOS 5). My deployment target is 5.0, so should I erase the first one? This program is big and takes a long time to transfer and install so I dislike loading it twice. What can I do?
The App icons (retina and normal) need to be placed on the root of your application.
To fix the problem I found that the best is to start the process from scratch:
remove the icons from your project
clean the build
delete Derived Data (Organizer->Projects) *
remove the icons from the app info plist file (Icon files and Icon files iOS5).
drag the icons into the Summary App Icon section
Build
* I do not know if this step is needed but I do it anyway while troubleshooting.
In newer versions of Xcode it doesn't seem to be happening. So I will chalk it up to a quirk in Xcode.

Is there any tool to find any difference between two xcode projects?

Is there any tool available to find the difference between two versions of same xcode project?. So that I can easily get an overview of the changed/newly-added/deleted files.
Thanks,
durai.
The Xcode tools include the FileMerge.app application that does exactly what you're looking for.
It's at <Developer Tools>/Applications/Utilities/FileMerge.app.
You can compare two Xcode project using FileMerge tool available with Xcode.
Below are steps for comparison in Xcode 6.1
Right click on Xcode icon -> Select 'Open Developer Tool' -> Select 'FileMerge' option
This will open window as show below :
Select two Xcode project which is to be compared by clicking Left and Right button
Click on 'Compare' button. This will create list of file that are added, removed or altered
by comparing two Xcode project.
Note : While selecting file for Left/Right go to folder level not Xcode file or workspace
You can check changes in Left/Right, identical between Left/Right or Added/Deleted by selecting feature present in extreme right side of window (if using Xcode 8.2.1)

Iphone Splash Screen never goes away

I inserted a splash screen using default.png - set to one of the pictures on the desktop and now i am trying to use a view and open it that way however the last splash screen keeps appearing. Ive deleted all the code written for it and even the image. Not just removed reference but also deleted. I dont know where xcode finds the image to display it but the old image keeps appearing so i need to change it. I restarted xcode cleaned built no change. Let me know if im missing something.
In the project navigator, click on the application target. Click on the application target under Targets. Click on the Summary tab and look at the section "iPhone / iPod Deployment Info." There you can see the launch image. You can right-click to see the file being used in the Finder or you can delete it.
Update: Using XCode 4.1, I was seeing problem even after deleting it using above approach. I had to both clean the build and delete the app from device/simulator before rerunning it.

Resources