问题标签 [pod-install]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
222 浏览

react-native - 在 Windows 上为 Android 和 ios 开发 React Native

我对 COCOAPODS 的安装和 react-native 库的安装 gydes 有点困惑。

如果我在 Windows 上为 iOS 和 Android 开发。我有安装 COCOAPODS 吗?

那么这个呢:https ://reactnavigation.org/docs/getting-started/

我是否运行了以下命令:npx pod-install ios

还是仅当我在 Mac 上开发时才这样做?

感谢所有回复。

0 投票
1 回答
1062 浏览

xcode - CDN:无法下载中继 URL:https://cdn.jsdelivr.net/cocoa/Specs/1/d/4/CocoaAsyncSocket/7.6.1/CocoaAsyncSocket.podspec.json

我尝试pod install了命令并收到此错误。

我尝试了一切,但仍然收到此错误。

0 投票
2 回答
1195 浏览

react-native - pod install cdn_source.rb:342:in `download_file_async': URI:Module 的未定义方法`encode'

尝试在 react-native 项目中执行“pod install”时,出现以下错误:

/Users/admin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-core-1.9.3/lib/cocoapods-core/cdn_source.rb:342:indownload_file_async': undefined method 编码' 对于 URI:Module (NoMethodError)

Cocoapods - 1.9.3 Ruby - 3.0.0 OSX - 11.5 Xcode - 12.2

0 投票
1 回答
449 浏览

cordova - 在 Ionic Cordova 项目中添加 onesignal-cordova-plugin 时如何生成 Pods 文件夹?

我将 OneSignal 添加到我的 Ionic Cordova 项目中,并遵循本指南。在第 3.16 节中提到了该Platforms -> ios -> Pods文件夹,但该Pods文件夹不存在。我知道要创建Pods必须运行的文件夹pod install,但我从未在 Ionic Cordova 项目中这样做过。我应该导航到那里并从那里Platforms/ios跑吗?pod install我问的原因是,即使在第 2.1 节中他们提到了npm install ionic-cordova-plugin,但他们从未提到跑步pod install

0 投票
1 回答
108 浏览

swift - 使用 macOS Big Sur 版本 11.1 时收到安装 Firestore pod 的错误消息

0 投票
1 回答
196 浏览

flutter - pod install 错误:给定 podspec 'file_picker' 的名称与预期的 'gx_file_picker' 不匹配

安装 pod 时出现以下错误。

我尝试将“pubspec.yaml”中的文件名从 gx_file_picker 更改为 file_picker,但这似乎不起作用。进一步的研究也没有成效。

知道如何解决这个问题吗?

0 投票
1 回答
1443 浏览

ios - Cocoa Pods 的问题:nil:NilClass 的未定义方法“map”

我在带有 M1 的 MacBook Air 上运行 Cocoa Pods,并使用最新的 Mac OS 版本。我的问题:当我运行时,pod install我得到以下输出(我删除了一点,因为其他方式会很长):

nil:NilClass 的未定义方法“map”

完全错误:

LoadError - dlopen(/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.0/lib/ffi_c.bundle, 9):找不到合适的图像。确实找到了:/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.0/lib/ffi_c.bundle: mach-o,但架构错误/Library/Ruby/Gems/2.6.0/gems/ffi- 1.15.0/lib/ffi_c.bundle:mach-o,但架构错误 - /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.0/lib/ffi_c.bundle /System/Library/Frameworks/Ruby .framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.0/lib /ffi.rb:6:in rescue in <top (required)>' /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.0/lib/ffi.rb:3:in <top (required)>' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:在require' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in 需要'/Library/Ruby/Gems/2.6.0/gems/ethon-0.14.0/lib/ethon.rb:3:in<top (required)>' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in 需要' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' /Library/Ruby/Gems/2.6.0/gems/typhoeus-1.4.0/lib/typhoeus.rb:2:in <top(必需)>' /System/Library/ Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:inrequire' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in 要求'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10。 1/lib/cocoapods/sources_manager.rb:74:in cdn_url?' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/sources_manager.rb:36:in create_source_with_url' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/sources_manager.rb:21:infind_or_create_source_with_url' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:178:in 块中的源'/库/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:177:在map' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:177:in 来源'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10。 1/lib/cocoapods/installer/analyzer.rb:1073:inblock in resolve_dependencies' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in 部分'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1072:inresolve_dependencies' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:124:in 分析'/Library/Ruby/Gems/2.6.0/gems/cocoapods -1.10.1/lib/cocoapods/installer.rb:414:inanalyze' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:239:in 块在 resolve_dependencies'/ Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in section' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:238:in resolve_dependencies' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:160:in install!' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command/install.rb:52:in run' /Library/Ruby/Gems/2.6.0/gems/claide-1.0 .3/lib/claide/command.rb:334:in run' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command.rb:52:in run' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/bin/pod:55:in <top (required)>' /usr/local/bin/pod:23:in load' /usr/local/bin /pod:23:in `'

不知道,有什么问题,我已经重新安装了 Cocoa Pods。感谢您的帮助,保持健康 Boothosh

0 投票
0 回答
70 浏览

reactjs - React Native:如何安装需要`pod install`的两个不同版本的插件?

在我的 React Native 应用程序中,我想安装两个不同版本的react-native-device-info,以便并排比较它们的输出。通常我只会安装版本 A,然后将其移动到外部文件夹node_modules并从那里引用它,然后安装版本 B,然后从node_modules与版本 A 相同的外部文件夹中引用或移动它。但是,react-native-device-info需要pod install. 我应该只做我上面所说的一切然后运行pod install,还是会搞砸什么?

0 投票
0 回答
593 浏览

ios - 为什么我在运行 Pod install 时会收到此错误“[!] An error occurred while processing the post-install hook of the Podfile.”

在此处输入图像描述

[!] 处理 Podfile 的安装后挂钩时出错。

[Xcodeproj] 一致性问题:对象没有父级RNPlaceholder.swiftSourcesBuildPhaseSourcesBuildPhase

/Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.19.0/lib/xcodeproj/project/object/helpers/groupable_helper.rb:19:in parent' /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.19.0/lib/xcodeproj/project/object/build_file.rb:71:in ascii_plist_annotation' /Library/Ruby/Gems/2.6.0/gems /xcodeproj-1.19.0/lib/xcodeproj/project.rb:296:in block in to_ascii_plist' /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.19.0/lib/xcodeproj/project.rb:295:in each' /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.19.0/lib/xcodeproj/project.rb:295:into_ascii_plist' /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.19.0/lib/xcodeproj/project.rb:364:in 块保存' /Library/Ruby/Gems/2.6.0/gems/atomos-0.1.3/lib/atomos.rb:21:in block in atomic_write' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tempfile.rb:295:in open' /Library/Ruby/Gems/2.6.0/gems/atomos-0.1 .3/lib/atomos.rb:17:in atomic_write' /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.19.0/lib/xcodeproj/project.rb:363:in save' /Users/lwillia5/Documents/ebw/DJRainMobileApp/node_modules/react-native/scripts/react_native_pods.rb:136:in block in exclude_architectures' /Users/lwillia5/Documents/ebw/DJRainMobileApp/node_modules/react-native/scripts/react_native_pods.rb:127:in each' /Users/lwillia5/Documents/ebw /DJRainMobileApp/node_modules/react-native/scripts/react_native_pods.rb:127:inexclude_architectures' /Users/lwillia5/Documents/ebw/DJRainMobileApp/node_modules/react-native/scripts/react_native_pods.rb:145:in react_native_post_install' /Users/lwillia5/Documents/ebw/DJRainMobileApp/ios/Podfile:28:in block (3 levels) in from_ruby' /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/podfile.rb:179:in post_install!' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:897:in run_podfile_post_install_hook' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:885:in block in run_podfile_post_install_hooks' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10 .1/lib/cocoapods/user_interface.rb:145:in message' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:884:in run_podfile_post_install_hooks'/Library/Ruby/Gems/2.6.0/gems /cocoapods-1.10.1/lib/cocoapods/installer.rb:329:in block (2 levels) in create_and_save_projects' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/xcode/pods_project_generator/pods_project_writer.rb:61:in write!' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:328:in block in create_and_save_projects' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in section' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1 /lib/cocoapods/installer.rb:307:in create_and_save_projects' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:299:in generate_pods_project' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:178:inintegrate' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:166:in 安装!' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command/install.rb:52:in run' /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in run' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10 .1/lib/cocoapods/command.rb:52:in run' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/bin/pod:55:in <top (required)>' /usr/local/bin/pod:23:in load' /usr/local/bin/pod:23:in '

Pod 文件内容 在此处输入图像描述

0 投票
2 回答
338 浏览

macos - 我正在尝试使用颤振运行 iOS 应用程序,这是安装可可豆荚后出现的错误(关于豆荚安装的错误)

System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/unicode_normalize/normalize.rb:141:in `normalize': Unicode Normalization 不适合 ASCII-8BIT (Encoding::CompatibilityError )

错误图片在这里

这是我尝试运行应用程序后遇到的错误。