本文介绍了错误“无效的“ Podfile”文件:未知的正则表达式选项-jackha。”尝试运行Pod安装时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果对 jackha 有所帮助,我的用户名是计算机的Jack。我试图将cocoapods与firebase一起使用,但是犯了一个错误,因为我对代码几乎一无所知,并且不去学习,所以没有做 pod init 。这是我的Podfile的组成部分:

My username is Jack for the computer if that makes a difference for the jackha. I am trying to use cocoapods with firebase, but made the mistake of not doing pod init since I know almost nothing about code and am learning as I go. Here is what my Podfile consists of:

Project /Users/jackminehan/Documents/Arbitrium/Arbitrium.xcodeproj
platform:ios, '11 .0'
目标 Arbitrium执行
pod Firebase / Core
结束

尝试使用 pod安装时,我的错误是:

And my error when trying to use pod install is:

[!] Invalid `Podfile` file: unknown regexp options - jackha.

#来自/Users/jackminehan/Documents/Arbitrium/Arbitrium.xcodeproj/Podfile:1
#-------------------------------------------

# from /Users/jackminehan/Documents/Arbitrium/Arbitrium.xcodeproj/Podfile:1 # -------------------------------------------


推荐答案

您不需要此行,只需删除它即可:
Project
/ Users / jackminehan / Documents /Arbitrium/Arbitrium.xcodeproj

You don't need this line, just delete it : Project /Users/jackminehan/Documents/Arbitrium/Arbitrium.xcodeproj

这篇关于错误“无效的“ Podfile”文件:未知的正则表达式选项-jackha。”尝试运行Pod安装时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 14:15