<commit_before># !/bin/bash

APP=$1
CERTIFICATE=$2
PROVISION_FILE=$3

# Adding Provision
cp $PROVISION_FILE "build/Applications/$APP.app/embedded.mobileprovision"

# Extracting entitlements.plist
security cms -D -i $PROVISION_FILE > build/Applications/profile.plist
/usr/libexec/PlistBuddy -x -c 'Print:Entitlements' build/Applications/profile.plist > build/Applications/entitlements.plist
plutil -convert binary1 build/Applications/entitlements.plist

# Sign App
cd build/Applications
codesign --force --sign "$CERTIFICATE" --entitlements entitlements.plist "$APP.app"
cd ../../

# Package app
xcrun -sdk iphoneos PackageApplication -v "build/Applications/$APP.app" -o "$DEST_IPA"

echo Acrhive dSYM files
cd build
zip -r $APP.dSYM.zip $APP.app.dSYM
cd ..<commit_msg>chore(*): fixing ios-sign.sh<commit_after># !/bin/bash

APP=$1
CERTIFICATE=$2
PROVISION_FILE=$3

# Adding Provision
cp $PROVISION_FILE "build/Applications/$APP.app/embedded.mobileprovision"

# Extracting entitlements.plist
security cms -D -i $PROVISION_FILE > build/Applications/profile.plist
/usr/libexec/PlistBuddy -x -c 'Print:Entitlements' build/Applications/profile.plist > build/Applications/entitlements.plist
plutil -convert binary1 build/Applications/entitlements.plist

# Sign App
cd build/Applications
codesign --force --sign "$CERTIFICATE" --entitlements entitlements.plist "$APP.app"
cd ../../
{'fraction_non_alphanumeric': 0.12663755458515283, 'fraction_numerical': 0.005822416302765648, 'mean_word_length': 5.057268722466961, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4020864', 'n_tokens_mistral': 519, 'n_tokens_neox': 462, 'n_words': 103}