Tag: sentestingkit

为什么SenTestingKit导致我的应用程序崩溃?

我为iPhone创build了一个基于地图的应用程序,并最近将其提交给商店。 我没有在设备或模拟器上运行应用程序的麻烦。 然而,商店拒绝了它,因为它发射坠毁。 崩溃日志抱怨没有findSenTestingKit框架: Date/Time: 2012-02-21 19:02:26.048 -0800 OS Version: iPhone OS 5.0.1 (9A405) Report Version: 104 Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x00000001, 0xe7ffdefe Crashed Thread: 0 Dyld Error Message: Library not loaded: /Developer/Library/Frameworks/SenTestingKit.framework/SenTestingKit Referenced from: /var/mobile/Applications/*Long Application Reference Number*/MyApp.app/U of T Map Reason: image not found Dyld Version: 199.5 我已经看过其他人有这个问题,我敢肯定,我继续摆弄它,我会find框架searchpath,我需要包括SenTestingKit框架成功。 我感到困惑和需要帮助的理解是: 为什么设备和模拟器在没有框架的情况下运行良好,但是存档版本没有? 为什么它认为我需要这个框架? […]

OCUnittesting现有的iOS项目。 “ld:找不到文件”

我一直在关注这个博客文章: 添加unit testing到现有的项目。 但是我得到这个错误: ld:找不到文件:Build / Products / Debug-iphoneos / MyApp.app / MyApp Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang失败,退出代码为1 我有我的testing目标属性, Bundle Loader = $(BUILT_PRODUCTS_DIR)/MyApp.app/MyApp testing主机= $(BUNDLE_LOADER) (这两个等同于:构build/ Debug-iphoneos / MyApp.app / MyApp) 我疯狂的猜测是,这些variables不是指向编译器相同的位置。 “build / Debug-iphoneos / …”vs“Build / Products / Debug-iphoneos / …” 我可能完全错误的猜测,但无论哪种方式,有没有人知道是什么原因导致这个错误,或者我将如何修复这些环境variables? 谢谢你的帮助, 山姆

XCTest为testing目标Xcode 5构build错误:

我已经为unit testingbuild立了一个XCode 5 iOS 7项目。 当然,进行unit testing的时间长了很多,所以我试图坚信这是值得的。 在这个错误上挣扎数小时: ld: building for iOS Simulator, but linking against dylib built for MacOSX file '/Applications/Xcode5-DP5.app/Contents/Developer/Library/Frameworks/XCTest.framework/XCTest' for architecture i386 任何想法如何解决?