creator v1.8.2,Mac v10.12.6 ,xcode v7.3 和 xcode v9.2
都可成功构建,但是编译失败,错误内容 Error: Compile failed. The log file path [ /Users/jieyang/.CocosCreator/logs/native.log ]
native.log文件中的内容:
Building mode: release
Building…
running: ‘xcodebuild -project “/Users/jieyang/Downloads/client/build/jsb-default/frameworks/runtime-src/proj.ios_mac/WDLMZ.xcodeproj” -configuration Release -target “WDLMZ-mobile” -arch i386 -sdk iphonesimulator CONFIGURATION_BUILD_DIR="/Users/jieyang/Downloads/client/build/jsb-default/publish/ios" VALID_ARCHS=“i386”’
Build settings from command line:
ARCHS = i386
CONFIGURATION_BUILD_DIR = /Users/jieyang/Downloads/client/build/jsb-default/publish/ios
SDKROOT = iphonesimulator9.3
VALID_ARCHS = i386
2018-05-22 14:16:29.038 xcodebuild[6302:6244995] 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 (/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/com.apple.CoreSimulator.CoreSimulatorService.xpc/Contents/MacOS/com.apple.CoreSimulator.CoreSimulatorService) and version (494.33).
2018-05-22 14:16:29.297 xcodebuild[6302:6244995] Failed to locate a valid instance of CoreSimulatorService in the bootstrap. Adding it now.
2018-05-22 14:16:29.310 xcodebuild[6302:6244995] *** Assertion failure in -[SimServiceContext reloadServiceIfMovedOrAbortIfWeAreInvalid], /BuildRoot/Library/Caches/com.apple.xbs/Sources/CoreSimulator/CoreSimulator-209.19/CoreSimulator/SimServiceContext.m:537
** INTERNAL ERROR: Uncaught exception **
Uncaught Exception: The loaded com.apple.CoreSimulator.CoreSimulatorService job does not match our expectations: versionOfLoadedJob: 494.33, our version: 209.19
Stack:
0 __exceptionPreprocess (in CoreFoundation)
1 objc_exception_throw (in libobjc.A.dylib)
2 +[NSException raise:format:arguments:] (in CoreFoundation)
3 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] (in Foundation)
4 -[SimServiceContext reloadServiceIfMovedOrAbortIfWeAreInvalid] (in CoreSimulator)
5 -[SimServiceContext connect] (in CoreSimulator)
6 -[SimServiceContext initWithDeveloperDir:connectionType:] (in CoreSimulator)
7 __63+[SimServiceContext sharedServiceContextForDeveloperDir:error:]_block_invoke_2 (in CoreSimulator)
8 _dispatch_client_callout (in libdispatch.dylib)
9 _dispatch_barrier_sync_f_invoke (in libdispatch.dylib)
10 +[SimServiceContext sharedServiceContextForDeveloperDir:error:] (in CoreSimulator)
11 __60+[SimServiceContext(DVTAdditions) dvt_sharedServiceContext:]_block_invoke (in DVTiPhoneSimulatorRemoteClient)
12 _dispatch_client_callout (in libdispatch.dylib)
13 dispatch_once_f (in libdispatch.dylib)
14 +[SimServiceContext(DVTAdditions) dvt_sharedServiceContext:] (in DVTiPhoneSimulatorRemoteClient)
15 __42-[DVTiPhoneSimulatorLocator startLocating]_block_invoke (in IDEiOSSupportCore)
16 __DVTDispatchAsync_block_invoke (in DVTFoundation)
17 _dispatch_call_block_and_release (in libdispatch.dylib)
18 _dispatch_client_callout (in libdispatch.dylib)
19 _dispatch_queue_override_invoke (in libdispatch.dylib)
20 _dispatch_root_queue_drain (in libdispatch.dylib)
21 _dispatch_worker_thread3 (in libdispatch.dylib)
22 _pthread_wqthread (in libsystem_pthread.dylib)
23 start_wqthread (in libsystem_pthread.dylib)
Build failed: Take a look at the output above for details.
