ios - Jenkins 在编译 .xib 时失败
<p><p>我正在使用 Jenkins 构建一个 iPad 应用程序,但在编译单个 .xib 时它始终失败。该应用程序在 XCode 中编译得非常好。 Jenkins 日志中失败的部分是:</p>
<pre><code> CompileXIB Runner/Controllers/UserProfileCoTravelerIndividualViewController.xib
cd /var/jenkins/.jenkins/jobs/Runner/workspace
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
export XCODE_DEVELOPER_USR_PATH=/Applications/Xcode.app/Contents/Developer/usr/bin/..
/Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --minimum-deployment-target 5.1 --output-format human-readable-text --compile /var/jenkins/.jenkins/jobs/Runner/workspace/build/Release-iphoneos/Runner.app/UserProfileCoTravelerIndividualViewController.nib /var/jenkins/.jenkins/jobs/Runner/workspace/Runner/Controllers/UserProfileCoTravelerIndividualViewController.xib
2014-04-02 12:18:42.884 ibtoold DVTAssertions: ASSERTION FAILURE in /SourceCache/IDEInterfaceBuilderCocoaTouch/IDEInterfaceBuilderCocoaTouch-5038/InterfaceBuilder/WidgetIntegration/SimulatedMetrics/IBUISimulatedSizeMetrics.m:33
Details:(initialTargetRuntime) should not be nil.
Object: <IBUIFixedSimulatedSizeMetrics: 0x7fb6a480ae70>
Method: -initWithTargetRuntime:
Thread: <NSThread: 0x7fb6a1d05fb0>{name = (null), num = 1}
Hints: None
Backtrace:
00x0000000104a5dd51 - (in DVTFoundation)
10x0000000104a5d7a9 _DVTAssertionHandler (in DVTFoundation)
20x0000000104a5da8f _DVTAssertionFailureHandler (in DVTFoundation)
30x0000000109cb67c0 (in IDEInterfaceBuilderCocoaTouchIntegration)
40x0000000109cb7047 (in IDEInterfaceBuilderCocoaTouchIntegration)
50x0000000109cb734a (in IDEInterfaceBuilderCocoaTouchIntegration)
60x0000000109cffc4e (in IDEInterfaceBuilderCocoaTouchIntegration)
70x0000000109cff682 (in IDEInterfaceBuilderCocoaTouchIntegration)
80x0000000109d0033c (in IDEInterfaceBuilderCocoaTouchIntegration)
90x0000000109ca23c8 (in IDEInterfaceBuilderCocoaTouchIntegration)
100x0000000103af2b0c - (in IDEInterfaceBuilderKit)
110x0000000103af37f2 __36-_block_invoke (in IDEInterfaceBuilderKit)
120x0000000103af344f - (in IDEInterfaceBuilderKit)
130x0000000103af35f9 - (in IDEInterfaceBuilderKit)
140x0000000103af2681 __48-_block_invoke (in IDEInterfaceBuilderKit)
150x0000000103cc3c3a - (in IDEInterfaceBuilderKit)
160x0000000103af2607 - (in IDEInterfaceBuilderKit)
170x0000000103af37f2 __36-_block_invoke (in IDEInterfaceBuilderKit)
180x0000000103af344f - (in IDEInterfaceBuilderKit)
190x0000000103af35f9 - (in IDEInterfaceBuilderKit)
200x0000000103b705e6 - (in IDEInterfaceBuilderKit)
210x0000000103af2b0c - (in IDEInterfaceBuilderKit)
220x0000000103af37f2 __36-_block_invoke (in IDEInterfaceBuilderKit)
230x0000000103af344f - (in IDEInterfaceBuilderKit)
240x0000000103af35f9 - (in IDEInterfaceBuilderKit)
250x0000000103af2681 __48-_block_invoke (in IDEInterfaceBuilderKit)
260x0000000103cc3c3a - (in IDEInterfaceBuilderKit)
270x0000000103af2607 - (in IDEInterfaceBuilderKit)
280x0000000103af37f2 __36-_block_invoke (in IDEInterfaceBuilderKit)
290x0000000103af344f - (in IDEInterfaceBuilderKit)
300x0000000103af35f9 - (in IDEInterfaceBuilderKit)
310x000000010493ac46 - (in DVTFoundation)
320x0000000103af2b0c - (in IDEInterfaceBuilderKit)
330x0000000103af37f2 __36-_block_invoke (in IDEInterfaceBuilderKit)
340x0000000103af344f - (in IDEInterfaceBuilderKit)
350x0000000103af35f9 - (in IDEInterfaceBuilderKit)
360x0000000103b5f664 - (in IDEInterfaceBuilderKit)
370x0000000103b6123d - (in IDEInterfaceBuilderKit)
380x0000000103af2b0c - (in IDEInterfaceBuilderKit)
390x0000000103af37f2 __36-_block_invoke (in IDEInterfaceBuilderKit)
400x0000000103af344f - (in IDEInterfaceBuilderKit)
410x0000000103af35f9 - (in IDEInterfaceBuilderKit)
420x0000000103a9ea98 - (in IDEInterfaceBuilderKit)
430x0000000109ca67b7 (in IDEInterfaceBuilderCocoaTouchIntegration)
440x0000000103a9f5d8 - (in IDEInterfaceBuilderKit)
450x0000000103a9fad9 - (in IDEInterfaceBuilderKit)
460x0000000109ca69ac (in IDEInterfaceBuilderCocoaTouchIntegration)
470x0000000109cab455 (in IDEInterfaceBuilderCocoaTouchIntegration)
480x0000000109ca6909 (in IDEInterfaceBuilderCocoaTouchIntegration)
490x00007fff85a87098 - (in AppKit)
500x0000000103a97027 __39-_block_invoke (in IDEInterfaceBuilderKit)
510x0000000103ace04f - (in IDEInterfaceBuilderKit)
520x0000000103a96d4f - (in IDEInterfaceBuilderKit)
530x000000010388cb32 (in ibtoold)
540x0000000103887e76 (in ibtoold)
550x000000010388e3ad (in ibtoold)
560x0000000103898b65 (in ibtoold)
570x00000001038990c0 (in ibtoold)
580x0000000103898f90 (in ibtoold)
590x00000001038973e7 (in ibtoold)
600x00000001038987b7 (in ibtoold)
610x0000000103897d6e (in ibtoold)
620x00007fff8152b5fd start (in libdyld.dylib)
** BUILD FAILED **
The following build commands failed:
CompileXIB Runner/Controllers/UserProfileMyAccountMyDetailsViewController.xib
(1 failure)
Build step 'Xcode' marked build as failure
Archiving artifacts
Finished: FAILURE
</code></pre>
<p>我尝试在创建新版本之前将 Jenkins 设置为清理。任何想法为什么会发生这种故障?</p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>在我的例子中,我在 .xcodeproj 中导入了两次 xib 文件</p>
<p>使用 Sublime Text 打开 .xcodeproj(例如)。并查找您的文件。如果在导入时出现 2 次,请删除其中一行(注意不要删除其他任何内容)。</p>
<p>看看这是否能解决您的问题。 </p></p>
<p style="font-size: 20px;">关于ios - Jenkins 在编译 .xib 时失败,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/22817606/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/22817606/
</a>
</p>
页:
[1]