Xcode 10 iOS 12 iPhone Simulator尚未在每个设备中启动

时间:2018-09-25 02:57:54

标签: ios xcode xcode10

最近几天我在Apple开发人员网站上更新了Xcode 10 iOS 12.0。我下载了.zip解压缩包以供使用。我想使用iPhone Simulator,但无法正常工作。一直以来,它都会暂停启动页面屏幕。 Xcode不是beta版,谁可以帮助我或告诉我原因?

iPhone XS Max -12.0

iPhone 8Plus-12.0

1 个答案:

答案 0 :(得分:0)

我从import java.time.*; import java.time.format.DateTimeFormatter; public class Test { public static void main(String[] args) { /*A a1 = new A(5000); A a2 = new A(4000); a1.foo(); a2.foo();*/ A a1 = new A(5000); A a2 = new A(4000); Thread t = new Thread(a2); /*a1.run(); t.start();*/ t.start(); a1.run(); // <-- putting t.start() before a1.run() solves the issue } } class A implements Runnable { public long waitTime; public A() {} public A(long timeInMs) { waitTime = timeInMs; } public void run() { synchronized(this) { try { DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy/MM/dd HH:mm:ss"); LocalDateTime time = LocalDateTime.now(); System.out.println(Thread.currentThread().getName() + " " + formatter.format(time) + " Inside A.run"); Thread.sleep(waitTime); time = LocalDateTime.now(); System.out.println(Thread.currentThread().getName() + " " + formatter.format(time) + " Exiting A.run"); } catch (InterruptedException e) {} } } } 中删除了此Xcode。然后我解压缩了新的Finder。没关系。我认为Apple Xcode有错误,与通常的开发人员相同。