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

Failed to connect to Mac Catalyst app #762

Open
Arkkeeper opened this issue Jan 26, 2022 · 0 comments
Open

Failed to connect to Mac Catalyst app #762

Arkkeeper opened this issue Jan 26, 2022 · 0 comments

Comments

@Arkkeeper
Copy link

Arkkeeper commented Jan 26, 2022

Description

Flipper desktop app can see the app build with Catalyst, but can't connect due to idb. Flipper tries to init certs exchange that uses idb file pull, but it surely fails, because idb can see only Xcode simulators or real iOS devices.

150939915-173ebc45-3814-4b99-bbaf-241d00da486a

idb says:

Ignoring device as cannot obtain ECID for it
Reported 30 targets to stdout
2022-01-26 08:50:31,644 [DEBUG] - idb - list_targets succeeded
2022-01-26 08:50:31,644 [DEBUG] - idb - FSPullCommand failed
Cannot spawn companion for 0F157BCB-E831-5FEA-AF60-C3D4513157FD, no matching target in available udids

Reproduction

  • Create new React Native app with npx react-native init AwesomeProject
  • Replace Flipper-DoubleConversion in react-native/scripts/react_native_pods.rb with fixed xcframework creation (pod 'Flipper-DoubleConversion', :git => 'https://github.com/Arkkeeper/double-conversion.git', :configurations => configurations) (explained here 🐛 MacCatalyst Does not Build on RN above 64 because of RCT-Folly (1/2 Fix Included Here!) flipper#3117)
  • Set "Dead Code Stripping" in Xcode build settings to Yes for the main app's target
  • Check "Mac Catalyst" on General tab in Xcode
  • Set "My Mac" as run destination and build app
  • Open Flipper app and try to connect to the app
  • Open Terminal and enter:

idb --log DEBUG file pull --udid HERE_IS_YOUR_MAC_UDID --bundle-id org.reactjs.native.example.AwesomeProject ~/Library/Containers/org.reactjs.native.example.AwesomeProject/Data/Library/Application Support/sonar/app.csr ~/Downloads

Solution

No idea. I realize that it's rather uncommon case, but it would be interesting, is there anything that could be done on the idb side to fix that behavior? Technically, Catalyst app is just a regular iOS app running on Mac using iOS SDK.

Additional Information

  • idb revision: 1.1.6
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

1 participant