【问题标题】:ios build error on codenameone with braintree paymentsios 在使用braintree 付款的代号上构建错误
【发布时间】:2018-01-26 02:41:57
【问题描述】:

这是来自 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 运行构建并且遇到了同样的错误。

【问题讨论】:

  • 仅供参考,我修复了这个问题,如果你更新 lib/refresh,它应该可以使用一个很大的警告。我使用了 xcode 9.2 构建目标,该目标在此阶段仍处于高度试验阶段。我认为它会很快稳定下来,但仍然存在错误和不当行为。我选择走那条路,因为这是我们应该走的路(前进),即使在这个特定的时间点道路有点颠簸。

标签: ios codenameone braintree


【解决方案1】:

这是当前大脑树整合中的回归,这是由于大脑树中的 cocoapod 发生了变化。我已经在我的修复列表中找到了它,但我有点忙,所以我会在周末尝试这样做,并在完成后在此处发布更新。

有两个潜在的修复方法:

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

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

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

【讨论】:

  • @Shai..这个问题好像又出现了?我仍然在我的构建中看到相同的错误。请指教
  • 我附上了错误日志,这与 0F634E9E18E9ABBC002F3D1D>` 试图用未知的 UUID 初始化对象有关。 0F634EA418E9ABBC002F3D1D 用于属性:files。这可能是合并的结果,未知的 UUID 被丢弃。 &lt;PBXResourcesBuildPhase UUID=0F634E9F18E9ABBC002F3D1D&gt; 试图用未知的 UUID 初始化一个对象。
  • 我需要完整的日志链接
  • 如何发送完整的日志。请指教。
  • 使用我们网站上的聊天向我们提供来自您的构建控制台的链接
猜你喜欢
  • 1970-01-01
  • 2019-03-15
  • 2017-11-18
  • 2023-04-07
  • 1970-01-01
  • 1970-01-01
  • 2018-11-20
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多