Git Product home page Git Product logo

Comments (4)

khandpur avatar khandpur commented on April 27, 2024

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?

from earlgrey.

tapthaker avatar tapthaker commented on April 27, 2024

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";
}

from earlgrey.

khandpur avatar khandpur commented on April 27, 2024

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.

from earlgrey.

tapthaker avatar tapthaker commented on April 27, 2024

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

from earlgrey.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.