iOS应用程序无法启动iPhone模拟器(iPhone 5 - 使用的是iOS 10.0)。
日志有错误
CoreSimulator.log
:
mlaunch[1482] <Error>: Error Domain=FBSOpenApplicationServiceErrorDomain Code=1 "The request to open "com.xamarin.acquaint-native" failed." UserInfo={NSLocalizedDescription=The request to open "com.xamarin.acquaint-native" failed., BSErrorCodeDescription=RequestDenied, NSUnderlyingError=0x7fe15ceb7540 {Error Domain=FBSOpenApplicationErrorDomain Code=1 "(null)" UserInfo={BSErrorCodeDescription=Unspecified}}, NSLocalizedFailureReason=The request was denied by service delegate (SBMainWorkspace) for reason: Unspecified.}
System.log(Debug mode from Xamarin Studio or VS 2015)
:
Nov 10 00:00:01 macmini CoreSimulatorBridge[5136]: Requesting launch of com.companyname.FasterNotesMobile.iOS with options: {
arguments = (
"-monodevelop-port",
51746
);
environment = {
"DYLD_INSERT_LIBRARIES" = "/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/monotouch-fixes.dylib";
};
}
Nov 10 00:00:01 macmini CoreSimulatorBridge[5136]: [Common] [FBSSystemService][0xe350] Sending request to open "com.companyname.FasterNotesMobile.iOS"
Nov 10 00:00:01 macmini com.apple.CoreSimulator.SimDevice.3D2EDEEE-4261-4B99-9B31-971D08B0124E.launchd_sim[5110] (UIKitApplication:com.companyname.FasterNotesMobile.iOS[0xe451][5510]): Program specified by service does not contain one of the requested architectures:
Nov 10 00:00:01 macmini SpringBoard[5127]: [Common] Unable to get pid for 'UIKitApplication:com.companyname.FasterNotesMobile.iOS[0xe451]': No such process (err 3)
Nov 10 00:00:01 macmini SpringBoard[5127]: [Common] Bootstrapping failed for <FBApplicationProcess: 0x7a79b830; com.companyname.FasterNotesMobile.iOS; pid: -1>
Nov 10 00:00:01 macmini CoreSimulatorBridge[5136]: [Common] [FBSSystemService][0xe350] Error handling open request for com.companyname.FasterNotesMobile.iOS: <NSError: 0x7b871a30; domain: FBSOpenApplicationServiceErrorDomain; code: 1 (RequestDenied); reason: "The request was denied by service delegate (SBMainWorkspace) for reason: Unspecified."> {
description = "The request to open "com.companyname.FasterNotesMobile.iOS" failed.";
failureReason = "The request was denied by service delegate (SBMainWorkspace) for reason: Unspecified.";
underlyingError = <NSError: 0x7b871c10; domain: FBSOpenApplicationErrorDomain; code: 1 (Unspecified)> {
description = "The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 1.)";
};
}
Nov 10 00:00:01 macmini CoreSimulatorBridge[5136]: Error Launching: Error Domain=FBSOpenApplicationServiceErrorDomain Code=1 "The request to open "com.companyname.FasterNotesMobile.iOS" failed." UserInfo={NSLocalizedFailureReason=The request was denied by service delegate (SBMainWorkspace) for reason: Unspecified., NSLocalizedDescription=The request to open "com.companyname.FasterNotesMobile.iOS" failed., BSErrorCodeDescription=RequestDenied, NSUnderlyingError=0x7b871c10 {Error Domain=FBSOpenApplicationErrorDomain Code=1 "(null)" UserInfo={BSErrorCodeDescription=Unspecified}}}
Nov 10 00:00:01 macmini com.apple.CoreSimulator.SimDevice.3D2EDEEE-4261-4B99-9B31-971D08B0124E.launchd_sim[5110] (UIKitApplication:com.companyname.FasterNotesMobile.iOS[0xea1e][5511]): Program specified by service does not contain one of the requested architectures:
Nov 10 00:00:01 macmini SpringBoard[5127]: [Common] Unable to get pid for 'UIKitApplication:com.companyname.FasterNotesMobile.iOS[0xea1e]': No such process (err 3)
Nov 10 00:00:01 macmini SpringBoard[5127]: [Common] Bootstrapping failed for <FBApplicationProcess: 0x80a24f00; com.companyname.FasterNotesMobile.iOS; pid: -1>
Nov 10 00:00:05 macmini calaccessd[5164]: 25534103: Beginning CalScheduledTaskCacheTrimAndExtendAndUpdateOverdue
Nov 10 00:00:05 macmini calaccessd[5164]: 25534103: ScheduledTaskCache last saved 499237200
Nov 10 00:00:05 macmini calaccessd[5164]: 25534103: today is EKCalendarDate <0x7c17e740> { date = Thursday, November 10, 2016 at 12:00:00 AM CST }, comparisonResult is -1
Nov 10 00:00:05 macmini calaccessd[5164]: 25534103: Updating overdue with today 500450400.000000
上面的日志用于熟悉预构建应用程序。我尝试了其他几个应用程序,同样的故事。 它曾经工作得很好。 我正在使用最新的Xamarin iOS SDK更新(可能是问题)
答案 0 :(得分:2)
新项目和最新的Xamarin遇到了同样的问题。 为了解决这个问题,我不得不改变#34;支持的体系结构&#34;到&#34; i386&#34;在项目选项中。默认值为&#34; x86_64&#34;。
答案 1 :(得分:0)
你有最新版本的Xcode吗? 除非您的Mac工作站上安装了Xcode 8.2(或8.1,不确定),否则您将无法在IO 10上进行模拟。