Post

Replies

Boosts

Views

Activity

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
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() { &#9;&#9;&#9;&#9;let subtitleViewController: AnyClass? = NSClassFromString("AVMediaSelectionTableViewController") &#9;&#9;&#9;&#9;for childVC in self.viewControllers { &#9;&#9;&#9;&#9;&#9;&#9;if let subtitleViewController = subtitleViewController, childVC.isKind(of: subtitleViewController) { &#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;var normalTitleTextAttributes = childVC.navigationItem.rightBarButtonItem?.titleTextAttributes(for: .normal) &#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;var highlightedTitleTextAttributes = childVC.navigationItem.rightBarButtonItem?.titleTextAttributes(for: .highlighted) &#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;var disabledTitleTextAttributes = childVC.navigationItem.rightBarButtonItem?.titleTextAttributes(for: .disabled) &#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;normalTitleTextAttributes?[NSAttributedString.Key.foregroundColor] = UIColor.black &#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;highlightedTitleTextAttributes?[NSAttributedString.Key.foregroundColor] = UIColor.black &#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;disabledTitleTextAttributes?[NSAttributedString.Key.foregroundColor] = UIColor.black &#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;childVC.navigationItem.rightBarButtonItem?.setTitleTextAttributes(normalTitleTextAttributes, for: .normal) &#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;childVC.navigationItem.rightBarButtonItem?.setTitleTextAttributes(highlightedTitleTextAttributes, for: .highlighted) &#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;childVC.navigationItem.rightBarButtonItem?.setTitleTextAttributes(disabledTitleTextAttributes, for: .disabled) &#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;break &#9;&#9;&#9;&#9;&#9;&#9;} &#9;&#9;&#9;&#9;} &#9;&#9;}
Aug ’20