This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
version="$MARKETING_VERSION" | |
build="$CURRENT_PROJECT_VERSION" | |
/usr/libexec/PlistBuddy -c "Set PreferenceSpecifiers:7:DefaultValue $version" "${SRCROOT}/Settings.bundle/Root.plist" | |
/usr/libexec/PlistBuddy -c "Set PreferenceSpecifiers:8:DefaultValue $build" "${SRCROOT}/Settings.bundle/Root.plist" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func viewDidLoad() { | |
let selfSizingTableHeaderView = SelfSizingTableHeaderView() | |
tableView.tableHeaderView = selfSizingTableHeaderView | |
selfSizingTableHeaderView.translatesAutoresizingMaskIntoConstraints = false | |
NSLayoutConstraint.activate([ | |
selfSizingTableHeaderView.leadingAnchor.constraint(equalTo: tableView.leadingAnchor), | |
selfSizingTableHeaderView.centerXAnchor.constraint(equalTo: tableView.centerXAnchor), | |
selfSizingTableHeaderView.topAnchor.constraint(equalTo: tableView.topAnchor) | |
]) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# USAGE: ./checkSign.sh {ipa文件名:xxx.ipa} | |
# 看到⚠️证明该ipa证书签名有问题 | |
# 删除文件 | |
echo "🗑 删除codesign,pem,plist,和“Payload”文件夹及其子文件" | |
if [ -d "Payload" ] ; then | |
rm -rf Payload | |
fi | |
rm -f codesign0 | |
rm -f codesign1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Name of the resource to copy | |
INFO_PLIST_FILE=GoogleService-Info.plist | |
# Get references to debug and release versions of the plist file | |
DEV_INFO_PLIST_FILE=${PROJECT_DIR}/${TARGET_NAME}/Firebase/Development/${INFO_PLIST_FILE} | |
PROD_INFO_PLIST_FILE=${PROJECT_DIR}/${TARGET_NAME}/Firebase/Production/${INFO_PLIST_FILE} | |
# Make sure the debug version exists | |
echo "Looking for ${INFO_PLIST_FILE} in ${DEV_INFO_PLIST_FILE}" | |
if [ ! -f $DEV_INFO_PLIST_FILE ] ; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${PROJECT_DIR}/${INFOPLIST_FILE}") | |
buildNumber=$(($buildNumber + 1)) | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "${PROJECT_DIR}/${INFOPLIST_FILE}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protocol AppGuide { | |
func shouldLoadAppGuide() -> Bool | |
} | |
extension AppGuide { | |
func shouldLoadAppGuide() -> Bool { | |
guard let versionString = Bundle.main.object(forInfoDictionaryKey: "CFBundleVersion") as? String else { | |
return false | |
} | |
guard let currentVersion = Int(versionString) else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SameNameWithXibFile: UIView, XibReusable { | |
var contentView: UIView! | |
required init?(coder aDecoder: NSCoder) { | |
super.init(coder: aDecoder) | |
xibSetup() | |
} | |
override init(frame: CGRect) { | |
super.init(frame: frame) |