Skip to content

Commit

Permalink
Remove usage of name or identifier entirely
Browse files Browse the repository at this point in the history
  • Loading branch information
gemmakbarlow committed Jan 10, 2025
1 parent b20cf2f commit afcba24
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -119,20 +119,16 @@ format:

.PHONY: format test-all test-docs

define name_for
$(shell xcrun simctl list devices available '$(1)' | grep '$(2)' | sort -r | head -1 | awk -F '[()]' '{ print $$1 }' | sed 's/^ *//g' | sed 's/ *$$//g')
endef

define destination_ios
platform=iOS Simulator,name=$(call name_for,iOS,iPhone 15 Pro),OS=$(IOS_VERSION)
platform=iOS Simulator,OS=$(IOS_VERSION)
endef

define destination_watchos
platform=watchOS Simulator,name=$(call name_for,watchOS,Watch),OS=$(WATCHOS_VERSION)
platform=watchOS Simulator,OS=$(WATCHOS_VERSION)
endef

define destination_tvos
platform=tvOS Simulator,name=$(call name_for,tvOS,TV),OS=$(TVOS_VERSION)
platform=tvOS Simulator,OS=$(TVOS_VERSION)
endef

define destination_macos
Expand Down

0 comments on commit afcba24

Please sign in to comment.