Xamarin iOS框架绑定

时间:2016-05-17 21:48:55

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

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

以下是我遵循的步骤。

  1. 我安装了CocoaPods。
  2. 我安装了ObjectiveSharpie
  3. 我在终端中运行此命令:$ sharpie pod init ios WePay
  4. 我收到此错误:无法安装CocoaPod

    这是完整的错误消息:

    ** Setting up CocoaPods master repo ...
    

    (第一次可能需要一段时间) 设置CocoaPods主仓库   $ / usr / bin / git pull --ff-only   来自https://github.com/CocoaPods/Specs      ee36ba4..8c6767d master - >产地/主   正在更新ee36ba4..8c6767d   快进    Specs / 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

1 个答案:

答案 0 :(得分:2)

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