1.7 编译模拟器失败

clone官方仓库v1.7-release分支,按文档在执行“gulp sign-simulator”步骤时出错(打开xcode配置signing然后关闭xcode,终端卡死,输出以下信息)

环境:Mac 10.13.1,xcode 9.1
错误:

[20:08:15] Using gulpfile ~/git-repos/cocos2d-x-lite-zmt/gulpfile.js
[20:08:15] Starting 'sign-simulator'...
2017-11-23 20:08:15.945 Xcode[97151:12664097] [MT] PluginLoading: Required plug-in compatibility UUID C3998872-68CC-42C2-847C-B44D96AB2691 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/HOStringSense.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2017-11-23 20:08:15.946 Xcode[97151:12664097] [MT] PluginLoading: Required plug-in compatibility UUID C3998872-68CC-42C2-847C-B44D96AB2691 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/FuzzyAutocomplete.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2017-11-23 20:08:15.946 Xcode[97151:12664097] [MT] PluginLoading: Required plug-in compatibility UUID C3998872-68CC-42C2-847C-B44D96AB2691 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/ClangFormat.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2017-11-23 20:08:15.946 Xcode[97151:12664097] [MT] PluginLoading: Required plug-in compatibility UUID C3998872-68CC-42C2-847C-B44D96AB2691 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2017-11-23 20:08:17.465 Xcode[97151:12664097] Unknown class GPUTesselationSliderCell in Interface Builder file.
2017-11-23 20:08:37.267 Xcode[97151:12664097] Could not find image named 'DVTInFieldChooseButtonSmall'.
2017-11-23 20:08:37.464 Xcode[97151:12664097] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-13532/IDEKit/NavigableItems/IDENavigableItem.m:1194
Details:  No match from <IDEKeyDrivenNavigableItem 0x7fd695bc1390: (supports Any NSObject, represents: <Xcode3EditingGroup: 0x7fd697005800>)> to <Xcode3Target:0x7fd696af9680:libjscocos2d Mac>. Iterating the whole tree might have taken a significant amount of time.
Object:   <IDEKeyDrivenNavigableItem_Xcode3EditingGroup_Any: 0x7fd695bc1390>
Method:   -_descendantItemForRepresentedObject:stopAtClass:
Thread:   <NSThread: 0x7fd68be047f0>{number = 1, name = main}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
2017-11-23 20:08:38.434 Xcode[97151:12664097] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-13532/IDEKit/NavigableItems/IDENavigableItem.m:1194
Details:  No match from <IDEKeyDrivenNavigableItem 0x7fd67da6c8e0: (supports Any NSObject, represents: <Xcode3EditingGroup: 0x7fd67bcafbf0>)> to <Xcode3Target:0x7fd6925f8ca0:Simulator iOS>. Iterating the whole tree might have taken a significant amount of time.
Object:   <IDEKeyDrivenNavigableItem_Xcode3EditingGroup_Any: 0x7fd67da6c8e0>
Method:   -_descendantItemForRepresentedObject:stopAtClass:
Thread:   <NSThread: 0x7fd68be047f0>{number = 1, name = main}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
objc[97151]: __weak variable at 0x7fd67dc257c0 holds 0xffffffffffffffff instead of 0x7fd694228ef0. This is probably incorrect use of objc_storeWeak() and objc_loadWeak(). Break on objc_weak_error to debug.

objc[97151]: __weak variable at 0x7fd67dc257c0 holds 0xffffffffffffffff instead of 0x7fd694228ef0. This is probably incorrect use of objc_storeWeak() and objc_loadWeak(). Break on objc_weak_error to debug.

objc[97151]: __weak variable at 0x7fd67cac3c50 holds 0x6a0062004f002f instead of 0x7fd694228ef0. This is probably incorrect use of objc_storeWeak() and objc_loadWeak(). Break on objc_weak_error to debug.

@panda

我点开了那个文档,查看了详细说明,我应该是没写错的

由于技术限制,这个命令只会在 后台 打开 XCode,你需要从 docker 里手动点开它,如果你不这么做,这个命令会一直等待下去,直到你关闭那个 XCode 进程

手动点开并设置了签名,然后关闭回到终端,终端一直还是等待状态

Update:
点击关闭按钮关闭xcode后需要手动右键docker里xcode图标选择退出,终端才能结束等待。已解决

Mac 下的所有应用,都是要在 docker 退出才是真正退出。或者我一般按 Cmd + Q

1赞