如何手动下载GitHub iOS代码并使其在XCode 11.7中工作? [英] How to manually download GitHub iOS code and have it work in XCode 11.7?

查看:58
本文介绍了如何手动下载GitHub iOS代码并使其在XCode 11.7中工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

INTRO

问候!

我最近被授予访问专有(即私有)GitHub存储库以进行iOS开发的权限.我使用的是Mac(OS 10.15.6 Catalina,撰写本文时为最新的MacOS),其今天安装的是最新的非beta XCode版本(11.7),以及撰写本文时的最新iOS模拟器(iOS 13.7).我是使用Macs,在XCode上进行这个项目的新手,而这个GitHub代码的作者还无法帮助我处理他的代码.(我对从GitHub和整个Internet下载文件非常熟悉.)

I have recently been granted access to a proprietary (that is, private) GitHub repository for iOS development. I'm on a Mac (OS 10.15.6 Catalina, the latest MacOS as of this writing) with the latest non-beta XCode version installed today (11.7) as well as the latest iOS emulator as of this writing (iOS 13.7). I am new at using Macs, at XCode, and working with this project, and the author of this GitHub code hasn't been available to help me work with his code. (I am well familiar with downloading files from GitHub and the Internet in general.)

我知道此GitHub存储库内部包含XCode,因为有一个XCode文件Pods.xcodeproj.还有许多其他文件,包括.xcconfig文件.

I know this GitHub repo has XCode inside because there's an XCode file, Pods.xcodeproj. There are also many other files, including .xcconfig files.

这可能是硬件问题.这台Mac的技术规格是极简主义的:它的物理RAM不足4兆,最近获得了硬盘空间升级,使其总空间约为70兆,或者足以与Android Studio和XCode一起使用.(由于RAM太少,导致示例项目无法在模拟器中运行.)

It may be a hardware problem. This Mac's technical specs were minimalistic: It has less than 4 gig of physical RAM and a recently-obtained hard disk space upgrade to put it around 70 gig of total space, or enough to work with Android Studio and XCode. (A sample project failed to run in the simulator due to having too little RAM.)

因此,怎么了?应该怎么解决?

Thus, what's wrong and how should it be fixed?

谢谢!

错误消息

使用配置发布构建项目大黄蜂的目标大黄蜂错误:/Users/Liam/Desktop/HORNET/9-1-20/ios/Pods/目标支持文件/Pods-hornet/Pods-hornet.release.xcconfig:无法打开文件(在项目中的目标"hornet"中(大黄蜂")(位于项目大黄蜂"的目标大黄蜂"中)

Build target hornet of project hornet with configuration Release error: /Users/Liam/Desktop/HORNET/9-1-20/ios/Pods/Target Support Files/Pods-hornet/Pods-hornet.release.xcconfig: unable to open file (in target "hornet" in project "hornet") (in target 'hornet' from project 'hornet')

错误:/Users/Liam/Desktop/HORNET/9-1-20/ios/Pods/目标支持文件/Pods-hornet/Pods-hornet.release.xcconfig:无法打开文件(在目标"hornet"中;在项目大黄蜂"中)(在项目大黄蜂"的目标大黄蜂"中)

error: /Users/Liam/Desktop/HORNET/9-1-20/ios/Pods/Target Support Files/Pods-hornet/Pods-hornet.release.xcconfig: unable to open file (in target "hornet" in project "hornet") (in target 'hornet' from project 'hornet')

错误:/Users/Liam/Desktop/HORNET/9-1-20/ios/Pods/目标支持文件/Pods-hornet/Pods-hornet.release.xcconfig:无法打开文件(在目标"hornet"中;在项目大黄蜂"中)(在项目大黄蜂"的目标大黄蜂"中)

error: /Users/Liam/Desktop/HORNET/9-1-20/ios/Pods/Target Support Files/Pods-hornet/Pods-hornet.release.xcconfig: unable to open file (in target "hornet" in project "hornet") (in target 'hornet' from project 'hornet')

错误:/Users/Liam/Desktop/HORNET/9-1-20/ios/Pods/目标支持文件/Pods-hornet/Pods-hornet.release.xcconfig:无法打开文件(在目标"hornet"中;在项目大黄蜂"中)(在项目大黄蜂"的目标大黄蜂"中)

error: /Users/Liam/Desktop/HORNET/9-1-20/ios/Pods/Target Support Files/Pods-hornet/Pods-hornet.release.xcconfig: unable to open file (in target "hornet" in project "hornet") (in target 'hornet' from project 'hornet')

推荐答案

Pods 路径的存在表明该项目正在使用CocoaPods.如果是这样,

The presence of the Pods path suggests the project is using CocoaPods. If so,

  • 如果尚未安装,请安装 CocoaPods .
  • 在计算机上安装完之后,请转到终端中的项目根文件夹,然后运行 pod install 下载Pod.
  • 在Xcode中,打开 .xcworkspace ,而不是 .xcodeproj .
  • If you haven’t already, install CocoaPods.
  • Once that’s installed on your computer, go to the project root folder in Terminal and run pod install to download the pods.
  • In Xcode, open the .xcworkspace, not the .xcodeproj.

但是4GB的RAM可能根本不够用,根本无法使用Xcode.如果您无法在Xcode中创建和运行简单的测试项目,那么您肯定将无法打开更大的项目.我的回忆是最低8GB,但即使那样也将很困难.16GB相当不错,如果您能负担得起,那就更好了.

But 4gb of RAM may simply be too modest to use Xcode at all. If you can’t create and run a simple test project in Xcode, you certainly won’t be able to open a bigger project. My recollection was a 8gb minimum, but even that will struggle. 16gb is pretty decent and if you can afford more, so much the better.

这篇关于如何手动下载GitHub iOS代码并使其在XCode 11.7中工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆