idb is a flexible command line interface for automating iOS simulators and devices

Related tags

Tools idb
Overview

idb logo

Discord

The "iOS Development Bridge" or idb, is a command line interface for automating iOS Simulators and Devices. It has three main priniciples:

  • Remote Automation: idb is composed of a "companion" that runs on macOS and a python client that can run anywhere. This enables scenarios such as a "Device Lab" within a Data Center or fanning out shards of test executions to a large pool of iOS Simulators.
  • Simple Primitives: idb exposes granular commands so that sophisticated workflows can be sequenced on top of them. This means you can use idb from an IDE or build an automated testing scenario that isn't feasible with default tooling. All of these primitives aim to be consistent across iOS versions and between iOS Simulators and iOS Devices. All the primitives are exposed over a cli, so that it easy to use for both humans and automation.
  • Exposing missing functionality: Xcode has a number of features that aren't available outside it's user interface. idb leverages many of Private Frameworks that are used by Xcode, so that these features can be in GUI-less automated scenarios.

idb is built on top the FBSimulatorControl and FBDeviceControl macOS Frameworks, contained within this repository. These Frameworks can be used independently of idb, however idb is likely to provide the simplest install and the most sensible defaults for most users.

We've given a talk about idb at F8, so that you can learn more about what idb is and why we built it. A recording of the talk is available here.

Quick Start

idb is made up of 2 major components, each of which needs to be installed separately.

idb companion

Each target (simulator/device) will have a companion process attached allowing idb to communicate remotely.

The idb companion can be installed via brew or built from source

brew tap facebook/fb
brew install idb-companion

Note: Instructions on how to install brew can be found here

idb client

A cli tool and python client is provided to interact with idb.

It can be installed via pip:

pip3.6 install fb-idb

Note: The idb client requires python 3.6 or greater to be installed.

Please refer to fbidb.io for detailed installation instructions and a guided tour of idb.

Once installed, just run the list-targets command which will show you all the simulators installed on your system:

$ idb list-targets
...
iPhone X | 569C0F94-5D53-40D2-AF8F-F4AA5BAA7D5E | Shutdown | simulator | iOS 12.2 | x86_64 | No Companion Connected
iPhone Xs | 2A1C6A5A-0C67-46FD-B3F5-3CB42FFB38B5 | Shutdown | simulator | iOS 12.2 | x86_64 | No Companion Connected
iPhone Xs Max | D3CF178F-EF61-4CD3-BB3B-F5ECAD246310 | Shutdown | simulator | iOS 12.2 | x86_64 | No Companion Connected
iPhone Xʀ | 74064851-4B98-473A-8110-225202BB86F6 | Shutdown | simulator | iOS 12.2 | x86_64 | No Companion Connected
...

list-apps will show you all the apps installed in a simulator:

$ idb list-apps --udid 74064851-4B98-473A-8110-225202BB86F6
com.apple.Maps | Maps | system | x86_64 | Not running | Not Debuggable
com.apple.MobileSMS | MobileSMS | system | x86_64 | Not running | Not Debuggable
com.apple.mobileslideshow | MobileSlideShow | system | x86_64 | Not running | Not Debuggable
com.apple.mobilesafari | MobileSafari | system | x86_64 | Not running | Not Debuggable

launch will launch an application:

$ idb launch com.apple.mobilesafari

Head over to the main documentation for more details on what you can do with idb and the full list of commands. There are also instructions on how to make changes to idb including building it from source.

Documentation

Find the full documentation for this project at fbidb.io

We also have a public Discord Server that you can join

Contributing

We've released idb because it's a big part of how we scale iOS automation at Facebook. We hope that others will be able to benefit from the project where they may have needs that aren't currently serviced by the standard Xcode toolchain.

Code of Conduct

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Contributing Guide

Read our contributing guide to learn about our development process.

License

idb is MIT-licensed.

Comments
  • idb-companion installation fails on Mac M1

    idb-companion installation fails on Mac M1

    Description

    I'm working on a Mac Mini M1, already installed fb-idb, but when trying to brew install idb-companion it fails all the time with the following error:

    Screen Shot 2021-01-26 at 9 41 16 PM

    Reproduction

    brew install idb-companion / brew reinstall --build-from-source idb-companion

    Solution

    [OPTIONAL: Do you know what needs to be done to address this issue? Ideally, provide a pull request which fixes this issue.]

    Additional Information

    • idb revision: [FILL THIS OUT]
    opened by jeffreyabarrios 51
  • Unable to run a non-system app

    Unable to run a non-system app

    I made a simple program to launch an app in a simulator, but it's not working :/ I started with the code example, in the Readme for launching safari, and that worked great.

    Then I replaced the configurationWithApplication argument to be

    [FBSimulatorApplication
      applicationWithPath: @"/Path/to/My.app"
      error:&error]
    

    Instead of the previous [FBSimulatorApplication systemApplicationNamed:@"MobileSafari"]

    Inspecting the resulting, it seemed to have loaded the bundleId, binary path, etc. correctly, and it started the simulator, but it failed to install & launch my app. Here's the error:

    Domain=com.facebook.FBSimulatorControl Code=0 "Failed to launch application" UserInfo=0x10144bd00 {NSLocalizedDescription=Failed to launch application, launchd_is_running=true, launchd_subprocesses=(
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/sbin/syslogd | PID 34083",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/libexec/UserEventAgent (System) | PID 34084",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/FileProvider.framework/Support/fileproviderd | PID 34085",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/libexec/routined | PID 34086",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/MediaStream.framework/Support/mstreamd | PID 34087",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/MediaRemote.framework/Support/mediaremoted | PID 34088",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/IDSSimulatorSupport.framework/Support/ids_simd | PID 34089",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/libexec/installd | PID 34091",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/IDS.framework/identityservicesd.app/identityservicesd | PID 34092",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/TouchRemote.framework/Support/touchsetupd | PID 34093",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/CoreServices/AppleIDAuthAgent | PID 34094",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks/WatchKit.framework/Support/companionappd | PID 34095",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks/AssetsLibrary.framework/Support/assetsd | PID 34096",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/libexec/wcd | PID 34097",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/CoreServices/SpringBoard.app/SpringBoard | PID 34098",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/libexec/backboardd | PID 34099",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/libexec/locationd | PID 34101",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/libexec/assertiond | PID 34102",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/GenerationalStorage.framework/revisiond | PID 34103",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/CoreSimulator/RuntimeOverlay/usr/libexec/SimulatorBridge | PID 34104",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/libexec/configd_sim -d | PID 34105",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/CoreSimulator/RuntimeOverlay/usr/libexec/CoreSimulatorBridge | PID 34106",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/sbin/notifyd | PID 34107",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/sbin/cfprefsd daemon | PID 34108",
        "Process aslmanager | PID 34109",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/libexec/MobileGestaltHelper | PID 34110",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/libexec/nsurlsessiond | PID 34111",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/libexec/securityd | PID 34112",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/sbin/distnoted daemon | PID 34113",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/TelephonyUtilities.framework/callservicesd | PID 34114",
        "Process /usr/libexec/pkd -d/tmp/PlugInKit-Annotations | PID 34116",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/TCC.framework/tccd | PID 34118",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/ApplePushService.framework/apsd | PID 34119",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/libexec/networkd | PID 34120",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/MobileContainerManager.framework/Support/containermanagerd | PID 34122",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/libexec/mobileassetd | PID 34123",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/CarKit.framework/Support/carkitd | PID 34124",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/ManagedConfiguration.framework/Support/profiled | PID 34125",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/UserActivity.framework/Agents/useractivityd | PID 34126",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/Applications/MobileSafari.app/webbookmarksd | PID 34127",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks/Accounts.framework/accountsd | PID 34128",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetCacheServices.framework/XPCServices/AssetCacheLocatorService.xpc/AssetCacheLocatorService -d | PID 34129",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/iTunesStore.framework/Support/itunesstored | PID 34130",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/Applications/ServerDocuments.app/PlugIns/ServerFileProvider.appex/ServerFileProvider | PID 34131",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/libexec/nsurlstoraged | PID 34132",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/libexec/nanoregistryd | PID 34136",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/libexec/lsd runAsRoot | PID 34137",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/CalendarDaemon.framework/Support/calaccessd | PID 34138",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/IMDPersistence.framework/XPCServices/IMDPersistenceAgent.xpc/IMDPersistenceAgent | PID 34139",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/sbin/filecoordinationd | PID 34141",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/StreamingZip.framework/XPCServices/com.apple.StreamingUnzipService.xpc/com.apple.StreamingUnzipService | PID 34145",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/libexec/nanoregistrylaunchd | PID 34146",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/libexec/sharingd | PID 34150",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/GeoServices.framework/geod | PID 34151",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/Search.framework/searchd | PID 34152",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/Applications/MobileCal.app/PlugIns/MobileCalSpotlight.appex/MobileCalSpotlight | PID 34153",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/Applications/Reminders.app/PlugIns/RemindersSpotlight.appex/RemindersSpotlight | PID 34154",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/Applications/Contacts.app/PlugIns/ContactsCoreSpotlightExtension.appex/ContactsCoreSpotlightExtension | PID 34155",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/FoundationODR.framework/ondemandd.bundle/ondemandd | PID 34159",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AuthKit.framework/akd | PID 34160",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/Accessibility.framework/Frameworks/AccessibilityUI.framework/XPCServices/com.apple.accessibility.AccessibilityUIServer.xpc/com.apple.accessibility.AccessibilityUIServer | PID 34161",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks/PassKit.framework/passd | PID 34162",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/MusicLibrary.framework/Support/medialibraryd | PID 34163",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks/AudioToolbox.framework/XPCServices/com.apple.audio.SystemSoundServer-iOS-Simulator.xpc/com.apple.audio.SystemSoundServer-iOS-Simulator | PID 34164",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AppSupport.framework/Support/cplogd | PID 34165",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/Applications/MobileCal.app/MobileCal | PID 34166",
        "Process /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/CoreServices/CFNetworkAgent | PID 34168"
    ), NSUnderlyingError=0x101130010 "The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 4.)"}
    
    opened by jaredly 27
  • How can I run my UI tests on multiple simulators

    How can I run my UI tests on multiple simulators

    Hi Team,

    I am using XCode 8 with XCTest framework to write my UI tests in swift and I am unable to identify how can I run my test on multiple simulators. What commands should I be using to run my UI test on 2-3 different simulators. It would be great if you could help me to sort this out asap.

    Thanks, Swarnim

    question 
    opened by kumariswarnim 23
  • Invoking test with XCTestBootstrap on real device

    Invoking test with XCTestBootstrap on real device

    Moved issue from https://github.com/facebook/WebDriverAgent/issues/114#issuecomment-229023492

    @marekcirkos After investigate the fbsimctl sources and flows. I'm starting to port fbsimctl to fbdevicectl. However I'm stuck at FBXCTestPreparationStrategy

    (instancetype)strategyWithApplicationPath:(NSString *)applicationPath applicationDataPath:(NSString *)applicationDataPath testBundlePath:(NSString *)testBundlePath; Could I confirm sth?

    applicationPath: is path to *.app which is generated by Xcode after build test applicationDataPath: is path to .xcappdata which is download by Xcode -> Window -> Devices -> DownloadContainer testBundlePath: is path to *.xctest that is subfolder in *.app Otherwise, in testBundlePath for real device doesn't have .xctestconfiguration

    Here is structure of *.app

    WebDriverAgentRunner-Runner.app - _CodeSignature - embedded.mobileprovision - Frameworks - Info.plish - PkgInfo - Plugins - WebDriverAgentRunner.xctest - _CodeSignature - Frameworks - Info.plist - WebDriverAgentRunner - XCTRunner

    question 
    opened by marekcirkos 20
  • [Question]Running multiple simulators

    [Question]Running multiple simulators

    @lawrencelomax I see that one factor that limits number of simulators one can have on machine is CPU used by Native App under test itself. And, I see that same app on simulator takes more CPU than its on actual real device. I see this behavior same for few apps that I tried. Have you guys run into this issue? How many simulators you guys have on a host? what's your host configuration?

    question 
    opened by yaphatak 17
  • idb-companion failed to install on MacBook M1

    idb-companion failed to install on MacBook M1

    We use GitHub Issues for bugs.

    --- Please use this template, and delete everything above this line before submitting your issue ---

    Description

    Failed to install idb-companion on MacBook Air M1.

    Following error occurred during installation

    ==> pod install
    ==> ./idb_build.sh idb_companion build /opt/homebrew/Cellar/idb-companion/1.1.5
    Last 15 lines from /Users/ravikumar/Library/Logs/Homebrew/idb-companion/02.idb_build.sh:
    WriteAuxiliaryFile /tmp/idb-companion-20211111-41348-1o1nhf9/idb-1.1.5/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/Objects-normal/arm64/idbGRPC.LinkFileList (in target 'idbGRPC' from project 'idb_companion')
        cd /tmp/idb-companion-20211111-41348-1o1nhf9/idb-1.1.5
        write-file /tmp/idb-companion-20211111-41348-1o1nhf9/idb-1.1.5/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/Objects-normal/arm64/idbGRPC.LinkFileList
    
    Libtool /tmp/idb-companion-20211111-41348-1o1nhf9/idb-1.1.5/build/Build/Products/Debug/BoringSSL-GRPC/libBoringSSL-GRPC.a normal (in target 'BoringSSL-GRPC' from project 'Pods')
        cd /tmp/idb-companion-20211111-41348-1o1nhf9/idb-1.1.5/Pods
        export MACOSX_DEPLOYMENT_TARGET\=10.10
        /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only arm64 -D -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk -L/tmp/idb-companion-20211111-41348-1o1nhf9/idb-1.1.5/build/Build/Products/Debug/BoringSSL-GRPC -filelist /tmp/idb-companion-20211111-41348-1o1nhf9/idb-1.1.5/build/Build/Intermediates.noindex/Pods.build/Debug/BoringSSL-GRPC.build/Objects-normal/arm64/BoringSSL-GRPC.LinkFileList -dependency_info /tmp/idb-companion-20211111-41348-1o1nhf9/idb-1.1.5/build/Build/Intermediates.noindex/Pods.build/Debug/BoringSSL-GRPC.build/Objects-normal/arm64/BoringSSL-GRPC_libtool_dependency_info.dat -o /tmp/idb-companion-20211111-41348-1o1nhf9/idb-1.1.5/build/Build/Products/Debug/BoringSSL-GRPC/libBoringSSL-GRPC.a
    
    ** BUILD FAILED **
    
    
    The following build commands failed:
    	RuleScriptExecution /tmp/idb-companion-20211111-41348-1o1nhf9/idb-1.1.5/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/DerivedSources/idb.pb.h /tmp/idb-companion-20211111-41348-1o1nhf9/idb-1.1.5/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/DerivedSources/idb.pb.cc /tmp/idb-companion-20211111-41348-1o1nhf9/idb-1.1.5/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/DerivedSources/idb.grpc.pb.h /tmp/idb-companion-20211111-41348-1o1nhf9/idb-1.1.5/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/DerivedSources/idb.grpc.pb.cc /tmp/idb-companion-20211111-41348-1o1nhf9/idb-1.1.5/proto/idb.proto normal arm64 (in target 'idbGRPC' from project 'idb_companion')
    (1 failure)
    
    Do not report this issue to Homebrew/brew or Homebrew/core!
    
    These open issues may also help:
    idb-companion.rb should have branch set to main https://github.com/facebook/homebrew-fb/issues/67
    

    Reproduction

    Just followed steps here https://fbidb.io/docs/installation but that doesn't seem to be working for M1

    Additional Information

    Homebrew 3.3.3 Homebrew/homebrew-core (git revision c4267c371e7; last commit 2021-11-11)

    opened by ravimaurya-nickelfox 16
  • Not able to run tap scenario

    Not able to run tap scenario

    ./fbsimctl <udid> tap 200.0 200.0. it always say Could not connect to HID, it must be provided on launch. I did pass hid port on launching simulator. Am I missing something?

    question 
    opened by yaphatak 16
  • command not found: idb

    command not found: idb

    We use GitHub Issues for bugs.

    --- Please use this template, and delete everything above this line before submitting your issue ---

    Description

    After following the installation instructions from the website or the README in GH, I can't run idb.

    Logs

    Here's the logs to show that I installed everything but idb is not found:

    simonreggiani@Simons-MacBook-Pro local-tennis-app % brew install idb-companion
    Warning: facebook/fb/idb-companion 1.0.14 is already installed and up-to-date
    To reinstall 1.0.14, run `brew reinstall idb-companion`
    simonreggiani@Simons-MacBook-Pro local-tennis-app % brew reinstall idb-companion
    ==> Downloading https://github.com/facebook/idb/releases/download/v1.0.14/idb-companion-1.0.14.mojave.bottle.tar.gz
    Already downloaded: /Users/simonreggiani/Library/Caches/Homebrew/downloads/c0f755777893a7fe69750c96d28a1394bbc64fdec58baf9a20721d5dbb271d95--idb-companion-1.0.14.mojave.bottle.tar.gz
    ==> Reinstalling facebook/fb/idb-companion 
    ==> Pouring idb-companion-1.0.14.mojave.bottle.tar.gz
    ==> codesign --force --sign - --timestamp=none /usr/local/Cellar/idb-companion/1.0.14/Frameworks/FBDeviceControl.framework/Versions/A/Resources/libShimulato
    ==> codesign --force --sign - --timestamp=none /usr/local/Cellar/idb-companion/1.0.14/Frameworks/FBSimulatorControl.framework/Versions/A/Resources/libShimul
    ==> codesign --force --sign - --timestamp=none /usr/local/Cellar/idb-companion/1.0.14/Frameworks/XCTestBootstrap.framework/Versions/A/Resources/libShimulato
    🍺  /usr/local/Cellar/idb-companion/1.0.14: 253 files, 30.2MB
    simonreggiani@Simons-MacBook-Pro local-tennis-app % pip3.8 install fb-idb
    Requirement already satisfied: fb-idb in /usr/local/lib/python3.8/site-packages (1.0.12)
    Requirement already satisfied: protobuf in /usr/local/Cellar/protobuf/3.12.4/libexec/lib/python3.8/site-packages (from fb-idb) (3.12.4)
    Requirement already satisfied: grpclib>=0.3.2 in /usr/local/lib/python3.8/site-packages (from fb-idb) (0.3.2)
    Requirement already satisfied: treelib in /usr/local/lib/python3.8/site-packages (from fb-idb) (1.6.1)
    Requirement already satisfied: aiofiles in /usr/local/lib/python3.8/site-packages (from fb-idb) (0.5.0)
    Requirement already satisfied: six>=1.9 in /usr/local/Cellar/protobuf/3.12.4/libexec/lib/python3.8/site-packages (from protobuf->fb-idb) (1.15.0)
    Requirement already satisfied: setuptools in /usr/local/lib/python3.8/site-packages (from protobuf->fb-idb) (49.2.0)
    Requirement already satisfied: multidict in /usr/local/lib/python3.8/site-packages (from grpclib>=0.3.2->fb-idb) (4.7.6)
    Requirement already satisfied: h2 in /usr/local/lib/python3.8/site-packages (from grpclib>=0.3.2->fb-idb) (3.2.0)
    Requirement already satisfied: future in /usr/local/lib/python3.8/site-packages (from treelib->fb-idb) (0.18.2)
    Requirement already satisfied: hpack<4,>=3.0 in /usr/local/lib/python3.8/site-packages (from h2->grpclib>=0.3.2->fb-idb) (3.0.0)
    Requirement already satisfied: hyperframe<6,>=5.2.0 in /usr/local/lib/python3.8/site-packages (from h2->grpclib>=0.3.2->fb-idb) (5.2.0)
    simonreggiani@Simons-MacBook-Pro local-tennis-app % idb
    zsh: command not found: idb
    
    opened by sregg 14
  • Guided tour on fbidb.io doesn't work

    Guided tour on fbidb.io doesn't work

    Description

    Trying to follow the installation and then guided tour on fbidb.io and running in to issues. The installation of the 2 components worked without issue.

    idb list-targets

    Apple Watch Series 2 - 38mm | 2630AF4F-907C-4AF2-ABF6-4B436543D3C3 | Shutdown | simulator | watchOS 5.2 | i386 | :0
    Apple Watch Series 2 - 42mm | 969D861C-0884-45B1-BC9E-1776F509A62D | Shutdown | simulator | watchOS 5.2 | i386 | :0
    Apple Watch Series 3 - 38mm | 71846D9A-FA94-4293-AE45-BD16A8744D39 | Shutdown | simulator | watchOS 5.2 | i386 | :0
    Apple Watch Series 3 - 42mm | 72EF663D-8688-4402-BAEF-C6D9E525632D | Shutdown | simulator | watchOS 5.2 | i386 | :0
    Apple Watch Series 4 - 40mm | 8C2DED11-6821-4C9D-A3FF-8A9DF3B0D01F | Shutdown | simulator | watchOS 5.2 | i386 | :0
    Apple Watch Series 4 - 44mm | C7EDB3D0-A103-4C79-A136-1FB6641BDE06 | Shutdown | simulator | watchOS 5.2 | i386 | :0
    iPhone 5 | DBAD2533-77E1-49A7-9995-4CE88EF61028 | Shutdown | simulator | iOS 10.3 | i386 | :0
    iPhone 5s | 9CA3CF48-F979-47A3-B4FB-A0F2B6E9F621 | Shutdown | simulator | iOS 10.3 | x86_64 | :0
    iPhone 6 | E37CEF89-032A-40C4-BFE1-538E02633D7F | Shutdown | simulator | iOS 10.3 | x86_64 | :0
    iPhone 6 Plus | 8F6A8C04-E21C-4A9A-883F-00D2B5336792 | Shutdown | simulator | iOS 10.3 | x86_64 | :0
    iPhone 6s | 7E1E419A-7B63-4152-839E-2FEFFC717DDC | Shutdown | simulator | iOS 10.3 | x86_64 | :0
    iPhone 6s Plus | 50B2AABE-7DBC-4C04-94FD-780D1BD0F615 | Shutdown | simulator | iOS 10.3 | x86_64 | :0
    iPhone 7 | A18921BA-D06E-41E2-B1BF-7F9F9867D5B9 | Shutdown | simulator | iOS 10.3 | x86_64 | :0
    iPhone 7 Plus | EF771A32-EF00-45E9-B535-56DE22395BA5 | Shutdown | simulator | iOS 10.3 | x86_64 | :0
    iPhone SE | B3E6D658-4595-445B-ACEE-8958A4863406 | Shutdown | simulator | iOS 10.3 | x86_64 | :0
    iPad (5th generation) | EFD63297-ABBC-4A77-9DA8-9B0D2D41640B | Shutdown | simulator | iOS 10.3 | x86_64 | :0
    iPad Air | 32F26FDF-6064-43A9-A2F0-7C2C68FC2B4F | Shutdown | simulator | iOS 10.3 | x86_64 | :0
    iPad Air 2 | A6E8AB85-C807-4BE4-B679-ADAA6F7A3CB1 | Shutdown | simulator | iOS 10.3 | x86_64 | :0
    iPad Pro (10.5-inch) | 171879D6-0116-42B2-B1DB-6E27C9656BC0 | Shutdown | simulator | iOS 10.3 | x86_64 | :0
    iPad Pro (12.9 inch) | 070CA0AE-361A-4AEA-B617-267876A08603 | Shutdown | simulator | iOS 10.3 | x86_64 | :0
    iPad Pro (12.9-inch) (2nd generation) | C82E665A-5CA6-493D-AFAB-27838D4FA3F0 | Shutdown | simulator | iOS 10.3 | x86_64 | :0
    iPad Pro (9.7 inch) | 291585D3-1BC2-4981-BD26-B350912462E6 | Shutdown | simulator | iOS 10.3 | x86_64 | :0
    iPad Air (3rd generation) | EF5B349A-4C6B-4BBC-A5DF-FE76FB036C1E | Shutdown | simulator | iOS 12.2 | x86_64 | :0
    iPhone 5s | D505BC15-01ED-48F1-B3C0-02C0B3F395E7 | Shutdown | simulator | iOS 12.2 | x86_64 | :0
    iPhone 6 | 2F611002-1476-4508-B7E9-EEC6DC5FBA9E | Shutdown | simulator | iOS 12.2 | x86_64 | :0
    iPhone 6 Plus | 4E5BFA4E-963D-45EE-AADE-E53CD1032705 | Shutdown | simulator | iOS 12.2 | x86_64 | :0
    iPhone 6s | 909C1229-EBB7-4218-93E5-6CE64567CE0A | Shutdown | simulator | iOS 12.2 | x86_64 | :0
    iPhone 6s Plus | 0FBA19C1-D0BD-4D5E-86C7-8D46F4934EDC | Shutdown | simulator | iOS 12.2 | x86_64 | :0
    iPhone 7 | 2B87C08B-B553-4F25-AF19-CE5B08C5822A | Booted | simulator | iOS 12.2 | x86_64 | :0
    iPhone 7 Plus | 5883EABD-73C8-4175-B0D5-3DE8F03CFFFD | Shutdown | simulator | iOS 12.2 | x86_64 | :0
    iPhone 8 | 10432CFC-4162-4128-B13C-2E974CE9E282 | Shutdown | simulator | iOS 12.2 | x86_64 | :0
    iPhone 8 Plus | E2AD8B9D-5A53-46F8-844F-7055B702C075 | Shutdown | simulator | iOS 12.2 | x86_64 | :0
    iPhone SE | B36DBEC9-4E89-4BF5-AA7D-4C5B63796B5F | Shutdown | simulator | iOS 12.2 | x86_64 | :0
    iPhone X | DE1FD209-D646-4374-AE84-BF75B3153D98 | Shutdown | simulator | iOS 12.2 | x86_64 | :0
    iPhone Xs | 9C9B0E53-DA0D-4F9D-B69A-717D1D05688C | Shutdown | simulator | iOS 12.2 | x86_64 | :0
    iPhone Xs Max | A973FFA5-761E-4AB7-85AC-A476802C3705 | Shutdown | simulator | iOS 12.2 | x86_64 | :0
    iPhone Xʀ | FAE610ED-2312-42B9-B720-D18289D41F75 | Shutdown | simulator | iOS 12.2 | x86_64 | :0
    iPad (5th generation) | 168E1A58-3031-41F7-850E-8C78F19C31DD | Shutdown | simulator | iOS 12.2 | x86_64 | :0
    iPad (6th generation) | 17EA45FD-6E60-4935-8F57-7F19A8C0F16E | Shutdown | simulator | iOS 12.2 | x86_64 | :0
    iPad Air | 86392758-8ACB-4E5F-8B55-2BE302D3B809 | Shutdown | simulator | iOS 12.2 | x86_64 | :0
    iPad Air 2 | C920CAE9-E7D9-4A0A-9CCC-525B248000D1 | Shutdown | simulator | iOS 12.2 | x86_64 | :0
    iPad Pro (10.5-inch) | 8691D29C-A7A9-443E-B117-EEA3BBD28E06 | Shutdown | simulator | iOS 12.2 | x86_64 | :0
    iPad Pro (11-inch) | FD42E60F-8DC1-4416-ADCB-0A42929FD363 | Shutdown | simulator | iOS 12.2 | x86_64 | :0
    iPad Pro (12.9-inch) | 40392D20-2B57-4F42-894C-971D69BA9B67 | Shutdown | simulator | iOS 12.2 | x86_64 | :0
    iPad Pro (12.9-inch) (2nd generation) | 8F6F63FA-E486-4A90-A0EC-D4502BDC193D | Shutdown | simulator | iOS 12.2 | x86_64 | :0
    iPad Pro (12.9-inch) (3rd generation) | 46AD3373-8536-4228-A752-D1960BA69FAF | Shutdown | simulator | iOS 12.2 | x86_64 | :0
    iPad Pro (9.7-inch) | 6BC10322-2DFC-4206-B00A-06EE8832DE2E | Shutdown | simulator | iOS 12.2 | x86_64 | :0
    Apple TV | CEADB371-714D-4E26-9EAD-ABE40162445B | Shutdown | simulator | tvOS 12.2 | x86_64 | :0
    Apple TV 4K | 1F529D27-22EC-4C69-B8D6-A08A450863EF | Shutdown | simulator | tvOS 12.2 | x86_64 | :0
    Apple TV 4K (at 1080p) | 0445401A-A3BD-4DEA-AF67-18C7425EF49E | Shutdown | simulator | tvOS 12.2 | x86_64 | :0
    

    idb boot UDID

    idb boot 2B87C08B-B553-4F25-AF19-CE5B08C5822A
    usage: idb [-h]
               {add-media,approve,boot,clear-keychain,connect,contacts,crash,daemon,debugserver,describe,disconnect,file,focus,install,install-dylib,instruments,kill,launch,list-apps,list-targets,log,open,pull,push,record,screenshot,set-location,terminate,ui,uninstall,video,record-video,xctest}
               ...
    idb: error: unrecognized arguments: 2B87C08B-B553-4F25-AF19-CE5B08C5822A
    

    I assume maybe this is supposed to be idb boot --udid UDID

    idb boot --udid 2B87C08B-B553-4F25-AF19-CE5B08C5822A
    Failed to connect to companion at localhost:0 found error [Errno 49] Can't assign requested address
    

    Reproduction

    As above, follow the guided tour on the docs site.

    Additional Information

    • idb revision: [FILL THIS OUT]
    opened by cooksimo 14
  • brew install fbsimctl fails with: Code signing is required for product type 'Command-line Tool' in SDK 'macOS 10.12'

    brew install fbsimctl fails with: Code signing is required for product type 'Command-line Tool' in SDK 'macOS 10.12'

    I am using macOS 10.12.2 beta 3 and Xcode 8.2 beta 3. Running either brew install fbsimctl or brew install fbsimctl --head fails with the following error:

    Leo-Natans-Wix-MPB:detox lnatan$ brew install fbsimctl
    ==> Installing fbsimctl from facebook/fb
    ==> Downloading https://github.com/facebook/FBSimulatorControl/tarball/v0.2.2
    ==> Downloading from https://codeload.github.com/facebook/FBSimulatorControl/legacy.tar.gz/v0.2.2
    ######################################################################## 100.0%
    ==> ./build.sh fbsimctl build /usr/local/Cellar/fbsimctl/0.2.2
    Last 15 lines from /Users/lnatan/Library/Logs/Homebrew/fbsimctl/01.build.sh:
        cd /tmp/fbsimctl-20161130-48922-km8ocr/facebook-FBSimulatorControl-f41dec3/fbsimctl
        /usr/bin/touch -c /tmp/fbsimctl-20161130-48922-km8ocr/facebook-FBSimulatorControl-f41dec3/build/Build/Products/Debug/FBSimulatorControlKit.framework
    
    === BUILD TARGET fbsimctl OF PROJECT fbsimctl WITH CONFIGURATION Debug ≡
    
    Check dependencies
    "fbsimctl" isn't code signed but requires entitlements. It is not possible to add entitlements to a binary without signing it.
    Code signing is required for product type 'Command-line Tool' in SDK 'macOS 10.12'
    
    ** BUILD FAILED **
    
    
    The following build commands failed:
    	Check dependencies
    (1 failure)
    
    If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
    https://github.com/facebook/homebrew-fb/issues
    
    
    Error: You are using a pre-release version of Xcode.
    You may encounter build failures or other breakages.
    Please create pull-requests instead of filing issues.Leo-Natans-Wix-MPB:detox lnatan$ brew install fbsimctl
    ==> Installing fbsimctl from facebook/fb
    ==> Downloading https://github.com/facebook/FBSimulatorControl/tarball/v0.2.2
    ==> Downloading from https://codeload.github.com/facebook/FBSimulatorControl/legacy.tar.gz/v0.2.2
    ######################################################################## 100.0%
    ==> ./build.sh fbsimctl build /usr/local/Cellar/fbsimctl/0.2.2
    Last 15 lines from /Users/lnatan/Library/Logs/Homebrew/fbsimctl/01.build.sh:
        cd /tmp/fbsimctl-20161130-48922-km8ocr/facebook-FBSimulatorControl-f41dec3/fbsimctl
        /usr/bin/touch -c /tmp/fbsimctl-20161130-48922-km8ocr/facebook-FBSimulatorControl-f41dec3/build/Build/Products/Debug/FBSimulatorControlKit.framework
    
    === BUILD TARGET fbsimctl OF PROJECT fbsimctl WITH CONFIGURATION Debug ≡
    
    Check dependencies
    "fbsimctl" isn't code signed but requires entitlements. It is not possible to add entitlements to a binary without signing it.
    Code signing is required for product type 'Command-line Tool' in SDK 'macOS 10.12'
    
    ** BUILD FAILED **
    
    
    The following build commands failed:
    	Check dependencies
    (1 failure)
    
    If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
    https://github.com/facebook/homebrew-fb/issues
    
    
    Error: You are using a pre-release version of Xcode.
    You may encounter build failures or other breakages.
    Please create pull-requests instead of filing issues.
    
    help wanted 
    opened by LeoNatan 14
  • Build error: CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler

    Build error: CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler

    When running brew install facebook/fb/fbsimctl --HEAD currently it's impossible to get fbsimctl.

    ** BUILD FAILED **
    
    
    The following build commands failed:
            CompileSwift normal x86_64 /tmp/fbsimctl-20180221-62137-16aic6o/fbsimctl/FBSimulatorControlKit/Sources/SimulatorReporter.swift
            CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
    (2 failures)
    
    If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
    https://github.com/facebook/homebrew-fb/issues
    

    Note: The last time I used this command (with SHA 1d7da93) it was working, but a coworker have to install this tool and brew offer no ways to install it via a commit SHA (and don't want to).

    Problem is latest "stable" (0.4.0) is very old and does not work with Xcode 9 (#435). So we are kind of stuck.


    I know you are pretty busy at FB (poke @lawrencelomax) but it would be nice to get a new "release" so we can safely install a stable version at anytime this days :) How can we help doing this?

    idb-post-oss-triaged 
    opened by MoOx 13
  • would be nice to add python3 as prerequisite as readme

    would be nice to add python3 as prerequisite as readme

    We use GitHub Issues for bugs.

    --- Please use this template, and delete everything above this line before submitting your issue ---

    Description

    currently when trying to install IDB on mac i experienced the following problem:
    after installing brew install idb-companion.
    and when trying to install pip3.6 install fb-idb i got error saying that - pip3 is not recognized

    Reproduction

    try to follow README instructions on MAC where you don't have python installed you will be faced with error

    Solution

    Would be nice to add something like you need python3 installed on your machine brew install python3

    Additional Information

    • idb revision: [FILL THIS OUT]
    opened by mosheviGsxr 0
  • xctest crashes with homebrew version 1.1.8

    xctest crashes with homebrew version 1.1.8

    Description

    idb xctest list-bundle results in error below on my Intel PC:

    Process 98630 (xctest) died with signal 9
    

    I found that xctest crashes and it put a crashlog like this:

    {"app_name":"xctest","timestamp":"2022-12-20 09:34:58.00 +0000","app_version":"","slice_uuid":"364c0633-c61f-314e-b6ba-c8fedc30b808","build_version":"","platform":7,"share_with_app_devs":0,"is_first_party":
    1,"bug_type":"309","os_version":"macOS 12.6.2 (21G320)","incident_id":"C3C3F0D6-E17A-46F8-BF2A-D39916978DD2","name":"xctest"}
    {
      "uptime" : 880,
      "procLaunch" : "2022-12-20 09:34:57.1007 +0000",
      "procRole" : "Unspecified",
      "version" : 2,
      "userID" : 501,
      "deployVersion" : 210,
      "modelCode" : "VMware7,1",
      "procStartAbsTime" : 887364287690,
      "coalitionID" : 1765,
      "osVersion" : {
        "train" : "macOS 12.6.2",
        "build" : "21G320",
        "releaseType" : "User"
      },
      "captureTime" : "2022-12-20 09:34:57.1771 +0000",
      "incident" : "C3C3F0D6-E17A-46F8-BF2A-D39916978DD2",
      "bug_type" : "309",
      "pid" : 7878,
      "procExitAbsTime" : 887437853417,
      "cpuType" : "X86-64",
      "procName" : "xctest",
      "procPath" : "\/Applications\/Xcode_14.0.1.app\/Contents\/Developer\/Platforms\/iPhoneSimulator.platform\/Developer\/Library\/Xcode\/Agents\/xctest",
      "parentProc" : "launchd_sim",
      "parentPid" : 5912,
      "coalitionName" : "com.apple.CoreSimulator.SimDevice.578EF79A-34A9-405C-A600-0B901BA4624D",
      "crashReporterKey" : "28C488D7-2871-0137-7EA3-2D329D89124C",
      "responsiblePid" : 1668,
      "responsibleProc" : "SimulatorTrampoline",
      "sip" : "enabled",
      "vmRegionInfo" : "0x10bbba000 is in 0x10bbba000-0x10bbc2000;  bytes after start: 0  bytes before end: 32767\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAI
    L\n      mapped file                 10bb84000-10bbba000    [  216K] r--\/rwx SM=COW  ...t_id=beb8b55d\n--->  mapped file                 10bbba000-10bbc2000    [   32K] r-x\/rwx SM=COW  ...t_id=beb8b55d\n
         VM_ALLOCATE (reserved)      10bbc2000-10bbd2000    [   64K] rw-\/rwx SM=NUL  ...(unallocated)",
      "isCorpse" : 1,
      "exception" : {"codes":"0x0000000000000032, 0x000000010bbba000","rawCodes":[50,4491812864],"type":"EXC_BAD_ACCESS","signal":"SIGKILL (Code Signature Invalid)","subtype":"UNKNOWN_0x32 at 0x000000010bbba000
    "},
      "termination" : {"namespace":"CODESIGNING","flags":0,"code":2},
      "vmregioninfo" : "0x10bbba000 is in 0x10bbba000-0x10bbc2000;  bytes after start: 0  bytes before end: 32767\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      mapped file                 10bb84000-10bbba000    [  216K] r--\/rwx SM=COW  ...t_id=beb8b55d\n--->  mapped file                 10bbba000-10bbc2000    [   32K] r-x\/rwx SM=COW  ...t_id=beb8b55d\n      VM_ALLOCATE (reserved)      10bbc2000-10bbd2000    [   64K] rw-\/rwx SM=NUL  ...(unallocated)",
      "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
      "faultingThread" : 0,
      "threads" : [{"triggered":true,"id":26716,"instructionState":{"instructionStream":{"bytes":[12,117,5,184,255,63,0,0,68,133,232,116,33,72,141,53,37,203,2,0,186,7,0,0,0,72,137,223,232,101,40,1,0,133,192,116,13,72,141,53,44,203,2,0,235,11,179,1,235,152,72,141,53,8,203,2,0,49,219,76,137,247,49,192,232,181,6,1,0,235,131,144,85,72,137,229,83,80,72,137,243,72,131,250,27,119,9,72,141,53,37,205,2,0,235,70,139,7,137,193,131,225,254,129,249,206,250,237,254,117,36,139,79,20,49,246,61,207,250,237,254,64,15,148,198,72,141,4,177,72,131,192,28,72,57,208,118,47,72,141,53,58,205,2,0,235,19,37,255,255,255,254,61,254,237,250,206,116,17,72,141,53,254,204,2,0,72,137,223,49,192,232,74,6,1,0,49,192,72,131,196,8,91,93,195,72,141,21,226,42,3,0],"offset":96}},"threadState":{"r13":{"value":4491812864},"rax":{"value":4572894892,"symbolLocation":172,"symbol":"_main_thread"},"rflags":{"value":66066},"cpu":{"value":0},"r14":{"value":140701858581008},"rsi":{"value":140701858582960},"r8":{"value":3},"cr2":{"value":4491812864},"rdx":{"value":32768},"r10":{"value":262162},"r9":{"value":16384},"r15":{"value":0},"rbx":{"value":140701858582960},"trap":{"value":14,"description":"(no mapping for user data read)"},"err":{"value":4},"r11":{"value":518},"rip":{"value":4492732286,"matchesCrashFrame":1},"rbp":{"value":140701858580032},"rsp":{"value":140701858580016},"r12":{"value":98304},"rcx":{"value":4572894892,"symbolLocation":172,"symbol":"_main_thread"},"flavor":"x86_THREAD_STATE","rdi":{"value":4491812864}},"frames":[{"imageOffset":194430,"symbol":"dyld3::MachOFile::isMachO(Diagnostics&, unsigned long long) const","symbolLocation":24,"imageIndex":0},{"imageOffset":68331,"symbol":"dyld4::Loader::mapSegments(Diagnostics&, dyld4::RuntimeState&, char const*, unsigned long long, dyld4::Loader::CodeSignatureInFile const&, bool, dyld3::Array<dyld4::Loader::Region> const&, bool, bool, dyld4::Loader::FileValidationInfo const&)","symbolLocation":1267,"imageIndex":0},{"imageOffset":95615,"symbol":"invocation function for block in dyld4::JustInTimeLoader::makeJustInTimeLoaderDisk(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, bool, unsigned int, mach_o::Layout const*)","symbolLocation":84,"imageIndex":0},{"imageOffset":93887,"symbol":"dyld4::JustInTimeLoader::withRegions(dyld3::MachOFile const*, void (dyld3::Array<dyld4::Loader::Region> const&) block_pointer)","symbolLocation":221,"imageIndex":0},{"imageOffset":95352,"symbol":"invocation function for block in dyld4::JustInTimeLoader::makeJustInTimeLoaderDisk(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, bool, unsigned int, mach_o::Layout const*)","symbolLocation":509,"imageIndex":0},{"imageOffset":111822,"symbol":"dyld4::SyscallDelegate::withReadOnlyMappedFile(Diagnostics&, char const*, bool, void (void const*, unsigned long, bool, dyld4::FileID const&, char const*) block_pointer) const","symbolLocation":144,"imageIndex":0},{"imageOffset":94800,"symbol":"dyld4::JustInTimeLoader::makeJustInTimeLoaderDisk(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, bool, unsigned int, mach_o::Layout const*)","symbolLocation":198,"imageIndex":0},{"imageOffset":65360,"symbol":"invocation function for block in dyld4::Loader::getLoader(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&)","symbolLocation":2136,"imageIndex":0},{"imageOffset":61590,"symbol":"dyld4::Loader::forEachResolvedAtPathVar(dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, dyld4::ProcessConfig::PathOverrides::Type, bool&, void (char const*, dyld4::ProcessConfig::PathOverrides::Type, bool&) block_pointer)","symbolLocation":606,"imageIndex":0},{"imageOffset":22671,"symbol":"dyld4::ProcessConfig::PathOverrides::forEachPathVariant(char const*, dyld3::Platform, bool, bool, bool&, void (char const*, dyld4::ProcessConfig::PathOverrides::Type, bool&) block_pointer) const","symbolLocation":801,"imageIndex":0},{"imageOffset":60599,"symbol":"dyld4::Loader::forEachPath(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, void (char const*, dyld4::ProcessConfig::PathOverrides::Type, bool&) block_pointer)","symbolLocation":251,"imageIndex":0},{"imageOffset":62459,"symbol":"dyld4::Loader::getLoader(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&)","symbolLocation":827,"imageIndex":0},{"imageOffset":9969,"symbol":"invocation function for block in dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*)","symbolLocation":52,"imageIndex":0},{"imageOffset":19641,"symbol":"dyld4::ProcessConfig::PathOverrides::forEachInColonList(char const*, char const*, bool&, void (char const*, bool&) block_pointer)","symbolLocation":189,"imageIndex":0},{"imageOffset":20349,"symbol":"dyld4::ProcessConfig::PathOverrides::forEachInsertedDylib(void (char const*, bool&) block_pointer) const","symbolLocation":119,"imageIndex":0},{"imageOffset":4961,"symbol":"dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*)","symbolLocation":836,"imageIndex":0},{"imageOffset":8608,"symbol":"_dyld_sim_prepare","symbolLocation":442,"imageIndex":0},{"imageOffset":27512,"symbol":"dyld4::prepareSim(dyld4::RuntimeState&, char const*)","symbolLocation":1265,"imageIndex":1},{"imageOffset":22286,"symbol":"dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*)","symbolLocation":244,"imageIndex":1},{"imageOffset":21732,"symbol":"start","symbolLocation":388,"imageIndex":1}]}],
      "usedImages" : [
      {
        "source" : "P",
        "arch" : "x86_64",
        "base" : 4492537856,
        "size" : 393216,
        "uuid" : "db2ea9eb-03d5-3b81-a6ce-26ec4dd81b07",
        "path" : "\/Applications\/Xcode_14.0.1.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/usr\/lib\/dyld_sim",
        "name" : "dyld_sim"
      },
      {
        "source" : "P",
        "arch" : "x86_64",
        "base" : 4572368896,
        "size" : 442368,
        "uuid" : "b53641ea-6cd4-39c9-9b14-59c92cfd9584",
        "path" : "\/usr\/lib\/dyld",
        "name" : "dyld"
      },
      {
        "size" : 0,
        "source" : "A",
        "base" : 0,
        "uuid" : "00000000-0000-0000-0000-000000000000"
      }
    ...
    

    Reproduction

    I use this app but I checked that this happens with the other apps as well.

    xcrun simctl install booted ./XCTesterAppUITests-Runner.app
    idb xctest install --udid $udid ./XCTesterAppUITests-Runner.app/PlugIns/XCTesterAppUITests.xctest
    idb xctest list-bundle --udid $udid io.appium.XCTesterAppUITests
    

    It works well on my M1 macbook, but doesn't work on my intel macbook and macos github acction runner. I also confirmed that it works with idb 1.1.7. I use this commit version, it looks like 1.1.8 changed a way to install the binary. Also the binary I manually built from the source including both 1.1.8 and latest main branch don't have the problem.

    Solution

    I don't have an idea. Using 1.1.7 or building from the source worked to me.

    Additional Information

    • idb revision: only happens with homebrew version 1.1.8.
    opened by rerorero 0
  • idb xctest list-bundle com.test.xxxxxx --- arm64e does not conform to FBXCTestExtendedCommands

    idb xctest list-bundle com.test.xxxxxx --- arm64e does not conform to FBXCTestExtendedCommands

    We use GitHub Issues for bugs.
--- Please use this template, and delete everything above this line before submitting your issue ---

    Description 
I am trying install xctest files and .app in remote device with below commands. But I am not able to run the XCTest files because arm64e does not conform to FBXCTestExtendedCommands

    Reproduction
 idb install path/.app --udid xxxxxxxx-xxxxxxxxxxxxxxxx Installed: com.test.xxxx.xctrunner B9B3EF81-5519-3932-A046-1D51148F5AA0

    idb xctest install path/.xctest Installed: com.test.xxxxxx D41E32B8-14B0-3153-BD94-25FAE33F1828

    idb xctest list-bundle com.test.xxxxxx xxxxxxxx-xxxxxxxxxxxxxxxx | iPhone SE 3 White | Booted | (null) | OS 'iOS 16.1.1' | arm64e does not conform to FBXCTestExtendedCommands

    SolutionAdditional Information

    opened by tademmahesh 0
  • Remote iPhone  device is not showing in Xcode device list

    Remote iPhone device is not showing in Xcode device list

    We use GitHub Issues for bugs. --- Please use this template, and delete everything above this line before submitting your issue ---

    Description I am able to access iPhone device from remote machine using idb_companion in my machine.

    But I can't able to see the device in Xcode device list.

    Reproduction Remote Machine

    idb_companion --udid xxxxxxxx-xxxxxxxxxxxxxxxx --grpc-port 6666

    My Machine

    [IDB_COMPANION= xx.xx.xx.xx:6666 idb describe

    idb connect xx.xx.xx.xx 6666

    Solution Is it possible to add remote device in Xcode device list ?

    Additional Information

    If possible let me know the procedure how to access the remote iPhone device through Xcode devices list.

    opened by tademmahesh 0
  • idb_companion incorrect simulator architecture checks on M1 macs

    idb_companion incorrect simulator architecture checks on M1 macs

    Description

    idb-companion hard codes the simulator architecture to be x86_64 in this file, which prevents us from using arm64 simulators on M1 macs, due to checks run in [IDBStorageManager checkArchitecture:error]

    • I installed idb & idb-companion on an M1 Mac from homebrew
    • I ran the following commands (udid's omitted)
    idb list-targets
    idb boot
    idb xctest install path-to-some-arm64/tests.xctest
    

    I received the following error:

    Targets architecture x86_64 not in the bundles supported architectures {
      arm64
    }
    

    I verified installing from source, that disabling the checks fix the issue.

    Reproduction

    On an m1 mac, build a test bundle for arm64, and try to install it to the simulator

    Solution

    There are a few options.

    • Teach idb-companion the correct architecture if running on an M1 Mac (ideal)
    • Provide an IDB_DISABLE_ARCHITECTURE_CHECKS variable

    Additional Information

    • Verified that disabling the checks works around the issue, by installing from source.
    • Side effects, idb list-targets shows the wrong simulator architecture
    • I believe the arm64 simulators can support both x86 and arm64 binaries` although I haven't verified this, so the strict checks might not be needed if running on an M1.

    e.g

    iPhone 12 | 363E6C97-DB9D-44A0-9F85-FB14623B1D45 | Shutdown | simulator | iOS 16.0 | x86_64 | No Companion Connected
    iPhone 12 | 654EF4DD-10F2-45FE-B8AC-45D7C4CBB191 | Shutdown | simulator | iOS 16.0 | x86_64 | No Companion Connected
    
    opened by iainsmith 0
  • Bump loader-utils from 2.0.2 to 2.0.4 in /website

    Bump loader-utils from 2.0.2 to 2.0.4 in /website

    Bumps loader-utils from 2.0.2 to 2.0.4.

    Release notes

    Sourced from loader-utils's releases.

    v2.0.4

    2.0.4 (2022-11-11)

    Bug Fixes

    v2.0.3

    2.0.3 (2022-10-20)

    Bug Fixes

    • security: prototype pollution exploit (#217) (a93cf6f)
    Changelog

    Sourced from loader-utils's changelog.

    2.0.4 (2022-11-11)

    Bug Fixes

    2.0.3 (2022-10-20)

    Bug Fixes

    • security: prototype pollution exploit (#217) (a93cf6f)
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    CLA Signed dependencies 
    opened by dependabot[bot] 0
Releases(v1.1.8)
Owner
Meta
We are working to build community through open source technology. NB: members must have two-factor auth.
Meta
Build native iOS, Android, and Web apps with Capacitor and Remix.run 💿

This repository holds production ready Capacitor templates for building native mobile applications using Remix. Using Capacitor, you can quickly build out a native mobile application for iOS and Android using web technology, such as Remix.

Ionic 70 Dec 30, 2022
Automatically build and rebuild Xcode image catalogs for app icons, universal images, and more

Better asset workflow for iOS developers. Generate Xcode image catalogs for iOS / OSX app icons, universal images, and more.

Dotan J. Nahum 822 Dec 21, 2022
AVXCAssets Generator takes path for your assets images and creates appiconset and imageset for you in just one click

AVXCAssets Generator Often while developing an app, We ran into a condition when we need to scale images to each and every aspect ratios for icons and

Angel Vasa 339 Dec 6, 2022
Swift CLI for strong-typing images, colors, storyboards, fonts and localizations

Shark Shark is a Swift command line tool that generates type safe enums for your images, colors, storyboards, fonts and localizations. Because Shark r

Kaan Dedeoglu 377 Dec 1, 2022
Strong typed, autocompleted resources like images, fonts and segues in Swift projects

R.swift Get strong typed, autocompleted resources like images, fonts and segues in Swift projects Why use this? It makes your code that uses resources

Mathijs Kadijk 8.9k Jan 6, 2023
Xcode storyboards diff and merge tool.

StoryboardMerge Storyboard diff and merge tool which: compares and merges two storyboard files, provides an automatic merge-facility, The storyboardin

null 238 Sep 12, 2022
swiftenv allows you to easily install, and switch between multiple versions of Swift.

Swift Version Manager swiftenv allows you to easily install, and switch between multiple versions of Swift. This project was heavily inspired by pyenv

Kyle Fuller 1.9k Dec 27, 2022
Shows your current framerate (fps) in the status bar of your iOS app

WatchdogInspector Shows your current framerate (fps) in the status bar of your iOS app Be a good citizen! Don't block your main thread! WatchdogInspec

Christian Menschel 510 Nov 24, 2022
All new design. Inspect your iOS application at runtime.

Peek: All new design Peek 5 with an all new design and all new features. Whether you're a developer, designer or QA/tester, Peek can help you at all s

Shaps 2.6k Dec 17, 2022
An iOS app decrypter, full static using fouldecrypt.

Iridium An iOS app decrypter, full static using fouldecrypt. Supporting iOS 13+ Note We have built everything into the package, you can install and fl

Lakr Aream 234 Jan 9, 2023
An iOS app decrypter, full static using fouldecrypt.

Iridium An iOS app decrypter, full static using fouldecrypt. Supporting iOS 13+ Note We have built everything into the package, you can install and fl

Lakr Aream 226 Dec 24, 2022
Command-line utility that checks comments for localizations in iOS interface files (.xib, .storyboard)

Localizations Comments Checker It's really easy to overlook and don't add comment for localization in interface file (.storyboard or .xib). This comma

Bikemap 0 Nov 5, 2021
Control Room : a macOS app that lets you control the simulators for iOS, tvOS, and watchOS

Control Room is a macOS app that lets you control the simulators for iOS, tvOS, and watchOS – their UI appearance, status bar configuration, and more.

null 0 Nov 30, 2021
A repository that demonstrates the difficulty to run async tests with Xcode 13.2 beta on pre iOS-15 simulators

A repository that demonstrates the difficulty to run async tests with Xcode 13.2 beta on pre iOS-15 simulators This demonstration uses an iOS 13.7 sim

Gwendal Roué 0 Nov 1, 2021
Bluepill is a reliable iOS testing tool that runs UI tests using multiple simulators on a single machine

Bluepill is a tool to run iOS tests in parallel using multiple simulators. Motivation LinkedIn created Bluepill to run its large iOS test suite in a r

Mobile Native Foundation 3.1k Jan 3, 2023
Ready use service for Firebase. Included interface, recored devices and notifications.

SPProfiling Ready use service with using Firebase. Included interface, manage auth process, recored devices and profile data. Installation Ready for u

Ivan Vorobei 13 Oct 29, 2022
null 4 May 22, 2022
iOS command-line tool that allows searching and downloading ipa files from the iOS App Store

ipatool for iOS This is a port of Majd Alfhaily's ipatool adapted to run on iOS Build / Installation To build this, make sure you have AppSync install

dan 21 Sep 13, 2022
ipatool is a command line tool that allows you to search for iOS apps on the App Store and download a copy of the app package, known as an ipa file.

ipatool is a command line tool that allows you to search for iOS apps on the App Store and download a copy of the app package, known as an ipa file.

Majd Alfhaily 3k Dec 30, 2022
🚀 Create XCFrameworks with ease! A Command Line Tool to create XCFramework for multiple platforms at one shot! The better way to deal with XCFrameworks for iOS, Mac Catalyst, tvOS, macOS, and watchOS.

Surmagic ?? Create XCFramework with ease! A Command Line Tool to create XCFramework for multiple platforms at one shot! The better way to deal with XC

Muhammed Gurhan Yerlikaya 260 Dec 28, 2022