Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot execute the test target #80

Closed
tapthaker opened this issue May 3, 2016 · 4 comments
Closed

Cannot execute the test target #80

tapthaker opened this issue May 3, 2016 · 4 comments

Comments

@tapthaker
Copy link

Facing the problem below :

Test target IntegrationTests encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted)

@khandpur
Copy link
Collaborator

khandpur commented May 3, 2016

Hey Tapan,
With the current information I cannot pinpoint the problem. Sometimes Xcode and iOS Simulator get into a weird state which has no remedy except a full system reboot. Have you tried that or can you provide a more detailed version of the log?

@tapthaker
Copy link
Author

Hey Sundeep,

Here are the logs, I can understand that there is some problem in linking the library. But can't figure out what.

Warning: Error creating LLDB target at path '<APP_PATH>'- using an empty LLDB target which can cause slow memory reads from remote devices.
2016-05-03 10:52:01.510 <APP_NAME>[1924:12093] Failed to load test bundle from file://<APP_PATH>/PlugIns/IntegrationTests.xctest/../IntegrationTests.xctest/: Error Domain=NSCocoaErrorDomain Code=3585 "dlopen_preflight(<APP_PATH>/PlugIns/IntegrationTests.xctest/IntegrationTests): no suitable image found.  Did find:
    <APP_PATH>/PlugIns/IntegrationTests.xctest/IntegrationTests: mach-o, but wrong architecture" UserInfo={NSLocalizedFailureReason=The bundle doesn’t contain a version for the current architecture., NSLocalizedRecoverySuggestion=Try installing a universal version of the bundle., NSFilePath=<APP_PATH>/PlugIns/IntegrationTests.xctest/IntegrationTests, NSDebugDescription=dlopen_preflight(<APP_PATH>/PlugIns/IntegrationTests.xctest/IntegrationTests): no suitable image found.  Did find:
    <APP_PATH>/PlugIns/IntegrationTests.xctest/IntegrationTests: mach-o, but wrong architecture, NSBundlePath=<APP_PATH>/PlugIns/IntegrationTests.xctest, NSLocalizedDescription=The bundle “IntegrationTests” couldn’t be loaded because it doesn’t contain a version for the current architecture.}
2016-05-03 10:52:01.512 <APP_NAME>[1924:12093] IDEBundleInjection Arguments: (
    "/Users/tapan/Library/Developer/CoreSimulator/Devices/E4CC726F-6E44-41E4-8DA2-3CAB6643FD04/data/Containers/Bundle/Application/14CCA72B-7854-409B-8C72-92DD62FEE1E9/<APP_NAME>.app/<APP_NAME>",
    "-NSTreatUnknownArgumentsAsOpen",
    NO,
    "-ApplePersistenceIgnoreState",
    YES
)
2016-05-03 10:52:01.513 <APP_NAME>[1924:12093] IDEBundleInjection Environment: {
    "CFFIXED_USER_HOME" = "/Users/tapan/Library/Developer/CoreSimulator/Devices/E4CC726F-6E44-41E4-8DA2-3CAB6643FD04/data/Containers/Data/Application/F84BD539-010A-4C16-ADF1-2ECA4D3CBDD6";
    "CFLOG_FORCE_STDERR" = YES;
    CLASSIC = 0;
    "CUPS_SERVER" = "/private/tmp/com.apple.launchd.K4oI91Sea6/Listeners";
    "DTX_CONNECTION_SERVICES_PATH" = "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/Developer/Library/PrivateFrameworks/DTXConnectionServices.framework";
    "DYLD_FALLBACK_FRAMEWORK_PATH" = "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks";
    "DYLD_FALLBACK_LIBRARY_PATH" = "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib";
    "DYLD_FRAMEWORK_PATH" = "/Users/tapan/TW/Project/ios/Source/<APP_NAME>/Build/Intermediates/CodeCoverage/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks";
    "DYLD_INSERT_LIBRARIES" = "";
    "DYLD_LIBRARY_PATH" = "/Users/tapan/TW/Project/ios/Source/<APP_NAME>/Build/Intermediates/CodeCoverage/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks";
    "DYLD_ROOT_PATH" = "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk";
    "DYLD_SHARED_REGION" = avoid;
    FBSClientLogging = 0;
    HOME = "/Users/tapan/Library/Developer/CoreSimulator/Devices/E4CC726F-6E44-41E4-8DA2-3CAB6643FD04/data/Containers/Data/Application/F84BD539-010A-4C16-ADF1-2ECA4D3CBDD6";
    "IOS_SIMULATOR_SYSLOG_SOCKET" = "/private/tmp/com.apple.CoreSimulator.SimDevice.E4CC726F-6E44-41E4-8DA2-3CAB6643FD04.launchd_sim/syslogsock";
    "IPHONE_SHARED_RESOURCES_DIRECTORY" = "/Users/tapan/Library/Developer/CoreSimulator/Devices/E4CC726F-6E44-41E4-8DA2-3CAB6643FD04/data";
    "IPHONE_SIMULATOR_CLASS" = N56;
    "IPHONE_SIMULATOR_DEVICE" = iPhone;
    "IPHONE_SIMULATOR_ROOT" = "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk";
    "IPHONE_TVOUT_EXTENDED_PROPERTIES" = "/Users/tapan/Library/Developer/CoreSimulator/Devices/E4CC726F-6E44-41E4-8DA2-3CAB6643FD04/data/Library/Application Support/iPhone Simulator/com.apple.iphonesimulator/extended_display.plist";
    "LLVM_PROFILE_FILE" = "/var/folders/zc/c6hk5_rd3957yhjv0b5l98xc0000gp/T/<BUNDLE_IDENTIFIER>/CD424911-AC6C-47D1-A445-89CC153AB672-572-00000015A3E3B79E/<APP_NAME>.app-%p.profdata";
    NSApplicationQuitWithoutSuddenTermination = YES;
    NSUnbufferedIO = YES;
    "OBJC_DISABLE_GC" = YES;
    PATH = "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/sbin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/sbin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/local/bin";
    "SIMULATOR_CAPABILITIES" = "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes/iPhone 6 Plus.simdevicetype/Contents/Resources/capabilities.plist";
    "SIMULATOR_DEVICE_NAME" = "iPhone 6 Plus";
    "SIMULATOR_EXTENDED_DISPLAY_PROPERTIES" = "/Users/tapan/Library/Developer/CoreSimulator/Devices/E4CC726F-6E44-41E4-8DA2-3CAB6643FD04/data/Library/Application Support/iPhone Simulator/com.apple.iphonesimulator/extended_display.plist";
    "SIMULATOR_HOST_HOME" = "/Users/tapan";
    "SIMULATOR_LEGACY_ASSET_SUFFIX" = iphone;
    "SIMULATOR_LOG_ROOT" = "/Users/tapan/Library/Logs/CoreSimulator/E4CC726F-6E44-41E4-8DA2-3CAB6643FD04";
    "SIMULATOR_MAINSCREEN_HEIGHT" = 2208;
    "SIMULATOR_MAINSCREEN_PITCH" = "461.000000";
    "SIMULATOR_MAINSCREEN_SCALE" = "3.000000";
    "SIMULATOR_MAINSCREEN_WIDTH" = 1242;
    "SIMULATOR_MEMORY_WARNINGS" = "/Users/tapan/Library/Developer/CoreSimulator/Devices/E4CC726F-6E44-41E4-8DA2-3CAB6643FD04/data/var/run/memory_warning_simulation";
    "SIMULATOR_MODEL_IDENTIFIER" = "iPhone7,1";
    "SIMULATOR_PLATFORM_RUNTIME_OVERLAY_ROOT" = "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/CoreSimulator/RuntimeOverlay";
    "SIMULATOR_ROOT" = "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk";
    "SIMULATOR_RUNTIME_BUILD_VERSION" = 13E230;
    "SIMULATOR_RUNTIME_VERSION" = "9.3";
    "SIMULATOR_SHARED_RESOURCES_DIRECTORY" = "/Users/tapan/Library/Developer/CoreSimulator/Devices/E4CC726F-6E44-41E4-8DA2-3CAB6643FD04/data";
    "SIMULATOR_UDID" = "E4CC726F-6E44-41E4-8DA2-3CAB6643FD04";
    "SIMULATOR_VERSION_INFO" = "CoreSimulator 209.19 - Device: iPhone 6 Plus - Runtime: iOS 9.3 (13E230) - DeviceType: iPhone 6 Plus";
    "TESTMANAGERD_SIM_SOCK" = "/private/tmp/com.apple.launchd.jE7UlGxlOf/com.apple.testmanagerd.unix-domain.socket";
    TMPDIR = "/Users/tapan/Library/Developer/CoreSimulator/Devices/E4CC726F-6E44-41E4-8DA2-3CAB6643FD04/data/Containers/Data/Application/F84BD539-010A-4C16-ADF1-2ECA4D3CBDD6/tmp";
    XCInjectBundleInto = "<APP_PATH>/<APP_NAME>";
    "XCODE_DBG_XPC_EXCLUSIONS" = "com.apple.dt.xctestSymbolicator";
    XCTestConfigurationFilePath = "<APP_PATH>/PlugIns/IntegrationTests.xctest/IntegrationTests-92CB0A12-1DF5-4F99-87AB-6825EC360E1D.xctestconfiguration";
    "XPC_FLAGS" = 0x0;
    "XPC_SERVICE_NAME" = "UIKitApplication:<BUNDLE_IDENTIFIER>[0x7222]";
    "XPC_SIMULATOR_LAUNCHD_NAME" = "com.apple.CoreSimulator.SimDevice.E4CC726F-6E44-41E4-8DA2-3CAB6643FD04.launchd_sim";
    "__XPC_LLVM_PROFILE_FILE" = "/var/folders/zc/c6hk5_rd3957yhjv0b5l98xc0000gp/T/<BUNDLE_IDENTIFIER>/CD424911-AC6C-47D1-A445-89CC153AB672-572-00000015A3E3B79E/<APP_NAME>.app-%p.profdata";
}

@khandpur
Copy link
Collaborator

khandpur commented May 3, 2016

dlopen_preflight(<APP_PATH>/PlugIns/IntegrationTests.xctest/IntegrationTests): no suitable image found. Did find:
<APP_PATH>/PlugIns/IntegrationTests.xctest/IntegrationTests: mach-o, but wrong architecture

The bundle “IntegrationTests” couldn’t be loaded because it doesn’t contain a version for the current architecture.

Check your build settings and make sure integration test target is built for right set of architectures.

@tapthaker
Copy link
Author

Thanks Sundeep,
My architectures for my Test target was selected as x86, that was creating the problem. Closing this issue now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants