我按照本教程(http://code.tutsplus.com/tutorials/create-a-native-apple-watch-app-for-watchos-2--cms-24201)創建了一個演示watchOS 2應用程序。由於watchOS模擬器未列在運行目標中,因此無法在模擬器中運行。WatchOS未在Xcode 7的運行目標中列出
在本教程中,運行目標出現了,否則:
我與任何可能的解決方案,我可以在互聯網上找到耗盡。
我錯過了什麼?或者,這是Xcode的問題嗎?
我在OS X 10.10.5上運行Xcode 7(7A220)。
謝謝。
UPDATE:
經過日誌,它看起來像CoreSimulator不能讓與設備的連接。
這裏SYSTEM.LOG:
Sep 26 00:37:04 Chertan kernel[0]: memorystatus_thread: idle exiting pid 4789 [com.apple.CoreSi]
Sep 26 00:37:04 Chertan.local com.apple.CoreSimulator.CoreSimulatorService[4817]: com.apple.CoreSimulator.CoreSimulatorService 179~1 starting.
Sep 26 00:37:05 Chertan.local com.apple.CoreSimulator.CoreSimulatorService[4817]: Unable to load device.plist: /Users/adrian/Library/Developer/CoreSimulator/Devices/26A5557E-A18E-463D-A983-2D97A2C5826A/device.plist
Sep 26 00:37:05 Chertan.local com.apple.CoreSimulator.CoreSimulatorService[4817]: Unable to load device.plist: /Users/adrian/Library/Developer/CoreSimulator/Devices/36049C9F-D5B2-454D-80C7-14BC8C0BBC5F/device.plist
Sep 26 00:37:05 Chertan.local com.apple.CoreSimulator.CoreSimulatorService[4817]: Unable to load device.plist: /Users/adrian/Library/Developer/CoreSimulator/Devices/42A77066-16B7-4393-A705-293ACAA30912/device.plist
Sep 26 00:37:05 Chertan.local com.apple.CoreSimulator.CoreSimulatorService[4817]: Unable to load device.plist: /Users/adrian/Library/Developer/CoreSimulator/Devices/50BAB20D-DF79-4728-800C-6A989333A600/device.plist
Sep 26 00:37:05 Chertan.local com.apple.CoreSimulator.CoreSimulatorService[4817]: Unable to load device.plist: /Users/adrian/Library/Developer/CoreSimulator/Devices/680A57B1-A08C-43C6-878F-0C9DD05584C0/device.plist
Sep 26 00:37:05 Chertan.local com.apple.CoreSimulator.CoreSimulatorService[4817]: Unable to load device.plist: /Users/adrian/Library/Developer/CoreSimulator/Devices/7CB45BED-2A19-48E3-9EC7-827FFFB8B5E1/device.plist
Sep 26 00:37:05 Chertan.local com.apple.CoreSimulator.CoreSimulatorService[4817]: Unable to load device.plist: /Users/adrian/Library/Developer/CoreSimulator/Devices/ABDD6B28-7831-4576-B704-A1FE57F4559C/device.plist
Sep 26 00:37:05 Chertan.local com.apple.CoreSimulator.CoreSimulatorService[4817]: Unable to load device.plist: /Users/adrian/Library/Developer/CoreSimulator/Devices/BEC6C8F1-DB9F-4348-A0ED-01642077570D/device.plist
Sep 26 00:37:05 Chertan.local com.apple.CoreSimulator.CoreSimulatorService[4817]: Unable to load device.plist: /Users/adrian/Library/Developer/CoreSimulator/Devices/C2725678-5BC4-4D1B-9630-37162685DBA8/device.plist
Sep 26 00:37:05 Chertan.local com.apple.CoreSimulator.CoreSimulatorService[4817]: Unable to load device.plist: /Users/adrian/Library/Developer/CoreSimulator/Devices/C85E5433-0176-4091-B27E-9FEA89C6439C/device.plist
Sep 26 00:37:05 Chertan.local com.apple.CoreSimulator.CoreSimulatorService[4817]: Unable to load device.plist: /Users/adrian/Library/Developer/CoreSimulator/Devices/ED850CEF-AD0E-4808-8425-8597DB197249/device.plist
Sep 26 00:37:05 Chertan.local com.apple.CoreSimulator.CoreSimulatorService[4817]: CoreSimulatorService connection interrupted. Resubscribing to notifications.
Sep 26 00:37:05 --- last message repeated 5 times ---
Sep 26 00:37:05 Chertan.local com.apple.CoreSimulator.CoreSimulatorService[4817]: Notification is missing xpc_notification key: {
notification = "availableDevices_changed";
}
而且CoreSimulator.log:
Sep 26 00:37:04 Chertan.local CoreSimulatorService[4817] <Notice>: com.apple.CoreSimulator.CoreSimulatorService 179~1 starting.
Sep 26 00:37:05 Chertan.local CoreSimulatorService[4817] <Error>: Unable to load device.plist: /Users/adrian/Library/Developer/CoreSimulator/Devices/26A5557E-A18E-463D-A983-2D97A2C5826A/device.plist
Sep 26 00:37:05 Chertan.local CoreSimulatorService[4817] <Error>: Unable to load device.plist: /Users/adrian/Library/Developer/CoreSimulator/Devices/36049C9F-D5B2-454D-80C7-14BC8C0BBC5F/device.plist
Sep 26 00:37:05 Chertan.local CoreSimulatorService[4817] <Error>: Unable to load device.plist: /Users/adrian/Library/Developer/CoreSimulator/Devices/42A77066-16B7-4393-A705-293ACAA30912/device.plist
Sep 26 00:37:05 Chertan.local CoreSimulatorService[4817] <Error>: Unable to load device.plist: /Users/adrian/Library/Developer/CoreSimulator/Devices/50BAB20D-DF79-4728-800C-6A989333A600/device.plist
Sep 26 00:37:05 Chertan.local CoreSimulatorService[4817] <Error>: Unable to load device.plist: /Users/adrian/Library/Developer/CoreSimulator/Devices/680A57B1-A08C-43C6-878F-0C9DD05584C0/device.plist
Sep 26 00:37:05 Chertan.local CoreSimulatorService[4817] <Error>: Unable to load device.plist: /Users/adrian/Library/Developer/CoreSimulator/Devices/7CB45BED-2A19-48E3-9EC7-827FFFB8B5E1/device.plist
Sep 26 00:37:05 Chertan.local CoreSimulatorService[4817] <Error>: Unable to load device.plist: /Users/adrian/Library/Developer/CoreSimulator/Devices/ABDD6B28-7831-4576-B704-A1FE57F4559C/device.plist
Sep 26 00:37:05 Chertan.local CoreSimulatorService[4817] <Error>: Unable to load device.plist: /Users/adrian/Library/Developer/CoreSimulator/Devices/BEC6C8F1-DB9F-4348-A0ED-01642077570D/device.plist
Sep 26 00:37:05 Chertan.local CoreSimulatorService[4817] <Error>: Unable to load device.plist: /Users/adrian/Library/Developer/CoreSimulator/Devices/C2725678-5BC4-4D1B-9630-37162685DBA8/device.plist
Sep 26 00:37:05 Chertan.local CoreSimulatorService[4817] <Error>: Unable to load device.plist: /Users/adrian/Library/Developer/CoreSimulator/Devices/C85E5433-0176-4091-B27E-9FEA89C6439C/device.plist
Sep 26 00:37:05 Chertan.local CoreSimulatorService[4817] <Error>: Unable to load device.plist: /Users/adrian/Library/Developer/CoreSimulator/Devices/ED850CEF-AD0E-4808-8425-8597DB197249/device.plist
Sep 26 00:37:05 Chertan.local com.apple.dt.Xcode[3447] <Warning>: CoreSimulatorService connection interrupted. Resubscribing to notifications.
Sep 26 00:37:05 Chertan.local com.apple.ibtool[4661] <Warning>: CoreSimulatorService connection interrupted. Resubscribing to notifications.
Sep 26 00:37:05 Chertan.local com.apple.ibtool[4656] <Warning>: CoreSimulatorService connection interrupted. Resubscribing to notifications.
Sep 26 00:37:05 Chertan.local com.apple.ibtool[4661] <Warning>: CoreSimulatorService connection interrupted. Resubscribing to notifications.
Sep 26 00:37:05 Chertan.local com.apple.ibtool[4656] <Warning>: CoreSimulatorService connection interrupted. Resubscribing to notifications.
Sep 26 00:37:05 Chertan.local com.apple.iphonesimulator[4688] <Warning>: CoreSimulatorService connection interrupted. Resubscribing to notifications.
Sep 26 00:37:05 Chertan.local CoreSimulatorService[4817] <Warning>: Notification is missing xpc_notification key: {
notification = "availableDevices_changed";
}
Sep 26 00:37:32 Chertan.local CoreSimulatorService[4831] <Notice>: com.apple.CoreSimulator.CoreSimulatorService 179~1 starting.
Sep 26 00:37:32 Chertan.local CoreSimulatorService[4831] <Error>: Unable to load device.plist: /Users/adrian/Library/Developer/CoreSimulator/Devices/26A5557E-A18E-463D-A983-2D97A2C5826A/device.plist
Sep 26 00:37:32 Chertan.local CoreSimulatorService[4831] <Error>: Unable to load device.plist: /Users/adrian/Library/Developer/CoreSimulator/Devices/36049C9F-D5B2-454D-80C7-14BC8C0BBC5F/device.plist
Sep 26 00:37:32 Chertan.local CoreSimulatorService[4831] <Error>: Unable to load device.plist: /Users/adrian/Library/Developer/CoreSimulator/Devices/42A77066-16B7-4393-A705-293ACAA30912/device.plist
Sep 26 00:37:32 Chertan.local CoreSimulatorService[4831] <Error>: Unable to load device.plist: /Users/adrian/Library/Developer/CoreSimulator/Devices/50BAB20D-DF79-4728-800C-6A989333A600/device.plist
Sep 26 00:37:32 Chertan.local CoreSimulatorService[4831] <Notice>: SimDevice : iPhone 6 (52D0F6E4-1431-4181-9CA8-C28F2BDFB640) : state={ Booted } deviceType={ SimDeviceType : com.apple.CoreSimulator.SimDeviceType.iPhone-6 } runtime={ SimRuntime : 9.0 (13A340) - com.apple.CoreSimulator.SimRuntime.iOS-9-0 } found in an inconsistent state: Loaded: 0 Running: 0 ... shutting down
Sep 26 00:37:32 Chertan.local CoreSimulatorService[4831] <Error>: Unable to load device.plist: /Users/adrian/Library/Developer/CoreSimulator/Devices/680A57B1-A08C-43C6-878F-0C9DD05584C0/device.plist
Sep 26 00:37:32 Chertan.local CoreSimulatorService[4831] <Error>: Unable to load device.plist: /Users/adrian/Library/Developer/CoreSimulator/Devices/7CB45BED-2A19-48E3-9EC7-827FFFB8B5E1/device.plist
Sep 26 00:37:32 Chertan.local CoreSimulatorService[4831] <Error>: Unable to load device.plist: /Users/adrian/Library/Developer/CoreSimulator/Devices/ABDD6B28-7831-4576-B704-A1FE57F4559C/device.plist
Sep 26 00:37:32 Chertan.local CoreSimulatorService[4831] <Error>: Unable to load device.plist: /Users/adrian/Library/Developer/CoreSimulator/Devices/BEC6C8F1-DB9F-4348-A0ED-01642077570D/device.plist
Sep 26 00:37:32 Chertan.local CoreSimulatorService[4831] <Error>: Unable to load device.plist: /Users/adrian/Library/Developer/CoreSimulator/Devices/C2725678-5BC4-4D1B-9630-37162685DBA8/device.plist
Sep 26 00:37:32 Chertan.local CoreSimulatorService[4831] <Error>: Unable to load device.plist: /Users/adrian/Library/Developer/CoreSimulator/Devices/C85E5433-0176-4091-B27E-9FEA89C6439C/device.plist
Sep 26 00:37:32 Chertan.local CoreSimulatorService[4831] <Error>: Unable to load device.plist: /Users/adrian/Library/Developer/CoreSimulator/Devices/ED850CEF-AD0E-4808-8425-8597DB197249/device.plist
Sep 26 00:37:32 Chertan.local com.apple.ibtool[4656] <Warning>: CoreSimulatorService connection interrupted. Resubscribing to notifications.
Sep 26 00:37:32 Chertan.local com.apple.dt.Xcode[3447] <Warning>: CoreSimulatorService connection interrupted. Resubscribing to notifications.
Sep 26 00:37:32 Chertan.local com.apple.ibtool[4656] <Warning>: CoreSimulatorService connection interrupted. Resubscribing to notifications.
Sep 26 00:37:32 Chertan.local com.apple.ibtool[4661] <Warning>: CoreSimulatorService connection interrupted. Resubscribing to notifications.
Sep 26 00:37:32 Chertan.local com.apple.ibtool[4661] <Warning>: CoreSimulatorService connection interrupted. Resubscribing to notifications.
經過日誌,它看起來像CoreSimulator不能讓與設備的連接。 –
請用您懷疑的確切日誌行更新您的問題。 –
我沒有重命名Xcode.app並重新啓動OS X很多次,這也無濟於事。我清除了CoreSimulator中的日誌和設備,並準備好了,但仍然無法運行。 –