故事板编译但iOS无法找到它并崩溃

时间:2015-05-13 08:52:01

标签: ios objective-c xcode swift storyboard

整个构建正在编译,但有一些警告,一切似乎都有效。

但是当我进行测试时,我得到了:

  

2015-05-13 10:38:52.450 InventorumNativeDevFast [38263:179686] ***由于未捕获的异常终止应用程序' NSInvalidArgumentException',原因:'似乎没有在路径' / Users / jenkins / Library / Developer / CoreSimulator / Devices / 4F58B740-983B-4E49-B3DC-4DD507DFF6DF / data / Containers / Bundle / Application / C49589F2-C9B5-4AEB-B12E上成为有效的编译故事板-E57EE745C47C / InventorumNativeDevFast.app / Base.lproj / Inventory_iPad.storyboardc''

我缩小了日志以编译这个特定的故事板。

mini:Base.lproj jenkins$ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool --target-device ipad --errors --warnings --notices --companion-strings-file de:/Users/jenkins/workspace/inventorum_frontend_ios_native_unit_tests_beta/InventorumNative/de.lproj/Inventory_iPad.strings --module Inventorum --minimum-deployment-target 7.0 --output-partial-info-plist /Users/jenkins/Library/Developer/Xcode/DerivedData/InventorumNative-adclekctloebjhfbehzjndtvdwbe/Build/Intermediates/InventorumNative.build/Debug-iphonesimulator/InventorumNativeDevFast.build/Inventory_iPad-SBPartialInfo.plist --auto-activate-custom-fonts --output-format human-readable-text --compilation-directory /Users/jenkins/Library/Developer/Xcode/DerivedData/InventorumNative-adclekctloebjhfbehzjndtvdwbe/Build/Products/Debug-iphonesimulator/InventorumNativeDevFast.app/Base.lproj /Users/jenkins/workspace/inventorum_frontend_ios_native_unit_tests_beta/InventorumNative/Base.lproj/Inventory_iPad.storyboard
nwi_state: registration failed (1000000)
2015-05-13 10:45:39.934 Interface Builder Cocoa Touch Tool[38344:184492] ***storageTaskManagerExistsWithIdentifier: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=0x7fb03493a480 {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)
2015-05-13 10:45:42.639 Interface Builder Cocoa Touch Tool[38547:184520] ***storageTaskManagerExistsWithIdentifier: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=0x7fe69b72cd00 {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)
2015-05-13 10:45:51.752 Interface Builder Cocoa Touch Tool[38359:184648] ***storageTaskManagerExistsWithIdentifier: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=0x7ff4f15182a0 {NSDebugDescription=The connection to service named com.apple.nsurlstorage-cache was invalidated.}; {
    NSDebugDescription = "The connection to service named com.apple.nsurlstorage-cache was invalidated.";
}
/* com.apple.ibtool.document.warnings */
/Users/jenkins/workspace/inventorum_frontend_ios_native_unit_tests_beta/InventorumNative/Base.lproj/Inventory_iPad.storyboard:ogr-LT-f0J: warning: Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0 [5]
/Users/jenkins/workspace/inventorum_frontend_ios_native_unit_tests_beta/InventorumNative/Base.lproj/Inventory_iPad.storyboard:GlE-Pp-88g: warning: Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0 [5]
/Users/jenkins/workspace/inventorum_frontend_ios_native_unit_tests_beta/InventorumNative/Base.lproj/Inventory_iPad.storyboard:b5N-m4-Eby: warning: Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0 [5]
mini:Base.lproj jenkins$ 

我不知道这里有什么问题......它可以在我的本地机器上运行,但是在mac mini上我们的构建机器失败了。

我已经清理了项目,删除了派生数据,重新启动了系统。

3 个答案:

答案 0 :(得分:5)

"产品 - >清洁"应该解决这个问题。对我来说它有用..希望它也能帮到你..

答案 1 :(得分:2)

当捆绑目标不是通用时,会出现此错误。因此,请确保捆绑包的构建设置中的目标设备系列设置为iPhone和iPad。

参考问题:XCode no valid compiled storyboard at path

答案 2 :(得分:0)

感谢Britto的回答并检查了更多我缩小了范围。我把它作为答案发布,以便将来有人可以找到解决方案,如果他有相同的错误。

<强>解决方案

检查正在运行的设备测试,如果您的目标设备仅作为iPad,那么它应仅在iPad上运行。

我正在为iPad构建应用程序,因此目标设备仅限iPad,不知何故Jenkins正在iPhone而不是iPad上运行测试。

现在,我将检查原因,因为我强迫他在iPad 2 (8.3) ...

上运行它