I have been debugging using IOS simulator and Xamarin for Mac for quite a while now. Since the latest upgrades it no longer works.
When I press debug the simulator opens correctly but thats were it ends. Project is not loaded into the simulator and it just stops debugging with no error.
I also removed Xcode and Xamarin and installed fresh. Latest Xcode and new Visual Studio for Mac.
Same problem Simulator launches but no app debugging.
How can I start to debug this issue? When I look at the system log for the simulator it seems its not getting any input from VS at all.
Turns out this problem with this was the project file. I guess in upgrading Xamarin to VS something went wrong and i needed to create a new project file and move all the files over. Once that was done it started working in the simulator again.
Answers
Here is the build log for the Simulator. The app works correctly on a device. I had to shorten some of the log to get it to post.
Building Solution: VendIT.iPad (Debug|iPhoneSimulator)
Build started 2017-09-22 3:49:36 PM.
Project "/Users/martinmcnally/Documents/VendIT/VendIT.iPad/VendIT.iPad.csproj" (Build target(s)):
Target PrepareForBuild:
MakeDir Task
Directories:
bin/iPhoneSimulator/Debug/
obj/iPhoneSimulator/Debug/
Target _DetectAppManifest:
FindItemWithLogicalName Task
Items:
app.config
GettingStarted.Xamarin
Info.plist
packages.config
Images/.DS_Store
Images/VendIT.ipa
LogicalName: Info.plist
ProjectDir: /Users/martinmcnally/Documents/VendIT/VendIT.iPad
ResourcePrefix: Resources
Target _ComputeTargetArchitectures:
ParseDeviceSpecificBuildInformation Task
Architectures: i386
IntermediateOutputPath: obj/iPhoneSimulator/Debug/
OutputPath: bin/iPhoneSimulator/Debug/
TargetFrameworkIdentifier: Xamarin.iOS
TargetiOSDevice: <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
device
architecture
i386, x86_64
model
iPad4,2
os
iOS
os-version
11.0
Target _DetectSdkLocations:
DetectSdkLocations Task
TargetFrameworkIdentifier: Xamarin.iOS
TargetArchitectures: i386
SdkVersion: 11.0
XamarinSdkRoot: /Library/Frameworks/Xamarin.iOS.framework/Versions/Current
SdkRoot: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk
SdkDevPath: /Applications/Xcode.app/Contents/Developer
SdkUsrPath: /Applications/Xcode.app/Contents/Developer/usr
SdkPlatform: iPhoneSimulator
SdkIsSimulator: True
Target _BeforeCoreCompileInterfaceDefinitions:
Skipping target "_BeforeCoreCompileInterfaceDefinitions" because all output files are up-to-date with respect to the input files.
Target _CoreCompileInterfaceDefinitions:
Skipping target "_CoreCompileInterfaceDefinitions" because all output files are up-to-date with respect to the input files.
Target _BeforeCoreCompileImageAssets:
Skipping target "_BeforeCoreCompileImageAssets" because all output files are up-to-date with respect to the input files.
Target _CoreCompileImageAssets:
Skipping target "_CoreCompileImageAssets" because all output files are up-to-date with respect to the input files.
Target _CollectColladaAssets:
CollectBundleResources Task
BundleResources:
OptimizePropertyLists: False
OptimizePNGs: False
ProjectDir: /Users/martinmcnally/Documents/VendIT/VendIT.iPad
ResourcePrefix: Resources
Target _CoreCompileColladaAssets:
Skipping target "_CoreCompileColladaAssets" because it has no inputs.
Target _BeforeCoreCompileSceneKitAssets:
Skipping target "_BeforeCoreCompileSceneKitAssets" because it has no inputs.
Target _BeforeCoreCompileSceneKitAssets:
Skipping target "_BeforeCoreCompileSceneKitAssets" because it has no inputs.
Target _BeforeCoreCompileSceneKitAssets:
Skipping target "_BeforeCoreCompileSceneKitAssets" because it has no inputs.
Target _CoreCompileSceneKitAssets:
Skipping target "_CoreCompileSceneKitAssets" because it has no inputs.
Target _BeforeCompileTextureAtlases:
Skipping target "_BeforeCompileTextureAtlases" because it has no inputs.
Target _BeforeCompileTextureAtlases:
Skipping target "_BeforeCompileTextureAtlases" because it has no inputs.
Target _BeforeCompileTextureAtlases:
Skipping target "_BeforeCompileTextureAtlases" because it has no inputs.
Target _CoreCompileTextureAtlases:
Skipping target "_CoreCompileTextureAtlases" because it has no inputs.
Target _CollectBundleResources:
CollectBundleResources Task
BundleResources:
Entitlements.plist
Images/VendingMachineIcon.png
Images/Icon-76.png
Images/[email protected]
Images/Icon-Small-40.png
Images/Icon-Small.png
Images/[email protected]
Images/Icon-72.png
Images/[email protected]
Images/Icon-Small-50.png
Images/[email protected]
Images/Icon-167.png
Images/VendingMachineIcon_Green.png
Images/VendingMachineIcon_Red.png
Images/VendingMachineIcon_Yellow.png
Images/Icon-29.png
Images/[email protected]
Images/[email protected]
Images/[email protected]
Images/Icon-57.png
Images/[email protected]
Images/[email protected]
Images/[email protected]
OptimizePropertyLists: True
OptimizePNGs: True
ProjectDir: /Users/martinmcnally/Documents/VendIT/VendIT.iPad
ResourcePrefix: Resources
Target _CoreOptimizePngImages:
Skipping target "_CoreOptimizePngImages" because all output files are up-to-date with respect to the input files.
Target _CoreOptimizePropertyLists:
Skipping target "_CoreOptimizePropertyLists" because all output files are up-to-date with respect to the input files.
Target _CoreOptimizeLocalizationFiles:
Skipping target "_CoreOptimizeLocalizationFiles" because it has no inputs.
Target _UnpackLibraryResources:
UnpackLibraryResources Task
Prefix: monotouch
IntermediateOutputPath: obj/iPhoneSimulator/Debug/device-builds/ipad4.2-11.0/
NoOverwrite:
obj/iPhoneSimulator/Debug/device-builds/ipad4.2-11.0/ibtool-link/MainStoryboard.storyboardc/1208-view-1209.nib
... some files removed ....
Target GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
Target CoreCompile:
Skipping target "CoreCompile" because all output files are up-to-date with respect to the input files.
Target _CopyFilesMarkedCopyLocal:
Copy Task
DestinationFiles:
bin/iPhoneSimulator/Debug/Mindscape.Raygun4Net.Xamarin.iOS.Unified.dll
bin/iPhoneSimulator/Debug/ModernHttpClient.dll
bin/iPhoneSimulator/Debug/ModernHttpClient.dll.mdb
bin/iPhoneSimulator/Debug/ModernHttpClient.dll.mdb
DestinationFolder:
OverwriteReadOnlyFiles: False
Retries: 10
RetryDelayMilliseconds: 1000
SkipUnchangedFiles: True
SourceFiles:
/Users/martinmcnally/Downloads/Mindscape.Raygun4Net.Xamarin.iOS.Unified.dll
/Users/martinmcnally/Documents/VendIT/VendIT/packages/modernhttpclient.2.4.2/lib/Xamarin.iOS10/ModernHttpClient.dll
/Users/martinmcnally/Documents/VendIT/VendIT/packages/modernhttpclient.2.4.2/lib/Xamarin.iOS10/ModernHttpClient.dll.mdb
/Users/martinmcnally/Documents/VendIT/VendIT/packages/modernhttpclient.2.4.2/lib/Xamarin.iOS10/ModernHttpClient.dll.mdb
UseHardlinksIfPossible: False
Touch Task
AlwaysCreate: True
Files:
/Users/martinmcnally/Documents/VendIT/VendIT.iPad/obj/iPhoneSimulator/Debug/VendIT.iPad.csproj.CopyComplete
ForceTouch: False
Time:
Touching "/Users/martinmcnally/Documents/VendIT/VendIT.iPad/obj/iPhoneSimulator/Debug/VendIT.iPad.csproj.CopyComplete".
Target _CopyAppConfigFile:
Skipping target "_CopyAppConfigFile" because all output files are up-to-date with respect to the input files.
Target CopyFilesToOutputDirectory:
Copy Task
DestinationFiles:
DestinationFolder: bin/iPhoneSimulator/Debug/
OverwriteReadOnlyFiles: False
Retries: 10
RetryDelayMilliseconds: 1000
SkipUnchangedFiles: True
SourceFiles:
obj/iPhoneSimulator/Debug/VendITiPad.exe
UseHardlinksIfPossible: False
VendIT.iPad -> /Users/martinmcnally/Documents/VendIT/VendIT.iPad/bin/iPhoneSimulator/Debug/VendITiPad.exe
Copy Task
DestinationFiles:
bin/iPhoneSimulator/Debug/VendITiPad.pdb
DestinationFolder:
OverwriteReadOnlyFiles: False
Retries: 10
RetryDelayMilliseconds: 1000
SkipUnchangedFiles: True
SourceFiles:
obj/iPhoneSimulator/Debug/VendITiPad.pdb
UseHardlinksIfPossible: False
Target IncrementalClean:
Delete Task
Files:
TreatErrorsAsWarnings: True
Target _CleanUploaded:
Delete Task
Files:
bin/iPhoneSimulator/Debug/device-builds/ipad4.2-11.0/.uploaded
TreatErrorsAsWarnings: False
Target _DetectSigningIdentity:
DetectSigningIdentity Task
AppBundleName: VendITiPad
AppManifest: Info.plist
Keychain:
ProvisioningProfile:
RequireCodesigning: False
RequireProvisioningProfile: False
SdkPlatform: iPhoneSimulator
SdkIsSimulator: True
SigningKey: iPhone Developer
Detected signing identity:
Bundle Id: ca.westerndatabase.vendit
App Id: ca.westerndatabase.vendit
Target _ComputeBundleResourceOutputPaths:
ComputeBundleResourceOutputPaths Task
AppBundleDir: bin/iPhoneSimulator/Debug/device-builds/ipad4.2-11.0/VendITiPad.app
BundleIdentifier: ca.westerndatabase.vendit
BundleResources:
obj/iPhoneSimulator/Debug/device-builds/ipad4.2-11.0/ibtool-link/MainStoryboard.storyboardc/1208-view-1209.nib
obj/iPhoneSimulator/Debug/device-builds/ipad4.2-11.0/ibtool-link/MainStoryboard.storyboardc/1648-view-1649.nib
obj/iPhoneSimulator/Debug/device-builds/ipad4.2-11.0/ibtool-link/MainStoryboard.storyboardc/2308-view-2309.nib
obj/iPhoneSimulator/Debug/device-builds/ipad4.2-11.0/ibtool-link/MainStoryboard.storyboardc/2721-view-2722.nib
obj/iPhoneSimulator/Debug/device-builds/ipad4.2-11.0/ibtool-link/MainStoryboard.storyboardc/2847-view-2848.nib
obj/iPhoneSimulator/Debug/device-builds/ipad4.2-11.0/ibtool-link/MainStoryboard.storyboardc/660-view-661.nib
obj/iPhoneSimulator/Debug/device-builds/ipad4.2-11.0/ibtool-link/MainStoryboard.storyboardc/Info.plist
obj/iPhoneSimulator/Debug/device-builds/ipad4.2-11.0/ibtool-link/MainStoryboard.storyboardc/UISplitViewController-678.nib
obj/iPhoneSimulator/Debug/device-builds/ipad4.2-11.0/ibtool-link/MainStoryboard.storyboardc/VC_EditMachine.nib
obj/iPhoneSimulator/Debug/device-builds/ipad4.2-11.0/ibtool-link/MainStoryboard.storyboardc/VC_HomeScreen.nib
obj/iPhoneSimulator/Debug/device-builds/ipad4.2-11.0/ibtool-link/MainStoryboard.storyboardc/VC_MachineDisplay.nib
obj/iPhoneSimulator/Debug/device-builds/ipad4.2-11.0/ibtool-link/MainStoryboard.storyboardc/VC_StatsHourly.nib
obj/iPhoneSimulator/Debug/device-builds/ipad4.2-11.0/ibtool-link/MainStoryboard.storyboardc/VS_StatsHourly.nib
obj/iPhoneSimulator/Debug/device-builds/ipad4.2-11.0/ibtool-link/iPhone.storyboardc/5-view-6.nib
obj/iPhoneSimulator/Debug/device-builds/ipad4.2-11.0/ibtool-link/iPhone.storyboardc/Info.plist
... some files removed ...
Target _CopyResourcesToBundle:
Skipping target "_CopyResourcesToBundle" because all output files are up-to-date with respect to the input files.
Target _CreateAssetPackManifest:
CreateAssetPackManifest Task
AppBundleDir: bin/iPhoneSimulator/Debug/device-builds/ipad4.2-11.0/VendITiPad.app
InitialInstallTags:
OutputPath: bin/iPhoneSimulator/Debug/device-builds/ipad4.2-11.0/
PrefetchOrder:
Target _DetectDebugNetworkConfiguration:
DetectDebugNetworkConfiguration Task
DebugOverWiFi: False
DebuggerHosts:
SdkIsSimulator: True
DebugIPAddresses: 127.0.0.1
Target _CompileAppManifest:
Skipping target "_CompileAppManifest" because all output files are up-to-date with respect to the input files.
Target _GetNativeExecutableName:
GetNativeExecutableName Task
AppManifest: bin/iPhoneSimulator/Debug/device-builds/ipad4.2-11.0/VendITiPad.app/Info.plist
Target _ParseExtraMtouchArgs:
ParseExtraMtouchArgs Task
ExtraArgs:
NoSymbolStrip: False
NoDSymUtil:
NoSymbolStrip Output: False
NoDSymUtil Output: false
Target _CompileToNative:
Skipping target "_CompileToNative" because all output files are up-to-date with respect to the input files.
Target _CreateDebugSettings:
CreateDebugSettings Task
AppBundleDir: bin/iPhoneSimulator/Debug/device-builds/ipad4.2-11.0/VendITiPad.app
DebuggerPort: 10000
Target _CreateDebugConfiguration:
CreateDebugConfiguration Task
AppBundleDir: bin/iPhoneSimulator/Debug/device-builds/ipad4.2-11.0/VendITiPad.app
DebugOverWiFi: False
DebugIPAddresses: 127.0.0.1
DebuggerPort: 10000
SdkIsSimulator: True
Target _CreatePkgInfo:
CreatePkgInfo Task
OutputPath: bin/iPhoneSimulator/Debug/device-builds/ipad4.2-11.0/VendITiPad.app/PkgInfo
Target _CopyAppExtensionsToBundle:
RemoveDir Task
Directories:
bin/iPhoneSimulator/Debug/device-builds/ipad4.2-11.0/VendITiPad.app/PlugIns/_CodeSignature
bin/iPhoneSimulator/Debug/device-builds/ipad4.2-11.0/VendITiPad.app/../.dSYM
Directory "bin/iPhoneSimulator/Debug/device-builds/ipad4.2-11.0/VendITiPad.app/PlugIns/_CodeSignature" doesn't exist. Skipping.
Directory "bin/iPhoneSimulator/Debug/device-builds/ipad4.2-11.0/VendITiPad.app/../.dSYM" doesn't exist. Skipping.
Target _ValidateAppBundle:
ValidateAppBundle Task
AppBundlePath: /Users/martinmcnally/Documents/VendIT/VendIT.iPad/bin/iPhoneSimulator/Debug/device-builds/ipad4.2-11.0/VendITiPad.app/
SdkIsSimulator: True
TargetFrameworkIdentifier: Xamarin.iOS
Target _CodesignNativeLibraries:
CodesignNativeLibraries Task
AppBundleDir: bin/iPhoneSimulator/Debug/device-builds/ipad4.2-11.0/VendITiPad.app
CodesignAllocate: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
DisableTimestamp: True
IntermediateOutputPath: obj/iPhoneSimulator/Debug/device-builds/ipad4.2-11.0/codesign
Keychain:
SigningKey: -
ExtraArgs:
Target _CollectFrameworks:
CollectFrameworks Task
AppBundlePath: bin/iPhoneSimulator/Debug/device-builds/ipad4.2-11.0/VendITiPad.app/
No Frameworks directory found.
Target _CodesignAppBundle:
Skipping target "_CodesignAppBundle" because it has no inputs.
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:00.28
---------------------- Done ----------------------
Build successful.
@MartinMcNally I had same issue (I was on Alpha channel) and resolved it by switching to Stable. Also make sure to open Xcode once its updated so that it initializes itself. Hope this helps
Hi, it looks like this issue is also tracked on IOS Simulators Not Working With Upgrade to Xcode 9 in the Visual Studio for Mac Developer Community space. I'll pick up the conversation there.
I noticed the other day after I first started working with simulators in XCode 9, that the Simulator's Debug->Open System Log does not really open up the simulators log as it used to. Instead you have to open the Console.app and select the simulator in the upper left pane. Then you will get the live simulator logs and perhaps that will reveal a better message as to why the app is not getting installed. It may help to filter for your app's bundle id by entering it in the search field in the upper right of the Console.app window.
This still does not work. Is anyone else having this problem or is it just me? Xcode 9 and VS 7.2 Preview. The IOs Simulators dont work.
Turns out this problem with this was the project file. I guess in upgrading Xamarin to VS something went wrong and i needed to create a new project file and move all the files over. Once that was done it started working in the simulator again.
> Turns out this problem with this was the project file. I guess in upgrading Xamarin to VS something went wrong and i needed to create a new project file and move all the files over. Once that was done it started working in the simulator again.
This doesn't work even when I create a new blank project, still doesn't debug.