2012-06-14 4 views
5

샌드 박스 기능을 사용하도록 앱을 설정 했으므로 단위 테스트를 실행할 수 없습니다. 이 오류 메시지가 무엇입니까 : 나는 OCMock 함께 SenTesting 프레임 워크를 사용하고Cocoa App Sandbox - 번들로드 중 오류가 발생했습니다.

objc[18812]: GC: forcing GC OFF because OBJC_DISABLE_GC is set 2012-06-14 09:19:42.689 Gitpilot[18812:603] Error loading /Users/corey/Library/Developer/Xcode/DerivedData/Gitpilot-bedgmtkbdheptpbpjfklegmqyipi/Build/Products/Debug/GitpilotTests.octest/Contents/MacOS/GitpilotTests: dlopen(/Users/corey/Library/Developer/Xcode/DerivedData/Gitpilot-bedgmtkbdheptpbpjfklegmqyipi/Build/Products/Debug/GitpilotTests.octest/Contents/MacOS/GitpilotTests, 262): no suitable image found. Did find: /Users/corey/Library/Developer/Xcode/DerivedData/Gitpilot-bedgmtkbdheptpbpjfklegmqyipi/Build/Products/Debug/GitpilotTests.octest/Contents/MacOS/GitpilotTests: open() failed with errno=1 IDEBundleInjection.c: Error loading bundle '/Users/corey/Library/Developer/Xcode/DerivedData/Gitpilot-bedgmtkbdheptpbpjfklegmqyipi/Build/Products/Debug/GitpilotTests.octest' 2012-06-14 09:19:42.733 Gitpilot[18812:603] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/rs/63y00fxj7dj07g91vrswhk240000gn/T/com.gitpilot.Gitpilot/com.gitpilot.Gitpilot.savedState

. 어떤 아이디어?

감사합니다.

+1

이것은 사과 샌드 박스 데몬의 버그입니다. 인 타이틀먼트가 사용 가능할 때 테스트 번들로드를 막습니다. –

답변

12

프로젝트 설정 편집기에서 새 빌드 구성을 만드는 경우 빌드 설정 탭으로 이동하여 해당 구성에 대한 코드 서명 및 인 타이틀먼트를 비활성화 할 수 있습니다. 그런 다음 구성표 편집기에서 단위 테스트를위한 구성을 선택하고 릴리스 및 디버그 빌드를 그대로두고 단위 테스트를 실행할 수있게하십시오.

+0

+1 경험적으로 확인되었습니다. 이것은 정답으로 기록되어야합니다. – FluffulousChimp

+1

물론 단위 테스트에서 인 타이틀먼트가 필요 없다고 가정합니다. 예를 들어 그룹 컨테이너에 대한 단위 테스트 액세스를 수행 할 수 없습니다. –

0

xcode 5에서 동일한 문제가있었습니다. 테스트 대상이 올바르게로드되기 전에 정상적인 대상에서 샌드 박스를 비활성화해야했습니다.

관련 문제