Xcode升级到10.0后,cocos creator编译失败

018-09-18T08:26:42.441Z - normal: The log file path [ /Users/Mac01/.CocosCreator/logs/native.log ]
2018-09-18T08:26:42.952Z - failed: Error: Compile failed. The log file path [ /Users/Mac01/.CocosCreator/logs/native.log ]
at ChildProcess. (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/core/native-utils.js:1:18737)
at ChildProcess. (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/core/native-utils.js:1:7408)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Socket. (internal/child_process.js:334:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:493:12)
2018-09-18T08:26:52.164Z - normal: Checked Python Version [2.7.10]
2018-09-18T08:26:53.381Z - normal: Start to compile native project. Please wait…
2018-09-18T08:26:53.381Z - normal: The log file path [ /Users/Mac01/.CocosCreator/logs/native.log ]
2018-09-18T08:26:53.950Z - failed: Error: Compile failed. The log file path [ /Users/Mac01/.CocosCreator/logs/native.log ]
at ChildProcess. (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/core/native-utils.js:1:18737)
at ChildProcess. (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/core/native-utils.js:1:7408)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Socket. (internal/child_process.js:334:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:493:12)
2018-09-18T08:26:55.066Z - normal: Checked Python Version [2.7.10]
2018-09-18T08:26:56.303Z - normal: Start to compile native project. Please wait…
2018-09-18T08:26:56.303Z - normal: The log file path [ /Users/Mac01/.CocosCreator/logs/native.log ]
2018-09-18T08:26:56.750Z - failed: Error: Compile failed. The log file path [ /Users/Mac01/.CocosCreator/logs/native.log ]
at ChildProcess. (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/core/native-utils.js:1:18737)
at ChildProcess. (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/core/native-utils.js:1:7408)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Socket. (internal/child_process.js:334:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:493:12)

/Users/Mac01/.CocosCreator/logs/native.log

Building mode: release
Update xcode please.

我也遇到这个问题了。。我的creator版本是1.9.1。。。升级了Xcode,编译报错,log里只有两行,“Building mode: release
Update xcode please.”。。。有没有人知道什么原因额?:joy:

@panda @zilong @jare 能帮忙看下吗?

构建完成之后,直接用打开工程目录的 Xcode 工程编译。

关联同样的问题:

http://forum.cocos.com/t/creator-ios-update-xcode-please/61131/3?u=2627993092

Xcode10 还可能有编译问题:

http://forum.cocos.com/t/xcode10-libstdc-tbd-cocos2dx/66549/11?u=2627993092

[Warning] Xcode10 头文件包含逻辑有调整,可能会遇到找不到头文件

2赞

好的,我试试。。谢谢:grin:

我的也是这个问题,xcode10 版本,creator 2.0.1,日志报错都是一样的,用了@leda 的方法,可以了

1赞

mark