Post

Replies

Boosts

Views

Activity

Reply to How to change AVMediaSelectionViewController's Done Button Font Color?
Hi @seanmp I was able to update the navigation bar if the AVMediaSelectionTableViewController using an extension class of UINavigationController. Please see code used below: open override func viewDidLayoutSubviews() { 				let subtitleViewController: AnyClass? = NSClassFromString("AVMediaSelectionTableViewController") 				for childVC in self.viewControllers { 						if let subtitleViewController = subtitleViewController, childVC.isKind(of: subtitleViewController) { 								var normalTitleTextAttributes = childVC.navigationItem.rightBarButtonItem?.titleTextAttributes(for: .normal) 								var highlightedTitleTextAttributes = childVC.navigationItem.rightBarButtonItem?.titleTextAttributes(for: .highlighted) 								var disabledTitleTextAttributes = childVC.navigationItem.rightBarButtonItem?.titleTextAttributes(for: .disabled) 								normalTitleTextAttributes?[NSAttributedString.Key.foregroundColor] = UIColor.black 								highlightedTitleTextAttributes?[NSAttributedString.Key.foregroundColor] = UIColor.black 								disabledTitleTextAttributes?[NSAttributedString.Key.foregroundColor] = UIColor.black 								childVC.navigationItem.rightBarButtonItem?.setTitleTextAttributes(normalTitleTextAttributes, for: .normal) 								childVC.navigationItem.rightBarButtonItem?.setTitleTextAttributes(highlightedTitleTextAttributes, for: .highlighted) 								childVC.navigationItem.rightBarButtonItem?.setTitleTextAttributes(disabledTitleTextAttributes, for: .disabled) 								break 						} 				} 		}
Aug ’20
Reply to xcodebuild OTHER_CODE_SIGN_FLAGS --keychain search order
Hi guys I was having the exact same issue and was able to find a solution by creating a separate keychain for the certificate, then using the below shell command extract the SHA-1 hash of the certificate. security find-identity -v -p codesigning <keychain_path> | awk -F' ' 'NR==1{print $2}' You can then use xcodebuild to pass this certificate sha1 hash for the key CODE&#92;&#95;SIGN&#92;&#95;IDENTITY into the OTHER&#92;&#95;CODE&#92;&#95;SIGN&#92;&#95;FLAGS like below: xcodebuild -workspace Project.xcworkspace -scheme <ProjectScheme> -configuration <ProjectConfigiguration> OTHER_CODE_SIGN_FLAGS='--keychain=<Keychain_Path>' CODE_SIGN_IDENTITY=<SHA1_HASH_FOR_CERTIFICATE clean archive&#9;&#9; Hope this helps you overcome this issue.
Sep ’20