ios使用braintree支付在codenameone上构建错误

时间:2018-01-26 02:41:57

标签: ios codenameone braintree

以下是来自cn1构建服务器的日志的一部分

Executing: /usr/local/bin/pod install Analyzing dependencies
[!] Unable to satisfy the following requirements:

- `BraintreeDropIn` required by `Podfile`

Specs satisfying the `BraintreeDropIn` dependency were found, but they required a higher minimum deployment target.

[!] `<PBXFrameworksBuildPhase UUID=`0F634E9E18E9ABBC002F3D1D`>` attempted to initialize an object with an unknown UUID. `0F634EA418E9ABBC002F3D1D` for attribute: `files`. This can be the result of a merge and  the unknown UUID is being discarded.

[!] `<PBXResourcesBuildPhase UUID=`0F634E9F18E9ABBC002F3D1D`>` attempted to initialize an object with an unknown UUID. `0F634EAD18E9ABBC002F3D1D` for attribute: `files`. This can be the result of a merge and  the unknown UUID is being discarded.
Failed to exec cocoapods.  Trying to update master repo...
Executing: /usr/local/bin/pod repo update Updating spec repo `dwild`
  $ /usr/bin/git -C /Users/administrator/.cocoapods/repos/dwild fetch origin --progress
  $ /usr/bin/git -C /Users/administrator/.cocoapods/repos/dwild rev-parse --abbrev-ref HEAD
  master
  $ /usr/bin/git -C /Users/administrator/.cocoapods/repos/dwild reset --hard origin/master
  HEAD is now at f0a287f Try even bigger version
Updating spec repo `dwild-1`
  $ /usr/bin/git -C /Users/administrator/.cocoapods/repos/dwild-1 fetch origin --progress
  $ /usr/bin/git -C /Users/administrator/.cocoapods/repos/dwild-1 rev-parse --abbrev-ref HEAD
  master
  $ /usr/bin/git -C /Users/administrator/.cocoapods/repos/dwild-1 reset --hard origin/master
  HEAD is now at f0a287f Try even bigger version
Updating spec repo `googlemaps`
  $ /usr/bin/git -C /Users/administrator/.cocoapods/repos/googlemaps fetch origin --progress
  $ /usr/bin/git -C /Users/administrator/.cocoapods/repos/googlemaps rev-parse --abbrev-ref HEAD
  master
  $ /usr/bin/git -C /Users/administrator/.cocoapods/repos/googlemaps reset --hard origin/master
  HEAD is now at 97abfa7 backgroundColors fix (#163)
Updating spec repo `littlemonkeyltd`
  $ /usr/bin/git -C /Users/administrator/.cocoapods/repos/littlemonkeyltd fetch origin --progress
  $ /usr/bin/git -C /Users/administrator/.cocoapods/repos/littlemonkeyltd rev-parse --abbrev-ref HEAD
  master
  $ /usr/bin/git -C /Users/administrator/.cocoapods/repos/littlemonkeyltd reset --hard origin/master
  HEAD is now at e7db135 update podspec
Updating spec repo `master`
  $ /usr/bin/git -C /Users/administrator/.cocoapods/repos/master fetch origin --progress
  remote: Counting objects: 495, done.        

比我设置构建提示ios.deployment_target到8.0,我得到的错误与前一个有点不同:

 Executing: /usr/local/bin/pod init Executing: /usr/local/bin/pod install Analyzing dependencies
 [!] CocoaPods could not find compatible versions for pod "BraintreeDropIn":
   In Podfile:
     BraintreeDropIn

 Specs satisfying the `BraintreeDropIn` dependency were found, but they required a higher minimum deployment target.
 Failed to exec cocoapods.  Trying to update master repo...
 Executing: /usr/local/bin/pod repo update Updating spec repo `dwild`
   $ /usr/bin/git -C /Users/administrator/.cocoapods/repos/dwild fetch origin --progress
   $ /usr/bin/git -C /Users/administrator/.cocoapods/repos/dwild rev-parse --abbrev-ref HEAD
   master
   $ /usr/bin/git -C /Users/administrator/.cocoapods/repos/dwild reset --hard origin/master
   HEAD is now at f0a287f Try even bigger version
 Updating spec repo `dwild-1`
   $ /usr/bin/git -C /Users/administrator/.cocoapods/repos/dwild-1 fetch origin --progress
   $ /usr/bin/git -C /Users/administrator/.cocoapods/repos/dwild-1 rev-parse --abbrev-ref HEAD
   master
   $ /usr/bin/git -C /Users/administrator/.cocoapods/repos/dwild-1 reset --hard origin/master
   HEAD is now at f0a287f Try even bigger version
 Updating spec repo `master`
   $ /usr/bin/git -C /Users/administrator/.cocoapods/repos/master fetch origin --progress
   remote: Counting objects: 758           
   remote: Counting objects: 1972, done.        

所以现在我真的不知道问题出在哪里。它似乎不会增加部署目标可能会有所帮助,因为我为目标10.0运行构建并且我得到了相同的错误。

1 个答案:

答案 0 :(得分:0)

由于来自braintree的cocoapod的变化,这是当前braintree整合的回归。我已经把它放在我的修复列表上,但是我有点忙,所以我会在周末尝试这样做,并在我完成后发布更新。

有两种可能的解决方法:

  • 目前,pod没有指定一个版本,这就是为什么会破坏它的原因。 Braintree发布了更新,一切都停止了。我可以指定一个稍微旧的版本,它将重新开始工作。

  • 我们可以更新以使用新的xcode 9.2支持 - 我认为这是前进的方向,但它是新的,我有稳定性问题

我现在可能会采用第一种方法。