Workaround for Xcode closing after creating macOS app? - xcode11

I installed Xcode 11.2.1 GM seed (I heard that 11.2 was buggy). The issue is that whenever I create any type of macOS app on Xcode, it closes itself after a few seconds. I had Xcode 11.1 and I had the same issue with it too. Has anyone found a solution/workaround for this problem? By the way, my Mac is 10.14.6 and I run it on VMWare Virtual Machine.

I found a workaround to this issue. Weirdly, when you create a macOS app choose "None" for team option. And then the project will open without any sudden crashes.

Related

Unable to update Xcode server from Xcode 9.4.1 to Xcode 10

I updated my Mac Mini to Mojave also updated to Xcode 10, I've Xcode server configured in my Xcode 9.4.1 it was running even having some issues like couldn't able to install IPA directly into the device. Today I updated my Xcode and tried to update the Xcode server, it is throwing an error while starting Apache. Here is the screen shot.
I had the same problem with a new macOS 10.14 installation.
Any chance you have the latest version of macOS Server (5.7.1) installed too? Apparently the Xcode Server initialization process assumes that if you have macOS Server installed, then it can find a bundled version of Apache.
Since Apple gutted macOS Server recently, that assumption no longer holds, and the helper tools crash during initialization (check for xcsreciperunner crash logs).
I was finally able to turn on Xcode Server only after deleting the macOS Server app. Hope this helps.

Xamarin iOS simulator issues - The device was not found

I am trying to use the Xamarin iOS simulator but it fails on launch with a "The device {guid} was not found".
I have my environment settings like...
and when I run I see...
then...
researching the error, the recommendation is to explicitly set the XCode path which I have done, but I get the same error. Also, notice I am connected to our build Mac.
I have a coworker connected to the same Mac with the same computer and VS version I am on, and his iOS simulator works fine. I have uninstalled/reinstalled the simulator and restarted Visual Studio (2017RC).
I appreciate any pointers someone might have!
UPDATE
I reinstalled my Windows 10 OS thinking I had a corrupt install. Unfortunately on a clean machine with 2017RC, the simulator still fails in the same way as I described above.
In my case: UnCheck Remote Simulator to Windows
I am facing the same issue from last two days and solved this as well by removing the latest version of XCode 12.5.
Download the previous version of code i.e 12.4 from apple site and install
Move the downloaded xcode file in application and check on windows
It works fine
Latest version of XCode 12.5 is not stable
I confirm the issue is currently (May 2021) caused by Xcode 12.5 upgrade.
After I downgraded back to Xcode 12.4, the simulators started to work again with no problem.
I tried to upgrade Visual Studio for Windows to latest version 16.9.4, did not help. I launched Visual Studio Installer to reinstall Xamarin, did not help either.
Only when I removed Xcode 12.5 (using this shell script https://onexlab-io.medium.com/uninstall-xcode-from-macos-eca1b69dc836) and installed version 12.4 (from XIP archive from here How to download Xcode DMG or XIP file?) it started to work.
You may need to uncheck "Remote Simulator to Windows." I just fixed this issue for myself by doing so. However, I was trying to launch on the iOS simulator on my Mac side (running Windows vm via Parallels). It seems you might be trying to launch the simulator in windows.
If you need a quick solution, downgrade the version of VS and Xcode, for me this works:
VS 2019 - 16.9.3
Xcode - 12.4
Xamarin.iOS - 14.14.2.5
And for physical devices make sure Hot Restart is not enabled in Tools > Options > Xamarin > iOS settings
Just had the same problem after upgrading mac to Big Sur and Xcode 12.5 yesterday. Reboots and deleting obj/bin/.vs folders made no difference. The fix was to explicitly type the Xcode path into Xamarin options iOS settings - even though it was the default - untick Remote Simulator to Windows then pair/connect to mac from that options dialog. After closing the dialog and reopening it Remote Simulator was checked again. I unchecked it, closed the dialog and reopened it to check again - it was closed this time. All works fine now.
I also ran mac VS and let it update in the midst of all this.
I have the same issue since yesterday, to resolve that I uninstall the "Xamarin iOS simulator" and now it works...
it may be a solution for your issue!
Did you resolved the issue already?
I bumped onto the same issue today. I tried opening Xcode on Mac and it says it need to install additional tools. I let it install and try open/quit Visual Studio for Mac, Xcode, Simulator again (not sure if it is related)
Now to remote simulator works fine again.
I had the same issue and i resolved it by realizing that my PC with VS was on a different network than my Mac with Xcode. Once i put both machines on the same network the issue went away. Hope it helps.

XCODE 8.1 when upgraded to 8.2, couldnt open, Not Responding

MAC OS 10.12.2
XCODE 8.1 upgraded to 8.2
Restarted and opened But no response. Checked ForceQuit > list. Xcode is not responding.
Any suggestion on recovering from this situation
I've faced the similar issue and i think it's because during the update process when Xcode window was open and after the prompt message it kills the Xcode running instance and that probably corrupts the derived data. Try clearing the derived data and it should work as it does on my machine today.

Xcode 5.1.1 - iOS 6.1 Simulator not responding

I need to test an application on an iOS6 simulator. Since this iOS version is not part of the current Xcode6 environment, I tried to install Xcode 5.1.1 beside my Xcode 6 installation and use it.
I downloaded Xcode 5.1.1 from the Apple developer pages and installed in in my applications folder. After launch I am downloading and installing the iOS 6.1 SDK from within Xcode.
After that I am trying to launch the simulator (NOT with an app, just a clean launch) but when the simulator window is shown it keeps black. The log says:
Could not lookup service com.apple.iphonesimulator.host_support: 1102
repeatingly. Clicking "Reset Content and Settings..." wont work. I also deleted the SDK file from
~/Applications/Xcode 2.app/Contents/Developer/Applications/
and the 6.1 Folder from
~/Users/username/Library/Application Support/iPhone Simulator/
And made a fresh install. Also no effect. I know there are a lot of similar questions here on stack, but they all suggest the "Reset Content and Settings..." which wont work for me. Any idea what might going on?
When launching an iOS7.1 simulator from Xcode 5.1.1 it starts up and works like a charm. The iOS7.1 comes with the Xcode bundle, the iOS6.1 simulator has to be installed manually. Maybe that's the problem?
Thanks!
Ok,
i probably found the answer here: In OS X 10.10 (Yosemite Beta), How do I Test Using iOS 6.1 Simulator?
In short: iOS6 is not supported under OS-X 10.10 and so the simulator won't work.

iOS versions on device do not match supported versions by Xcode

When I connect my iPod to MacBook I get this dialog window:
Seems that reinstalling Xcode helped fix the problem.

Resources