<commit_before>BUILD_DIR=build/$(CONFIG)-iphoneos/$(APP).app
PROFILE_DIR=$(HOME)/Library/MobileDevice/Provisioning Profiles
PROFILE_NAME=$(shell xcodebuild -showBuildSettings|grep 'PROVISIONING_PROFILE ='|awk '{print $$3}')
DEVELOPER=$(shell xcodebuild -showBuildSettings|grep 'CODE_SIGN_IDENTITY ='|awk -F'= ' '{print $$2}')
SDK=$(shell xcodebuild -showBuildSettings|grep 'SDK_NAME ='|awk -F'= ' '{print $$2}')
VERSION=$(shell /usr/libexec/PlistBuddy -c "print :CFBundleVersion" $(APP)/$(APP)-Info.plist)
DEST_DIR=$(HOME)/Downloads/$(VERSION)
CONFIG=Release
ARCHS=armv7 armv7s
ATOSL_DIR=$(dir $(lastword $(MAKEFILE_LIST)))

clean-app:
	/usr/bin/xcodebuild clean -configuration $(CONFIG)
	rm -rf build

build-app: clean-app
	mkdir -p $(DEST_DIR)
	/usr/bin/xcodebuild -target $(APP) -configuration $(CONFIG)
	/usr/bin/xcrun --sdk $(SDK) PackageApplication "$(BUILD_DIR)" -o "$(DEST_DIR)/$(APP)$(VERSION).ipa" --sign "$(DEVELOPER)" --embed "$(PROFILE_DIR)/$(PROFILE_NAME).mobileprovision"

build-sim:<commit_msg>fixed profile extraction from settings<commit_after>BUILD_DIR=build/$(CONFIG)-iphoneos/$(APP).app
PROFILE_DIR=$(HOME)/Library/MobileDevice/Provisioning Profiles
PROFILE_NAME=$(shell xcodebuild -showBuildSettings|grep 'PROVISIONING_PROFILE ='|awk -F'= ' '{print $$2}')
DEVELOPER=$(shell xcodebuild -showBuildSettings|grep 'CODE_SIGN_IDENTITY ='|awk -F'= ' '{print $$2}')
SDK=$(shell xcodebuild -showBuildSettings|grep 'SDK_NAME ='|awk -F'= ' '{print $$2}')
VERSION=$(shell /usr/libexec/PlistBuddy -c "print :CFBundleVersion" $(APP)/$(APP)-Info.plist)
DEST_DIR=$(HOME)/Downloads/$(VERSION)
CONFIG=Release
ARCHS=armv7 armv7s
ATOSL_DIR=$(dir $(lastword $(MAKEFILE_LIST)))

clean-app:
	/usr/bin/xcodebuild clean -configuration $(CONFIG)
	rm -rf build

build-app: clean-app
	mkdir -p $(DEST_DIR)
	/usr/bin/xcodebuild -target $(APP) -configuration $(CONFIG)
	/usr/bin/xcrun --sdk $(SDK) PackageApplication "$(BUILD_DIR)" -o "$(DEST_DIR)/$(APP)$(VERSION).ipa" --sign "$(DEVELOPER)" --embed "$(PROFILE_DIR)/$(PROFILE_NAME).mobileprovision"

build-sim:
{'fraction_non_alphanumeric': 0.19103313840155944, 'fraction_numerical': 0.004873294346978557, 'mean_word_length': 6.776515151515151, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6655143', 'n_tokens_mistral': 765, 'n_tokens_neox': 736, 'n_words': 142}