View ChangeRootViewControllerWithWindow.swift
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
let newWindow = UIWindow(frame: UIScreen.main.bounds) | |
newWindow.rootViewController = rootViewController | |
UIWindow.transition(with: appDelegate.window, duration: 0.3, options: .transitionCrossDissolve, animations: { | |
let oldWindow = appDelegate.window | |
appDelegate.window = newWindow | |
newWindow.makeKeyAndVisible() | |
oldWindow?.rootViewController?.dismiss(animated: false, completion: nil) |
View build-script.sh
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
# Install external dependencies | |
pod install | |
# Build and run tests | |
xcodebuild -workspace <your_project_name>.xcworkspace \ | |
-scheme <your_desired_schema> -configuration <your_desired_configuration> \ | |
-destination 'platform=iOS Simulator,name=iPad Pro (12.9-inch),OS=10.2' \ | |
-derivedDataPath <derived_data_path> BUILD_DIR=<build_directory_path> \ | |
-UseModernBuildSystem=YES clean build -enableCodeCoverage=YES test |
View distribute-via-crashlytics
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
Pods/Crashlytics/submit <id-of-the-fabric-organisation> \ | |
-ipaPath <path_of_the_exported_archive_location>/<your_project_name>.ipa \ | |
-groupAliases <the_alias_of_the_testing_group> |
View reset-keychain.sh
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
security list-keychains -d user -s <path_to_the_old_login_keychain> <path_to_the_new_keychain> | |
security list-keychains -s <path_to_the_old_login_keychain> | |
security default-keychain -s <path_to_the_old_login_keychain> |
View xcode-build-export
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
xcodebuild -exportArchive -archivePath <path_of_the_archive> \ | |
-exportOptionsPlist <path_of_the_export_plist_file> \ | |
-exportPath <path_of_the_exported_archive_location> -UseModernBuildSystem=YES |
View exportOptions.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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>compileBitcode</key> | |
<false/> | |
<key>method</key> | |
<string>ad-hoc</string> | |
<key>provisioningProfiles</key> | |
<dict> |
View xcodebuild-archive
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
xcodebuild -workspace <your_project_name>.xcworkspace \ | |
-scheme <your_desired_schema> -archivePath <path_of_the_archive>\ | |
-configuration <your_desired_configuration> \ | |
PROVISIONING_PROFILE=<the_name_of_the_provisioning_profile> \ | |
archive -UseModernBuildSystem=YES |
View unlock-keychain-mac
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
security unlock-keychain -p <my-super-secret-password> <path_to_the_new_keychain> |
View set-new-keychain-mac
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
security list-keychains -s <path_to_the_new_keychain> | |
security default-keychain -s <path_to_the_new_keychain> |
View llvm-cov-show
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
xcrun llvm-cov show -instr-profile <path_of_the_Coverage.profdata_file> \ | |
<path_of_the_executable> > <name_of_the_report_file> |
NewerOlder