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\_SIGN\_IDENTITY into the OTHER\_CODE\_SIGN\_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		
Hope this helps you overcome this issue.
Post
Replies
Boosts
Views
Activity
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
						}
				}
		}
Hi
Were you able to find answer to this question? I have tried numerous things including UINavigationBar appearance, extending UINavigationController none of which unfortunately work.
Let me know if you were able to find a solution.