加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ios – (模拟器iPhone 4s不可用.)在验证期间

发布时间:2020-12-14 17:35:31 所属栏目:百科 来源:网络整理
导读:我尝试将我的pod更新为 Xcode 8和 Swift 3语法,我确实运行了以下项目命令: pod spec lint BSTableViewReorder.podspec 它会产生错误: - BSTableViewReorder (1.3) - ERROR | [iOS] unknown: Encountered an unknown error (/Applications/Xcode.app/Conten
我尝试将我的pod更新为 Xcode 8和 Swift 3语法,我确实运行了以下项目命令:

pod spec lint BSTableViewReorder.podspec

它会产生错误:

 -> BSTableViewReorder (1.3)
    - ERROR | [iOS] unknown: Encountered an unknown error (/Applications/Xcode.app/Contents/Developer/usr/bin/xcrun simctl list devices

2016-08-25 11:58:10.561 simctl[34169:531955] CoreSimulator is attempting to unload a stale CoreSimulatorService job.  Detected Xcode.app relocation or CoreSimulatorService version change.  Framework path (/Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework) and version (209.19) does not match existing job path (/Users/kuna/Downloads/Xcode-beta.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/com.apple.CoreSimulator.CoreSimulatorService.xpc/Contents/MacOS/com.apple.CoreSimulator.CoreSimulatorService) and version (303.7).
2016-08-25 11:58:10.819 simctl[34169:531955] Failed to locate a valid instance of CoreSimulatorService in the bootstrap.  Adding it now.
2016-08-25 11:58:10.839 simctl[34169:531955] *** Assertion failure in -[SimServiceContext reloadServiceIfMovedOrAbortIfWeAreInvalid],/BuildRoot/Library/Caches/com.apple.xbs/Sources/CoreSimulator/CoreSimulator-209.19/CoreSimulator/SimServiceContext.m:536
2016-08-25 11:58:10.857 simctl[34169:531955] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException',reason: 'The loaded com.apple.CoreSimulator.CoreSimulatorService job does not match our expectations: pathOfLoadedJob: /Users/kuna/Downloads/Xcode-beta.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/com.apple.CoreSimulator.CoreSimulatorService.xpc/Contents/MacOS/com.apple.CoreSimulator.CoreSimulatorService,our frameworkPath: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework'
*** First throw call stack:
(
    0   CoreFoundation                      0x00007fff87a934f2 __exceptionPreprocess + 178
    1   libobjc.A.dylib                     0x00007fff93c8973c objc_exception_throw + 48
    2   CoreFoundation                      0x00007fff87a981ca +[NSException raise:format:arguments:] + 106
    3   Foundation                          0x00007fff8aaa8856 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 198
    4   CoreSimulator                       0x00000001099953e9 -[SimServiceContext reloadServiceIfMovedOrAbortIfWeAreInvalid] + 1313
    5   CoreSimulator                       0x0000000109995d01 -[SimServiceContext connect] + 41
    6   CoreSimulator                       0x00000001099947a6 -[SimServiceContext initWithDeveloperDir:connectionType:] + 1108
    7   CoreSimulator                       0x0000000109994071 __63+[SimServiceContext sharedServiceContextForDeveloperDir:error:]_block_invoke_2 + 127
    8   libdispatch.dylib                   0x00007fff923fb40b _dispatch_client_callout + 8
    9   libdispatch.dylib                   0x00007fff923fc9f2 _dispatch_barrier_sync_f_invoke + 74
    10  CoreSimulator                       0x0000000109993ea6 +[SimServiceContext sharedServiceContextForDeveloperDir:error:] + 226
    11  CoreSimulator                       0x00000001099941ee +[SimServiceContext sharedServiceContext] + 51
    12  simctl                              0x0000000109982a71 simctl + 31345
    13  libdyld.dylib                       0x00007fff95ba65ad start + 1
    14  ???                                 0x0000000000000003 0x0 + 3
)
libc++abi.dylib: terminating with uncaught exception of type NSException
) during validation.

更新:
在我将Xcode的名称从Xcode beta切换到Xcode之后,出现以下错误:

Encountered an unknown error (Simulator iPhone 4s is not available.) during validation.

如何解决这个问题?

解决方法

只需安装iOS 9.3模拟器:

enter image description here

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读