Xcode 10: unable to attach DB error

Environment:

Mac: macOS Mojave 10.14Beta (18A326g)
Xcode Version : 10.0 beta 2 (10L177m)

目前遇到的问题 (后续会持续更新):

1, unable to attach DB error

感谢uerceg的回答:
(https://stackoverflow.com/questions/51153525/xcode-10-unable-to-attach-db-error)

Okay, seems like I managed to solve it. I was having `/bin/sh` script in `Build Phases` that was trying 
to build fat static library. In the script, I had `OBJROOT` path set like this:

OBJROOT="${OBJROOT}"

Seems like Xcode 10 and new build system changed some paths on the way and this line was the 
source of the issue. It needs to be adjusted to:

OBJROOT="${OBJROOT}/DependentBuilds"

After that, `xcodebuild` manages to build this target without issues with new build system introduced 
in Xcode 10.

2, xcode10 library not found for -lstdc++.6

Apple 的 rd 回复:

libstdc++ was deprecated about 5 years ago (note that it hasn't been available in tvOS nor watchOS). 
Please switch to using libc++.

(https://forums.developer.apple.com/thread/103732)

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容