La compilation de command-line de iOS falla (Jenkins, Xcode 6.1, Storyboards)

Estoy intentando build mi proyecto de iOS en Jenkins. Así es como se configura el trabajo de Jenkins:

  1. La fuente se obtiene de git repo (complemento Git)
  2. Las libs externas se actualizan a través de CocoaPods (plugin CocoaPods)
  3. Se inició la compilation de XCode (complemento Xcode, destino especificado, esquema, file de espacio de trabajo y directory de salida de compilation. "Aplicación de package y compilation .ipa?" No está activo para esta testing.

Uno y dos están funcionando bien, el paso tres falla:

Validate build/MyApp.app cd "/Users/myuser/.jenkins/workspace/MyApp Beta" 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 PRODUCT_TYPE=com.apple.product-type.application /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/Validation /Users/myuser/.jenkins/workspace/MyApp\ Beta/build/MyApp.app ** BUILD FAILED ** Build step 'Xcode' marked build as failure Finished: FAILURE 

El único error que puedo ver antes de ocurrir es el siguiente:

 CompileStoryboard MyApp/Base.lproj/Main_iPhone.storyboard cd "/Users/myuser/.jenkins/workspace/MyApp Beta" 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 --target-device iphone --errors --warnings --notices --module MyApp --minimum-deployment-target 7.0 --output-partial-info-plist /Users/myuser/Library/Developer/Xcode/DerivedData/MyApp-ddibhvvpirpyiwdhzlmbkpcqbjvq/Build/Intermediates/MyApp.build/AdHoc_Distribution-iphoneos/MyApp.build/Main_iPhone-SBPartialInfo.plist --auto-activate-custom-fonts --output-format human-readable-text --compile /Users/myuser/.jenkins/workspace/MyApp\ Beta/build/MyApp.app/Base.lproj/Main_iPhone.storyboardc /Users/myuser/.jenkins/workspace/MyApp\ Beta/MyApp/Base.lproj/Main_iPhone.storyboard nwi_state: registration failed (1000000) 2014-12-16 22:03:44.263 Interface Builder Cocoa Touch Tool[8241:7877572] ***createStorageTaskManagerForPath:withIdentifier failed: Error Domain=NSCocoaErrorDomain Code=4099 "The operation couldn't be completed. (Cocoa error 4099.)" (The connection to service named com.apple.nsurlstorage-cache was invalidated.) UserInfo=0x7fca32cd3c70 {NSDebugDescription=The connection to service named com.apple.nsurlstorage-cache was invalidated.}; { NSDebugDescription = "The connection to service named com.apple.nsurlstorage-cache was invalidated."; } nwi_state: registration failed (1000000) 2014-12-16 22:03:46.899 Interface Builder Cocoa Touch Tool[8270:7877686] ***createStorageTaskManagerForPath:withIdentifier failed: Error Domain=NSCocoaErrorDomain Code=4099 "The operation couldn't be completed. (Cocoa error 4099.)" (The connection to service named com.apple.nsurlstorage-cache was invalidated.) UserInfo=0x7fd1d9f06040 {NSDebugDescription=The connection to service named com.apple.nsurlstorage-cache was invalidated.}; { NSDebugDescription = "The connection to service named com.apple.nsurlstorage-cache was invalidated."; } 

No encontré nada útil en este error, pero supongo que esto es lo que está fallando en el process de compilation. La aplicación se construye bien en Xcode. Cuando ibtool command ibtool y lo ejecuto directamente, recibo exactamente el mismo error que Jenkins.

¿Sabes qué podría estar causando este error y cómo puedo deshacerme de él?

Eso podría ser resources duplicates en el file del proyecto. Abra el file .xcodeproj en el editor de text como Sublime o Text Wrangler y elimine cuidadosamente todas las references duplicadas de xib o storyboard .