I am trying to deploy and debug a xamarin.mac app inside a xamarin.forms application. I can build it but am not able to deploy it to my mac. (I am using VS for mac) the error pop up is not helpful either as the link supplied leaves me at a 404 page.
No one else in my team has this issue and build configurations and settings are the same.
Error message
Unable to launch application to debug, possibly due to it crashing quickly.
See https://aka.ms/xm-crash-no-output for more help.
Could not open /Users/sam/myapp: pid returned -1
Unable to find the root cause for the below issue.
App is not launching after adding custom frameworks to the existing app. Xcode logs shows below error and trigger is reaching till main.swift and crashed
objc[425]: Memory corruption in class list.
With Visual Studio for Windows, if I debug my Xamarin.Forms UWP app in "Local Machine" it works fine, but if I choose "Simulator", I get the following error when launching the debug session:
Unable to activate Windows Store app '10509MyNameAndSurname.myappname_6k78edmmrpdam!App'. The activation request failed with error 'Activate Application failed as foreground can not be acquired in Windows Simulator'. See help for advice on troubleshooting the issue.
If I click Help, it sends me to this page, which doesn't really mention my problem above. Any way to fix this? The main reason I want to know if it runs this way is because I'm getting a lot of "Cannot launch App" errors from the Windows App Certification Kit.
I restarted the OS and tried with a Blank App (C#, UWP): and got a different error:
Then I retried debugging my app, and got yet a new error:
Error DEP0700: Registration of the app failed. [0x80073CF6] An
internal error occurred with error 0x80073D05. See
http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app
deployment issues.
The ios app was working fine and I was working and debugging on the simulator, suddenly the app starts and closes, no crash report. The app closes after loading the assembly as per what I can see from the application output log with no crash report. Even the debugger detaches and stopped debugging and comes to it default play state.
Lastly I also see the this error " The call is ambiguous between the calling methods App.InitializeComponent() and App.InitializeComponent(). Basically for all Xaml Pages.
I tried reinstalling all the packages and updating for all Packages(shared/ios/android) but still issue persist.
Screenshot of the package installed.
So I upgraded to Xcode 7.3.1 and now my Xcode will build, and deploy my apps (yes every app, even a brand new blank one) to the simulator but the app never launches on the simulator and the debugger never attaches, Xcode just hangs and has to be force quit. I've completely wiped out Xcode and all simulators and re-installed to no avail. I've scoured Stack Overflow and Google trying every piece of advice and still no luck. Anyone anywhere have any idea how to solve this issue? If I downgrade to 7.2.1 I'm able to debug in the simulator just fine.
Let me know if you need more information.
My Apps run just fine on the simulator, and if I try to attach the debugger to a running app it wont and Xcode hangs in the attempt, when attempting to attach this way at least Xcode doesn't have to be force quit.
FYI, I can debug on a device this is only a simulator issue.
I had this same issue, and tried fixing my projects and reinstalled Xcode twice before I was able to get Simulator to crash and give me an error report that called out Cylance. Luckily I have access to administer our Cylance portal, so I was able to work through the issue to narrow down the problem.
Symptoms:
When running an app from Xcode, the Simulator launches but the application does not launch within the Simulator
Trying to stop the application from within Xcode does not work, and generates no messages
Trying to re-run the application from within Xcode generates the following message: ‘An instance of “APPLICATION NAME” is already running. Choose “Stop” to terminate and launch a new instance.’ But pressing Stop does nothing.
Xcode will not quit, and eventually the user must Force Quit to exit Xcode
Within the OS X console, the following messages are displayed:
6/3/16 7:35:38.000 PM kernel[0]: AMFI: com.apple.dt.ins(pid 2239) - [deny-mmap] main process is a platform binary, but mapped executable file is not: /Library/Application Support/Cylance/Desktop/CyMemDef.dylib
6/3/16 7:35:38.000 PM kernel[0]: AMFI: com.apple.dt.ins(pid 2239) - [deny-mmap] mapped file has team identifier XXXX: /Library/Application Support/Cylance/Desktop/CyMemDef.dylib
Resolution:
The problem is caused by Memory Protection being turned on within the policy assigned to the Mac within the Cylance portal.
To resolve the issue, place the Mac into a zone/policy that does not have Memory Protection turned on. Auto Quarantine and Protection Settings can be left on.
During my testing, I was not able to come up with a list of exclusions that allowed me to leave Memory Protection on, so I ended up disabling it completely.