简体   繁体   English

Mac 使用 iOS SDK 为 xcode 安装命令行工具

[英]Mac install command line tools for xcode with iOS SDK

I'm trying to install the XCode Command Line Tools so that I can build a library for iOS from the command line.我正在尝试安装 XCode 命令行工具,以便我可以从命令行为 iOS 构建一个库。

The entire process from installing the tools to building the library needs to be able to run from the command line for automation.从安装工具到构建库的整个过程都需要能够从命令行运行以实现自动化。

I've managed to get the command line tools installed, however once they're installed, in /Library/Developer/CommandLineTools/SDKs I only have MacOSX.sdk and MacOSX10.13.sdk .我已经设法安装了命令行工具,但是一旦安装它们,在/Library/Developer/CommandLineTools/SDKs我只有MacOSX.sdkMacOSX10.13.sdk

In order to build the library, I need iPhoneOS.sdk , which I cannot figure out how to get installed.为了构建库,我需要iPhoneOS.sdk ,我不知道如何安装。

How would I go about doing this while still being able to wrap automation around it?我将如何做这件事,同时仍然能够围绕它进行自动化?

Not sure if this is still relevant, but here's where you can find your iPhone SDK.不确定这是否仍然相关,但在这里您可以找到您的 iPhone SDK。 It's not part of the command line tools.它不是命令行工具的一部分。 It is part of the XCode package.它是 XCode 包的一部分。

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM