小编Noa*_*ino的帖子

App Store Connect:ITMS-90492:无效的 WatchKit 支持

我尝试将独立的 WatchOS 应用程序更新到 App Store,并在上传后从 iTunes 收到此消息:

\n\n

ITMS-90492: Invalid WatchKit Support - The file WK doesn\xe2\x80\x99t have the correct code signature. Make sure you\xe2\x80\x99re using the correct signature, rebuild your app using the current public (GM) version of Xcode, and resubmit it. Don\xe2\x80\x99t just modify the code signature of WK.

\n\n

我已经上传了以前的版本,没有出现问题,所以我认为这可能与我的代码中使用的内容有关,WKInterfaceDevice().play(.click)该代码对于上传的版本来说是新的,但我不完全确定,是否有人遇到类似的问题以及您是如何修复的它?

\n

swift watchos

5
推荐指数
1
解决办法
355
查看次数

与 Firebase 的动态链接

我正在尝试为我的应用程序/网站设置 firebase 动态链接www.example.com,但我做错了。这是我所做的

  1. 转到 Firebase 控制台中的动态链接,为域创建新的动态链接example.com
  2. 出现此错误www.example.com is not connected properly - There was a problem with your DNS configuration, check this configuration in Firebase Hosting. Note: it could take up to 24 hours for your DNS configuration to reflect recent changes.
  3. 我去托管连接域,我将必要的文件添加ATXT我的 DNS 提供商(网站未托管在 firebase 上)

完成此操作后,我测试了动态链接,这是我发现的

  1. 这些链接适用于该应用程序 - 如果我单击指向www.example.com它的链接,只会将我带到关联的应用程序,这就是我想要的
  2. 但是,当尝试访问该网站时,www.example.com我会看到Invalid Dynamic Link - Requested URL must be a parsable and complete DynamicLink

尝试使用网站时的响应

为什么动态链接可以工作,但网站却不能?如何修复动态链接,使其正常工作以及网站正常工作?

deep-linking firebase ios-universal-links firebase-dynamic-links

5
推荐指数
0
解决办法
857
查看次数

如何在堆栈视图中隐藏元素

我有4个单独的视图,并且我想在按下其中一个按钮时隐藏其他3个视图,我将它们放在堆栈视图中,但是由于.isHidden = true某种原因不会隐藏视图,当它们不在其中时,它可以正常工作堆栈查看有关如何实现此建议的任何建议?

@IBAction func qbpressed(_ sender: Any) {
        QBContainer.isHidden = false
        WRContainer.isHidden = true
        RBContainer.isHidden = true
        QBIndicator.isHidden = false
        WRIndicator.isHidden = true
        RBIndicator.isHidden = true
        TEIndicator.isHidden = true
        QBButton.setTitleColor(#colorLiteral(red: 0, green: 0.5008062124, blue: 1, alpha: 1), for: .normal)
        WRButton.setTitleColor(#colorLiteral(red: 0.7540688515, green: 0.7540867925, blue: 0.7540771365, alpha: 1), for: .normal)
        RBButton.setTitleColor(#colorLiteral(red: 0.7540688515, green: 0.7540867925, blue: 0.7540771365, alpha: 1), for: .normal)
        TEButton.setTitleColor(#colorLiteral(red: 0.7540688515, green: 0.7540867925, blue: 0.7540771365, alpha: 1), for: .normal)

        if intersitial.isReady{
            intersitial.present(fromRootViewController: self)
        } 

    }
Run Code Online (Sandbox Code Playgroud)

在此处输入图片说明

ios stackview swift

2
推荐指数
2
解决办法
2685
查看次数

在java中的ParameterizedTest中传递int数组

我试图传入一个数组来测试某个算法,但这些数组似乎没有正确传递或根本没有传递。我手动测试了算法,所以我知道它可以正常工作。如何传递数组以在 JUnit 5 中进行测试?

@ParameterizedTest
@CsvSource(value = {"[13,14,65,456,31,83],[1331,65456]"})
public void palindromeCombos(int[] input, int[] expected){
    Palindrome pal = new Palindrome();
    List<Integer> actual = pal.allPalindromes(input);
    int[] result = new int[actual.size()];
    for(int i = 0; i < actual.size(); i++){
         result[i] = actual.get(i);
    }
    Assertions.assertArrayEquals(expected, result);    
}
Run Code Online (Sandbox Code Playgroud)

java junit parameterized-unit-test junit5

2
推荐指数
2
解决办法
486
查看次数

ImageView 只能在主线程中使用

我从我的 firebase 数据库中获取一个 url 来下载图像,并且在主线程中的 cell.articleImage.image = UIImage(data: data) 上收到此错误,它没有崩溃,但不会返回图像,有谁知道会出什么问题?

override func viewDidLoad() {
        super.viewDidLoad()
        tableView.delegate = self
        tableView.dataSource = self
        DispatchQueue.global().async {
            let v = UIView(frame: .zero)
        }

    }

func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
        guard let cell = tableView.dequeueReusableCell(withIdentifier: "articleCell") as? articlesCell else {
            return UITableViewCell()}

        let article = articleArray[indexPath.row]

        let url = URL(string: article.imageURL)!
        DispatchQueue.global().async {
            do{
                let data = try Data(contentsOf: url)
                DispatchQueue.global().sync {
                    cell.articleImage.image = UIImage(data: data)
                }
            } catch { …
Run Code Online (Sandbox Code Playgroud)

uiimageview uiimage ios firebase swift

1
推荐指数
1
解决办法
4739
查看次数

如何更改 iTunes connect 中的捆绑包标识符

我在几次更新后更改了应用程序的捆绑包标识符,并且使用与 iTunes 连接应用程序文件中不同的捆绑包标识符将 firebase 添加到我的项目中,我应该做什么?即使我将标识符更改为与 iTunes 连接中相同的标识符,它也不允许我存档我的应​​用程序。

ios app-store-connect

1
推荐指数
1
解决办法
2085
查看次数