React Native iOS构建在本地成功,但在CI服务器上失败

时间:2019-04-17 16:02:26

标签: ios xcode react-native azure-devops

我最近将React Native项目更新为版本0.59,现在不推荐使用内置<!DOCTYPE html> <html> <head> <style> .mainTable { border: black 1px solid; } .aquaBox { border: green 1px solid; background: aqua; overflow: visible; } .yellowBox { border: black 1px solid; background: yellow; z-index: 1; } .pinkBox { border: red 1px solid; position: relative; background: pink } </style> </head> <body> <table class='mainTable'> <tr> <td rowspan='2' class='aquaBox' style=' width:100px; height: 100px;'> abcdefg hijklmnop qrstuvw xyz <div class='yellowBox' style='width: 40px; top: 25px; height: 40px; margin-top:25px; margin-left:60px; position:absolute; '> </div> </td> </tr> <tr> <td class='pinkBox' style='width: 100%; height: 200px;'> </td> </tr> </table> </body> </html> ```````````````````````````` Currently the yellow box is partially hidden under the pink box. The expectation here is that the yellow box is shown completely, overlapping on both the aqua and pink boxes. Any help to resolve this by modifying only the CSS and not touching anything inside the table element would greatly be helpful。因此,我按照建议安装了Dim pair As Range, accumulator As Range Dim findSeven As Double Dim remainder As Long For Each pair In Range("B30, F30, J30") If Right(pair, 2) = 7 Then If pair.Offset(0, 2) <= 12 Then remainder = 0 Else remainder = pair.Offset(0, 2) Mod 10 End If findSeven = (pair.Offset(0, 2) - remainder) / 10 For Each accumulator In Range("A36, D36, G36, J36, M36, A40, D40, G40, J40, M40") If accumulator.Offset(-1, 0) = Val(Left(pair, InStr(pair, "-") - 1)) Then accumulator.Value = accumulator.Value + remainder End If accumulator.Value = accumulator.Value + findSeven Next accumulator End If Next pair 软件包,并通过运行AsyncStorage链接了这些软件包。

现在在本地Xcode中运行时,构建成功。但是,当我尝试在Azure DevOps的CI管道中运行该版本时,在链接期间它会失败:

@react-native-community/react-native-async-storage

更进一步,它看起来好像已经建成:

react-native link @react-native-community/async-storage

有什么想法会导致这种情况吗?

2 个答案:

答案 0 :(得分:0)

尝试在“构建设置/部署/ iOS部署目标”中将“部署目标”设置为11.0。

What might be happening

我在不同的库中遇到了完全相同的问题,这对我有用。

答案 1 :(得分:0)

将此 ${PODS_CONFIGURATION_BUILD_DIR}/RNCAsyncStorage 添加到 Library Search Paths 对我有用。

enter image description here

相关问题