安装新的CocoaPod时,出现以下错误.
$ pod install
Analyzing dependencies
[!] Pod::Executable pull
A AFHARchiver/0.2.1/AFHARchiver.podspec
A AFWunderlist/1.0/AFWunderlist.podspec
A AFWunderlist/1.1/AFWunderlist.podspec
A AFgzipRequestSerializer/0.0.1/AFgzipRequestSerializer.podspec
Run Code Online (Sandbox Code Playgroud)
...
A wpxmlrpc/0.4/wpxmlrpc.podspec
A zipzap/6.0/zipzap.podspec
Pull is not possible because you have unmerged files.
Please, fix them up in the work tree, and then use `'git add/rm <file>'`
as appropriate to mark resolution, or use `'git commit -a'`.
Run Code Online (Sandbox Code Playgroud)
以为我会分享下面的修复.
我非常有兴趣安装要求安装可可豆荚的GitHub程序之一。在macOS普通版上,我的终端似乎没有问题。我有一个问题,终端不是安装可可豆荚,因为我在macOS Catalina beta上?
我确实Podfile完成了Pod'Card'的安装,但是之后Podfile就关闭了。我要在终端上输入文本“ pod install”,这是我得到的唯一错误。错误说
-bash: /usr/local/bin/pod: /
System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby: bad interpreter: No such file or directory".
Run Code Online (Sandbox Code Playgroud)
当我使用MacOS Catalina beta时,有人知道如何解决这些问题吗?
我已经下载了最新的Xcode beta4。在构建时,我的3个Pod出现了相同的错误:
Command CompileSwiftSources failed with a nonzero exit code
<unknown>:0: error: unknown argument: '-w'
<unknown>:0: error: unknown argument: '-Xanalyzer'
<unknown>:0: error: unknown argument: '-analyzer-disable-all-checks'
Run Code Online (Sandbox Code Playgroud)
我试过了:
我看不到发行说明中列出的错误。 https://developer.apple.com/documentation/xcode_release_notes/xcode_11_beta_4_release_notes
有谁知道问题出在哪里或解决方法?
我运行Pod Update了我的XCode项目,现在我的项目没有编译,因为下载了重复的模块.谁知道任何解决方案?
Looking for JS files in
/Users/.../App/Finalv2
Metro Bundler ready.
Loading dependency graph...jest-haste-map: @providesModule naming collision:
Duplicate module name: react-native
Paths: /Users/.../App/Finalv2/node_modules/react-native/package.json collides with /Users/.../App/Finalv2/ios/Pods/React/package.json
This warning is caused by a @providesModule declaration with the same name across two different files.
Loading dependency graph, done.
Run Code Online (Sandbox Code Playgroud)
更新:
我删除了我的node_modules文件夹并package.lock.json运行npm install但问题仍然存在
编辑:
加我的 Package.json
{
"name": "sample-app",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"@expo/vector-icons": "^6.2.2", …Run Code Online (Sandbox Code Playgroud) 安装cocoapods后sudo gem install cocoapods,尝试运行" pod setup"会返回此错误:
Could not find 'cocoapods' (>= 0) among 64 total gem(s) (Gem::LoadError)
Run Code Online (Sandbox Code Playgroud)
"sudo gem install cocoapods"的输出:
CHANGELOG:
[CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.28.0...0.29.0)
• [CocoaPods-core](https://github.com/CocoaPods/Core/compare/0.28.0...0.29.0)
• [cocoapods-downloader](https://github.com/CocoaPods/cocoapods-downloader/compare/0.2.0...0.3.0)
[ bug/enhancement notes removed for brevity]
Successfully installed cocoapods-0.29.0
Parsing documentation for cocoapods-0.29.0
1 gem installed
Run Code Online (Sandbox Code Playgroud)
当我列出安装的宝石时,我没有在我的本地宝石中看到cocoapods,但我确实看到/usr/local/Cellar/ruby/2.0.0-p0/bin中列出了'pod'.
系统配置:
Mac OS 10.9 (upgraded from 10.8)
Xcode: 5.0.2 (upgrade from 4.x)
Ruby path: /usr/local/Cellar/ruby/2.0.0-p0
Run Code Online (Sandbox Code Playgroud)
我怎样才能让cocopods为我工作?
我正在使用XCode 6 Beta-6在Swift中编写应用程序.我正在使用Cocoapods,我正在创建一些单元测试.
问题是这个问题:显然不可能有一个项目包含:
1)用Swift编写的项目
2)使用cocoapods安装的一些吊舱
3)导入一些pod的Objective-C桥头文件
4)单元测试
这听起来很奇怪,但按照我的步骤:运行后pod install,创建Objective-C桥接头并导入一个pod:一切正常.现在编写一些测试:为了测试你自己的类,你必须导入名为"作为你的项目"的模块(或者更好,"作为主要目标"):在我的"MyAwesomeApp"项目中,我必须import MyAwesomeApp在我的测试中编写文件.
不幸的是,在这一步XCode将无法编译:在我的import MyAwesomeApp行中出现错误"无法导入桥接头'/path/to/MyAwesomeApp/MyAwesomeApp/MyAwesomeApp-Bridging-Header.h";
并且错误"找不到xxx.h文件"出现在Bridging-Header文件中,不包括导入pod的可能性.
此外,如果我不在Obj-c桥文件中导入pod,项目将编译正常.
看起来存在冲突导入Objective-C桥接头(使用从工作空间中的不同子项目获取的Objective-C文件)和用于测试的"主模块".
你知道是否有解决方案吗?我错过了什么?谢谢
注意:作为一种解决方法,我可以在Objective-C Bridge Header中导入pod,而不是在我的测试中包含主模块,在我的"test"目标中添加我想要测试的所有类.这将有效,但它不是最干净的解决方案(我认为)
任何帮助请我等了这么久,它没有给我任何改善.仍然坚持 Updating local specs repositories
实际上我正在尝试更新我在xcode上使用的库的pod文件.我昨天关闭它因为它需要太长时间.今天我再次control + c运行,pod install再次运行.
它不起作用,坚持不懈 Updating local specs repositories
当我打开我的Xcode时,由于pod问题会发生许多错误.
我需要帮助!
我正在使用Xcode 8.0 GM.我创建了一个默认的单视图应用程序,我的部署目标设置为9.0.
在我的Podfile中,我瞄准了Swift 3分支的前沿:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!
target 'MyProject' do
pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git', :branch => 'swift3'
end
Run Code Online (Sandbox Code Playgroud)
我跑了pod install,得到...... Installing Alamofire (4.0.0-beta.2)太棒了,没问题.我打开MyProject.xcworkspace.
弹出:
我以后不能打,因为它告诉我:
Xcode 8将无法构建目标"Alamofire",并且在转换此目标中的Swift源代码之前,某些编辑功能将无法正常运行.
这不好,我想建立它.所以我点击"转换".它给了我选择:
那就是我想要的,Swift 3.看起来不错,我点击"下一步".
它默认为这3个选定目标.好的,我接下来打了.
神的圣名是什么......
我想在swift3针对iOS 9.0的Xcode 8,Swift 3项目中使用Alamofire的前沿分支.我哪里出错了,怎么才能让这个工作?FWIW我试图使用Alamofire的Swift 2.3分支时遇到一堆错误,所以我知道这是我做错了.
我在podfile中有这个:
pod 'Firebase/Core'
pod 'Firebase/Messaging'
Run Code Online (Sandbox Code Playgroud)
但得到这个错误:
[!]无法找到规格
Firebase/Core
我试过pod 'Firebase'还是找不到它.
Podfile:
# Uncomment this line to define a global platform for your project
# platform :ios, '8.0'
# Uncomment this line if you're using Swift
use_frameworks!
target 'caffetouch manager' do
pod 'Firebase/Core'
pod 'Firebase/Messaging'
pod 'Alamofire', '~> 4.0.0'
pod 'AlamofireNetworkActivityIndicator', '~> 2.0.1'
pod 'IQKeyboardManagerSwift', '~> 4.0.6'
pod 'MZFormSheetPresentationController', '~> 2.4.2'
pod 'Kingfisher', '~> 3.1.3'
pod "GMStepper"
pod 'DKImagePickerController', '~> 3.4.0'
pod 'Siren', '~> 1.0.2'
pod 'Eureka', '~> 2.0.0-beta.1' …Run Code Online (Sandbox Code Playgroud) 我在Xcode 10.1中收到以下警告消息。
iOS Simulator部署目标设置为7.0,但是此平台支持的部署目标版本范围是8.0至12.1。
我的模拟器OS在12.1 Xcode 10.1中
然后我更新了pod文件。
我的部署目标是9.0
在我的目标
cocoapods ×10
ios ×5
xcode ×5
swift ×3
alamofire ×1
firebase ×1
macos ×1
react-native ×1
unit-testing ×1
xcode11 ×1