Reputation: 167
I got following error message:
SyscallError: setpriority(PRIO_DARWIN_ROLE, 412, 3): No such process
in the ios device log when trying to run my xamarin.ios project after updating to xcode 11.0 and the lastest Visual Studio for mac.
The reason why I updated xcode was because there was a xamarin.ios update that was incompatible with the xcode version I was using; 10.3
My application starts, it shows the splash and then just stops running/crashes.
Here's what I've tried:
Has anyone experienced this issue and found a solution? All assistance would be highly appreciated.
Upvotes: 1
Views: 756
Reputation: 11
@CliftonSteenkamp I just stumbled across this while looking for something else; however, we recently had the exact same issue happen. I don't believe it was related to updating the SDK version; but the exact same line ended up in the comments of the line above. I can't see this happening to two people around the same time as being a coincidence. There may be more to what you're saying than a simple key press.
I should say the developer who this happened to did not update his version of Xamarin. I updated mine and to Xcode 11+; but he did not. So it could still be related.
Upvotes: 1
Reputation: 167
After days of investigation, trial-and-error and even updating my macOS to Catalina, I found the issue. Surprisingly it was something small and stupid(one line of code), would have honestly never thought of it. Anyway the issue was a line of code in my Main.cs
that I somehow moved up to a commented line, perhaps I was clearing some line breaks.
This is what my Main.cs
looked like:
public class Application
{
// This is the main entry point of the application.
static void Main(string[] args)
{
// if you want to use a different Application Delegate class from "AppDelegate
//you can specify it here. UIApplication.Main(args, null, "AppDelegate");
}
}
This is obviously what it was supposed to look like:
public class Application
{
// This is the main entry point of the application.
static void Main(string[] args)
{
// if you want to use a different Application Delegate class from "AppDelegate
//you can specify it here.
UIApplication.Main(args, null, "AppDelegate");
}
}
The entry into my application had basically been commented out.
I apologise for wasting your time @LucasZhang-MSFT, regardless of that, I appreciate all your efforts.
Upvotes: 1