Xcode 11.3 crashes on launch in macOS Catalina 10.15 - ios

I've updated my mac to Catalina 10.15 so I can install and work with the latest Xcode version. After installing the software from the App Store, when I click to start it, but it crashes and shows this error message:
Loading a plug-in failed: The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled.
I checked the console and I found:
Legacy client com.apple.dt.Xcode connecting to modern client. You can't mix modern clients with legacy clients. ClientConnect: 0x00007fedb3577170 identifier: com.apple.dt.Xcode pid: 773 type: Application>
And the System.log says:
Dec 20 00:38:08 MacBook-Pro com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.pid.Xcode.837): Failed to bootstrap path: path = /Applications/Xcode.app/Contents/XPCServices/com.apple.dt.Xcode.SymbolicateXPCService.xpc, error = 129: The service was superseded by a later version
Dec 20 00:38:09 MacBook-Pro com.apple.xpc.launchd[1] (com.apple.AMPDeviceDiscoveryAgent): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Can you please tell me what's wrong? and how to solve that so I can run Xcode on my Mac?

Try to set the date of your Mac as October 1st, 2019.
After components has been installed, change the date to current again.

Related

When running 'ionic build ios' on macOS with node 7 I get stuck on this message: stdout maxBuffer exceeded. How could I solve it?

Suddenly I started having this problem when trying to build my iOS app with ionic build ios . I don't understand what could be causing it, because it was running just fine, then in the next day I get this message:
...
...
Running command: HC-Ionic/hooks/after_prepare/010_add_platform_class.js HC-Ionic
Running command: HC-Ionic/hooks/after_prepare/020_remove_sass_from_platforms.js HC-Ionic
stdout maxBuffer exceeded
The only thing I remember doing before this problem started happening was changing my node version sometimes using the application 'n'. But I already uninstalled the versions, set up the right one, but still was not able to figure out, trying to search on the internet.
This is my system info:
Cordova CLI: 8.1.2 (cordova-lib#8.1.1)
Ionic CLI Version: 2.2.3
Ionic App Lib Version: 2.2.1
ios-deploy version: Not installed
ios-sim version: Not installed
OS: macOS
Node Version: v7.10.1
Xcode version: Xcode 12.4 Build version 12D4e
This configuration is necessary because my app only runs with this node version.
Does anyone have any ideas?
I found a solution. Apparently I had too many simulators on xcode and this exceeded the json in the build. If the list exceeds 200kb, node 7 doesn't compile. Just removed some unnecessary simulators and it worked.
Node versions prior to v 12.x use a default maxBuffer value of 1 kilobyte (source), which is realtively small.
Later releases increased the default maxBuffer to 1 megabyte (source) - you should really consider upgrading as the release of Node you're running is ancient (EOL'd in 2017), at least by software standards.

Why does my Xamarin Forms iOS app fail to open in release mode when launched from Visual Studio?

I can launch it by clicking the app on the iPhone simulator itself, and have no issues launching from Visual Studio in debug mode.
Errors: 0, warnings: 0.
The message in my Application output reads:
error HE0042: Could not launch the app [appName] on the device 'iOS
14.2 (18B79) - iPhone 12 mini': The request to open [app] failed.
My simulator’s system.log reads:
com.apple.CoreSimulator.SimDevice.E4CA5C26-862D-4D54-8692-6E6C097A3877[1192]
(UIKitApplication:com.fern.app[1e6f][rb-legacy][1424]): Service could
not initialize: 20B50: xpcproxy_sim + 10650
[839][24AD6C58-C8BA-3A6E-94A2-DBC1AB4FF4B2]: 0x1 Dec 4 17:11:36
Ferns-iMac syslogd[1194]: ASL Sender Statistics Dec 4 17:11:36
Ferns-iMac
com.apple.CoreSimulator.SimDevice.E4CA5C26-862D-4D54-8692-6E6C097A3877[1192]
(UIKitApplication:com.fern.app[1e6f][rb-legacy][1424]): Service exited
with abnormal code: 78
Here’s what I’ve tried without any luck:
Selecting the simulator -> Device -> Erase all content and settings.
Updating all Nuget packages.
Reinstalling Visual Studio 2019 for Mac, 8.9 build 265.
Reinstalling Xcode 12.2.
Reinstalling .NET Core SDK 3.1.403.
Made sure my provisioning profiles are valid.
Asked a colleague to run the same solution and he got the same problem.
Thanks for any help!

System Restart Upon Building in Xcode 11

I'm a beginner Swift developer and this is my first question in Stack Overflow. I've been working on an iOS SpriteKit game in Swift 5, Xcode 11 (updated from Xcode 10.3 as of a week ago). Aside increasing build times over the past few months, everything has been running smoothly.
About a week ago, running my application on any device or simulator began crashing my computer, forcing a restart with a large '!' icon in the background behind text explaining "There was an issue", with a normal startup and login process following. I would receive a dialog explaining "MacBook Pro experienced an issue and had to restart" and I was offered to report the crash to Apple (which I did).
This first occurred when I tried to archive a version of my app. I did research and found that deleting the DerivedData folder from User/Library/Developer/Xcode and the xcuserdata folder from both the project file and the workspace file contents prevented the crash after cleaning the build folder.
Then the same issue arose when I attempted to run my application on my iPhone 8. This time, performing the steps above solved nothing. This time, I analyzed the program instead of running it, which worked. Then, after a day, analyzing caused the system restart. So did a ton of other methods I tried. Up until now, all of the following actions result in a system restart after about 3-5 minutes of starting:
Building and running
Archiving
Analyzing
Building for Testing
In addition, I've tried the above methods after deleting said folders and cleaning the build folder. I've also tried them on the simulators, physical devices, and the Generic iOS Device. Nothing seems to be working.
Below is the system log that occurred during the crash. It is the one that my computer offered to send to Apple. I replaced a portion of the output with [...] as Stack Overflow detected some parts as spam. Willing to provide if needed.
I'm running macOS Mojave 10.14.6 on a 2017 MacBookPro. The latest occurence of this error occurs in Xcode Version 11.0 (11A420a), yet the forced restart issue also arose in Xcode 10.3 and Xcode 11 GM Seed 2.
If additional information is needed, I'll be happy to provide it.
Anonymous UUID: 44******-****-****-****-**********92
Sat Sep 21 21:31:12 2019
*** Panic Report ***
mp_kdp_enter() timed-out on cpu 0, NMI-ing
mp_kdp_enter() NMI pending on cpus: 0 2
mp_kdp_enter() timed-out during locked wait after NMI;expected 4 acks but received 3 after 9361562 loops in 1548000000 ticks
panic(cpu 0 caller 0xffffff80009ecea8): "thread_call group 'high' reached max thread cap (500): active: 1, blocked: 499, idle: 0"#/BuildRoot/Library/Caches/com.apple.xbs/Sources/xnu/xnu-4903.271.2/osfmk/kern/thread_call.c:221
Backtrace (CPU 0), Frame : Return Address
[...]
BSD process name corresponding to current thread: kernel_task
Mac OS version:
18G95
Kernel version:
Darwin Kernel Version 18.7.0: Tue Aug 20 16:57:14 PDT 2019; root:xnu-4903.271.2~2/RELEASE_X86_64
Kernel UUID: C41337A1-0EC3-3896-A954-A1F85E849D53
Kernel slide: 0x0000000000600000
Kernel text base: 0xffffff8000800000
__HIB text base: 0xffffff8000700000
System model name: MacBookPro14,2 (Mac-CAD6701F7CEA0921)
System uptime in nanoseconds: 5389100927958
last loaded kext at 4928689757019: com.apple.filesystems.msdosfs 1.10 (addr 0xffffff7f841db000, size 69632)
last unloaded kext at 305554353504: com.apple.filesystems.msdosfs 1.10 (addr 0xffffff7f841db000, size 61440)
loaded kexts:
com.Cycling74.driver.Soundflower 2
com.valvesoftware.SteamInput 3083.39.62
com.apple.filesystems.msdosfs 1.10
com.apple.fileutil 20.036.15
[...]
com.apple.kec.pthread 1
com.apple.kec.corecrypto 1.0
com.apple.kec.Libm 1
EOF
Model: MacBookPro14,2, BootROM 198.71.1.0.0, 2 processors, Intel Core i5, 3.1 GHz, 8 GB, SMC 2.44f1
Graphics: kHW_IntelIrisGraphics650Item, Intel Iris Plus Graphics 650, spdisplays_builtin
Memory Module: BANK 0/DIMM0, 4 GB, LPDDR3, 2133 MHz, 0x80CE, 0x4B3445364533303445422D45474347202020
Memory Module: BANK 1/DIMM0, 4 GB, LPDDR3, 2133 MHz, 0x80CE, 0x4B3445364533303445422D45474347202020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x171), Broadcom BCM43xx 1.0 (7.77.61.2 AirPortDriverBrcmNIC-1305.8)
Bluetooth: Version 6.0.14d3, 3 services, 18 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB 3.0 Bus
USB Device: Flash Disk
USB Device: Apple T1 Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 41.1
Thunderbolt Bus: MacBook Pro, Apple Inc., 41.1
It looks like I figured it out on my own. I'm going to post the solution here in case any other Xcode developers run into the same issue.
It seems as though the problem lies in the project's directory. Because the entire Xcode project was on a USB disk drive, build times were slowing and restarts were occurring. To fix the issue, I simply created a copy of my project on my computer's drive and ran the program. Everything worked just fine. In fact, build times were much faster.

Error when attempting to add bot to xcode server: "This server cannot build for any platform"

Currently can't add a bot to an xcode server and I'm encountering the following error:
Xcode error
I'm using the latest version of xcode (7.1 7B91b) and OS X server (5.0.15 15S4033) and have not had any luck finding a solution after searching stack overflow or the apple developer forums. I'm able to successfully add the server to a developer machine but the bot creation fails and gives the above error message whenever I get past the screen where you specify the continuous integration interval for xcode server.
Here is the stack trace:
Nov 6 17:45:47 NYCC02PX0LCG8WL com.apple.dt.Xcode.sourcecontrol.Git[4412]: Failed to obtain sandbox extension for path=/var/_xcsd/Library/Caches/com.apple.dt.Xcode.sourcecontrol.Git. Errno:2
Nov 6 17:45:47 NYCC02PX0LCG8WL com.apple.SecurityServer[94]: Session 100033 created
Nov 6 17:45:47 NYCC02PX0LCG8WL com.apple.dt.Xcode.sourcecontrol.Git[4414]: Failed to obtain sandbox extension for path=/var/_xcsd/Library/Caches/com.apple.dt.Xcode.sourcecontrol.Git. Errno:2
Nov 6 17:39:50 NYCC02PX0LCG8WL xcscontrol[98]: ERROR XCSControlCommandLineTool: Got an error persisting version information: Error Domain=XCSCoreDomain Code=503 "Xcode Server is unavailable" UserInfo=0x7f9de1c07a20 {NSLocalizedDescription=Xcode Server is unavailable, NSLocalizedRecoverySuggestion=Check your network connection or contact your server administrator for help.}
Nov 6 17:39:50 NYCC02PX0LCG8WL com.apple.xpc.launchd[1] (com.apple.service.xcode[280]): Service exited with abnormal code: 1
Nov 6 17:39:50 NYCC02PX0LCG8WL com.apple.xpc.launchd[1] (com.apple.service.xcode): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
I had to connect iOS device to XCode Server machine – then it started working fine.
Even if you remove iOS device later, you can still create bots. It was only first time I had to connect.

MonoDevelop fails when trying to debug on device

I'm trying to install the iOS app I'm developing on my device, but each time I try MonoDevelop crashes. First the CPU usage spikes and then it stops responding. It seems to be failing when the debugger tries to connect to the device. The application is installed on the device and I can use the app, but I need to see the application output.
I'm using the newest version of MonoDevelop and version 6.0.0 of MonoTouch. Are there any other users with the same experience who have solved this problem?
edit
this is the version information from monodevelop. I've had to treat it like code because else the stackoverflow editor would have made it unreadable.
MonoDevelop 3.1.1
Installation UUID: cf274ee7-dfe8-4ba8-b44c-2c7a0d9a45ab
Runtime:
Mono 2.10.9 (tarball)
GTK 2.24.10
GTK# (2.12.0.0)
Package version: 210090011
Apple Developer Tools:
Xcode 4.5.2 (1847)
Build 4G2008a
Monotouch: 6.0.6
Mono for Android: 4.4.55
Android SDK: /Users/.../Library/Developer/Xamarin/android-sdk-mac_x86
Supported Android versions:
2.1 (API level 7)
2.2 (API level 8)
2.3 (API level 10)
3.1 (API level 12)
4.0 (API level 14)
4.1 (API level 16)
4.2 (API level 17)
Java SDK: /usr
Xamarin.Mac: Not Installed
Build information:
Release ID: 30101000
Git revision: 5d928ec4f9d5864b4db04a1301b8a8649b43fb9d
Build date: 2012-12-14 19:11:30+0000
Xamarin addins: 80f2dcc8fe4ed316b3e77dde496fc33d90305047
Operating System:
Mac OS X 10.8.2
Darwin ---.local 12.2.0 Darwin Kernel Version 12.2.0
Sat Aug 25 00:48:52 PDT 2012
root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64
I got that a lot in the past, while working with a library that wasn't available for the simulator. For me, it was (probably) related to usb link. What you should try:
Turn off itunes (that one is hard to do, you hear a lot of weird sounds around you when music is down)
Enable debugging over wifi (instead of USB) in monodevelop (Preferences>Debugger>iPhone Debugger)
It helped me, hope it'll help you
Not sure what the problem was in the end. OS X seemed to have gone corrupt and wouldn't even start properly any more. Besides the problems I had with MonoDevelop I also started having problems in different software. The solution was to do a full clean install of OS X. I have now been able to update MonoDevelop and MonoTouch and can once again debug apps on devices.
I'm sorry if my solution can't help any other people directly, but perhaps the answer Stephane Delcroix gave may help you!

Resources