简体   繁体   English

Cocoapods 无法安装 Trunk

[英]Cocoapods cannot install Trunk

I'm trying to develop a React Native mobile app for iOS on Windows 10. Using the react native cli, I've generated a RN iOS project with the standard file structure, including a "Podfile" file with the default RN pods.我正在尝试为 Windows 10 上的 iOS 开发一个 React Native 移动应用程序。使用 react native cli,我生成了一个带有默认文件结构的 RN iOS 项目,包括“

However, when I try to use "pod install" in order to add other pods of my own, I get the following error code:但是,当我尝试使用“pod install”来添加我自己的其他 pod 时,我收到以下错误代码:

[:] CDN: trunk URL couldn't be downloaded: https.//cdn.cocoapods.org/CocoaPods-version:yml Response: SSL peer certificate or SSH remote key was not OK

I've been googling this error but I've run into a dead end.我一直在谷歌搜索这个错误,但我遇到了死胡同。 I've tried using pod update , I've changed my cURL version, I've gone over the setup instructions for Ruby, curl, and others, and I'm at a loss.我已经尝试使用pod update ,我已经更改了我的 cURL 版本,我已经查看了 Ruby、curl 和其他人的设置说明,我很茫然。 What can I do?我能做些什么?

Note: I haven't run the app yet, and am trying to install the react-native-mapbox-gl pod first, but I can't even properly install Trunk.注意:我还没有运行该应用程序,并且正在尝试先安装react-native-mapbox-gl pod,但我什至无法正确安装 Trunk。

cURL Version: 7.70.0 cURL Version: 7.70.0

CocoaPods Version: 1.9.3 CocoaPods Version: 1.9.3

You won't be able to develop for iOS on Windows – because the iOS SDK and build tools are only available on macOS.您将无法在 Windows 上为 iOS 开发 - 因为 iOS ZF20E3C5E54C0AB3D3D3D375AZD660B3F 仅适用于 build8 No way to legally do it without an access to an Apple computer.如果没有苹果电脑的访问权限,就无法合法地做到这一点。

You can try Expo though – it doesn't require macOS for development, but keep in mind that you will be limited to the APIs Expo provides.您可以尝试 Expo - 它不需要 macOS 进行开发,但请记住,您将受限于 Expo 提供的 API。

As for the actual error – it seems that the CocoaPods rubygem has not been tested on Windows at all, and is likely invoking curl in a way that doesn't account for Windows's SSL certificate management system. As for the actual error – it seems that the CocoaPods rubygem has not been tested on Windows at all, and is likely invoking curl in a way that doesn't account for Windows's SSL certificate management system.

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

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