jhugman / uniffi-bindgen-react-native

A uniffi bindings generator for calling Rust from react-native
https://jhugman.github.io/uniffi-bindgen-react-native/
Other
52 stars 6 forks source link

When building the app without a simulator launched you can get stuck just building for "Any iPhone Device" #141

Closed boek closed 3 weeks ago

boek commented 1 month ago

Could just be that my environment is messed up, but the first time I built I ran into

success Successfully built the app
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
{ platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:00006001-000A68400245801E, name:My Mac }
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
{ platform:iOS Simulator, id:4C1B86D9-3622-404F-83CA-410D9D909C7F, OS:17.0.1, name:iPad (10th generation) }
...

We may want to add an interactive device picker for this step

Johennes commented 1 month ago

Somebody else in the Matrix room ran into something similar last week and I think the way React Native picks the target to build to can definitely feel a little magic. There's a way to specify the simulator to build to and since this is a common problem, maybe we could mention it in the docs.