fix: random local `make-run ios` failures (#18446)
In this commit we build iOS `status-go` for both targets `amd64` and for `arm64` otherwise we get random failures when running `make run-ios`. Maybe this was an impact of Xcode Upgrade Or RN Upgrade or MacOS Upgrade, it is not clear at the moment. This will increase the time it took for iOS to be built locally, but it is better to be slow rather than have random build failures.
This commit is contained in:
parent
162c6dbf89
commit
fdfc06d6dd
6
Makefile
6
Makefile
|
@ -279,8 +279,9 @@ run-android: ##@run Build Android APK and start it on the device
|
||||||
npx react-native run-android --appIdSuffix debug
|
npx react-native run-android --appIdSuffix debug
|
||||||
|
|
||||||
SIMULATOR=iPhone 13
|
SIMULATOR=iPhone 13
|
||||||
|
# TODO: fix IOS_STATUS_GO_TARGETS to be either amd64 or arm64 when RN is upgraded
|
||||||
run-ios: export TARGET := ios
|
run-ios: export TARGET := ios
|
||||||
run-ios: export IOS_STATUS_GO_TARGETS := iossimulator/amd64
|
run-ios: export IOS_STATUS_GO_TARGETS := ios/arm64,iossimulator/amd64
|
||||||
run-ios: ##@run Build iOS app and start it in a simulator/device
|
run-ios: ##@run Build iOS app and start it in a simulator/device
|
||||||
ifneq ("$(SIMULATOR)", "")
|
ifneq ("$(SIMULATOR)", "")
|
||||||
npx react-native run-ios --simulator="$(SIMULATOR)" | xcbeautify
|
npx react-native run-ios --simulator="$(SIMULATOR)" | xcbeautify
|
||||||
|
@ -291,8 +292,9 @@ endif
|
||||||
show-ios-devices: ##@other shows connected ios device and its name
|
show-ios-devices: ##@other shows connected ios device and its name
|
||||||
xcrun xctrace list devices
|
xcrun xctrace list devices
|
||||||
|
|
||||||
|
# TODO: fix IOS_STATUS_GO_TARGETS to be either amd64 or arm64 when RN is upgraded
|
||||||
run-ios-device: export TARGET := ios
|
run-ios-device: export TARGET := ios
|
||||||
run-ios-device: export IOS_STATUS_GO_TARGETS := ios/arm64
|
run-ios-device: export IOS_STATUS_GO_TARGETS := ios/arm64,iossimulator/amd64
|
||||||
run-ios-device: ##@run iOS app and start it on a connected device by its name
|
run-ios-device: ##@run iOS app and start it on a connected device by its name
|
||||||
ifndef DEVICE_NAME
|
ifndef DEVICE_NAME
|
||||||
$(error Usage: make run-ios-device DEVICE_NAME=your-device-name)
|
$(error Usage: make run-ios-device DEVICE_NAME=your-device-name)
|
||||||
|
|
Loading…
Reference in New Issue