- Physical iOS device (successfully reproduced with iPhone 11 Pro, iPhone 12, iPhone 13 Pro)
ios-deploy
(successfully reproduced with version 1.12.2 and a manually built version from tip ofmaster
branch)- Xcode (successfully reproduced with 14.3.1)
- Clone this repository
- Run
make build
- Run
ios-deploy
with the--justlaunch
flag, so a command like this:
ios-deploy \
--id "00008030-000618513E20802E" \
--bundle "ios/DerivedData/Build/Products/Debug-iphoneos/ios-deploy-stdout-crash.app" \
--justlaunch
This seems to be related to the timing between when:
- the process detaches (because of the
--justlaunch
flag), and - the iOS app first tries to print to stdout (see
App.swift
)
The app will not crash if you do any of the following:
- comment out the line where the app tries to write to stdout, or
- launch the app via a method other than
ios-deploy
- launch the app via
ios-deploy
without the--justlaunch
flag - use a build of
ios-deploy
that adds atime.sleep(10)
call above this line