【问题标题】:Xamarin iOS Framework BindingXamarin iOS 框架绑定
【发布时间】:2016-05-17 21:48:55
【问题描述】:

我正在尝试为 WePay 框架创建绑定: https://github.com/wepay/wepay-ios

以下是我遵循的步骤。

  1. 我安装了 CocoaPods。
  2. 我安装了 ObjectiveSharpie
  3. 我在终端运行这个命令:$ sharpie pod init ios WePay

我收到此错误:无法安装 CocoaPod

这里是完整的错误信息:

** Setting up CocoaPods master repo ...

(第一次可能需要一段时间) 设置 CocoaPods 主仓库 $ /usr/bin/git pull --ff-only 来自https://github.com/CocoaPods/Specs ee36ba4..8c6767d master -> origin/master 更新 ee36ba4..8c6767d 快进 规格/BluetoothKit/0.3.0/BluetoothKit.podspec.json | 35 ++++++++++++++++++++++++ 1 个文件已更改,35 次插入(+) 创建模式 100644 Specs/BluetoothKit/0.3.0/BluetoothKit.podspec.json 设置完成 ** 正在搜索请求的 CocoaPods ... ** 工作目录: ** - 编写 Podfile ... ** - 安装 CocoaPods ... ** (运行pod install --no-integrate --no-repo-update) [!] 未知选项:--no-integrate 您的意思是:--no-ansi?

用法:

$ pod install

  Downloads all dependencies defined in `Podfile` and creates an Xcode Pods
  library project in `./Pods`.

  The Xcode project file should be specified in your `Podfile` like this:

      project 'path/to/XcodeProject.xcodeproj'

  If no project is specified, then a search for an Xcode project will be
  made. If more than one Xcode project is found, the command will raise an
  error.

  This will configure the project to reference the Pods static library, add
  a build configuration file, and add a post build script to copy Pod
  resources.

选项:

--repo-update                       Force running `pod repo update` before
                                    install
--project-directory=/project/dir/   The path to the root of the project
                                    directory
--silent                            Show nothing
--verbose                           Show more debugging information
--no-ansi                           Show output without ANSI codes
--help                              Show help banner of specified command

错误:无法安装 CocoaPod

【问题讨论】:

    标签: xamarin mono xamarin.ios cocoapods objective-sharpie


    【解决方案1】:

    显然,最新的 CocoaPods 删除了 Objective Sharpie 使用的 --no-integrate 选项。将 cocoapods 降级到 0.39.0 应该可以解决您的问题。它对我们有用。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-06-26
    • 1970-01-01
    • 1970-01-01
    • 2021-12-09
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多