使用Xcode 9 beta已经有一段时间了,然后我更新了Xcode 9,因为现在它已经有了正式的更新。然后我从桌面上删除了测试版。
现在,我在编译我的项目时遇到了以下错误:
找不到头'/Users/sahn/Desktop/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/usr/include/CommonCrypto//CommonCrypto.h‘
我试过清理这个项目清理构建文件夹..。但Xcode-beta.app的位置不会消失。
我怎么才能解决这个问题?
发布于 2017-09-21 08:26:23
事实证明,问题是外部框架,内部使用CommonCrypto
框架,该框架以前是用Xcode Beta编译的。
简单地通过重新编译依赖项来修复。
发布于 2017-09-21 07:41:04
已经有将近一年的时间没有在XCode上工作了,但是这通常可以在使用
xcode-select --switch /Applications/Xcode.app/Contents/Developer
此命令用于切换XCode的位置。可能需要sudo
。
文档在这里,顺便说一下:https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/xcode-select.1.html
https://stackoverflow.com/questions/46338061
复制相似问题