This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal. |
Hello,
After KAR is pulled can we update Xcode settings automatically using any script or settings in visualiser like updating singing details, build settings update compiler flags etc.
as each time we pull KAR changes gets lost.
Thanks,
I use a shell script to do just that: some examples:
### manipulate extract.pl for iPad support
sed -i "" 's/$KReleaseXCBuildConfig{"TARGETED_DEVICE_FAMILY"} = $targetDeviceFamily/$KReleaseXCBuildConfig{"TARGETED_DEVICE_FAMILY"} = "1,2"/' "$XCODE_DIR/GEN/"extract.pl
### fix for catalina
xattr -d com.apple.quarantine "$XCODE_DIR"
echo @@@extract.pl file manipulated to support iPad
### do iphone build
echo @@@extract kar file IPHONE
cd "$XCODE_DIR"gen
perl extract.pl "$BINARY_DIR_IPHONE"konyappiphone.KAR
### set bundleidentifier iOS
IOS_BUNDLENAME=$(echo "$IOS_BUNDLENAME" | jq -j '.iphonebundleidentifierkey' "$PROJECT_DIR""projectProperties.json")
echo iOS bundle name: "$IOS_BUNDLENAME"
/usr/libexec/PlistBuddy -c "Set :CFBundleIdentifier '$IOS_BUNDLENAME'" "$XCODE_DIR"info.plist
##copy files for ipad
cp -R "$IPHONE_ASSETS". "$XCODE_DIR"Assets.xcassets/AppIcon.appiconset/