xcode9.3

Facing “Devtools was disconnected from the page. Once page is reloaded, Devtools will automatically reconnect.”

戏子无情 提交于 2019-12-11 03:51:20
问题 I'm working on React-native js and Xcode 9.3 for iOS app development, but in between I get this error: while debugging and becomes a road blocker for me to proceed in the debugging. Also referred few articles from here but didn't get anything for help. I read this link but it didn't work. 回答1: I had the same issue in my Angular App. I checked here Stack Overflow answer but it didn't help me. For me the thing was that I had a huge select multiple with a bunch of items. It was the reason that

Observing property crashes Instruments (Leaks profile) Xcode 9.3 (Swift 4.1)

て烟熏妆下的殇ゞ 提交于 2019-12-10 05:48:06
问题 When I run the following code (a simplified example, created to demonstrate the crash), it executes as expected when I choose Run (both os_log messages print in Console). However, when I open it in Instruments from the Memory Debug Navigator - by pressing Restart - it crashes (only the first os_log message prints in Console). The crash occurs at observe(...). import os import UIKit class ObserverCrashingExample: NSObject { @objc private var animation: UIViewPropertyAnimator? private var

How can I switch to Swift 4.0 in Xcode 9.3?

亡梦爱人 提交于 2019-12-10 01:50:16
问题 It seems like I have only options to go to 3.3, or unspecified: Can I switch to 4.0 somehow? 回答1: Make sure you have updated xCode then under Build Settings, check the drop down options for Swift Compiler - Language. Furthermore, You can download Xcode 8.x and 9.x from Apple Download Portal, if you've premium developer account (apple id). You can install & work with both Xcode 9 and Xcode 8.x in single (mac) system. (Make sure you've Command Line Tools supporting both version of Xcode, to

Application crashing while accessing microphone in iOS 12.1.2 for iPhone XS

流过昼夜 提交于 2019-12-08 08:24:33
问题 I am working on iOS application which uses microphone for video capture. When we try to capture video, it asks for microphone permission and crashes immediately after that. We are getting following error: "Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: -[AVCaptureDevice setActiveColorSpace:] Not supported - use activeFormat.supportedColorSpaces " We have tried searching for this property for AVCaptureDevice. However, not able to find the same. 回答1: We have

Application crashing while accessing microphone in iOS 12.1.2 for iPhone XS

会有一股神秘感。 提交于 2019-12-06 15:15:17
I am working on iOS application which uses microphone for video capture. When we try to capture video, it asks for microphone permission and crashes immediately after that. We are getting following error: "Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: -[AVCaptureDevice setActiveColorSpace:] Not supported - use activeFormat.supportedColorSpaces " We have tried searching for this property for AVCaptureDevice. However, not able to find the same. We have tried searching for this property for AVCaptureDevice. However, not able to find the same. Solution: The

Xcode 9.3 there is no way to see live device logs

♀尐吖头ヾ 提交于 2019-12-06 02:10:23
问题 Is there any hidden button to see the live device logs in Xcode 9.3 or apple is forcing us to go to console to see device logs it can also be a bug. I cannot see any more a small arrow at bottom that we used to have in Devices and Simulator tab of Xcode. Please refer screen attached. 回答1: In Xcode 9.3 device logs are moved to new location.To get on the new screen you have to navigate through Xcode -> Windows -> Device & Simulators.On device and simulators screen there is a new button added

Observing property crashes Instruments (Leaks profile) Xcode 9.3 (Swift 4.1)

≯℡__Kan透↙ 提交于 2019-12-05 09:45:48
When I run the following code (a simplified example, created to demonstrate the crash), it executes as expected when I choose Run (both os_log messages print in Console). However, when I open it in Instruments from the Memory Debug Navigator - by pressing Restart - it crashes (only the first os_log message prints in Console). The crash occurs at observe(...). import os import UIKit class ObserverCrashingExample: NSObject { @objc private var animation: UIViewPropertyAnimator? private var observer: NSKeyValueObservation? override init() { super.init() animation = UIViewPropertyAnimator( duration

How can I switch to Swift 4.0 in Xcode 9.3?

血红的双手。 提交于 2019-12-05 02:22:45
It seems like I have only options to go to 3.3, or unspecified: Can I switch to 4.0 somehow? Make sure you have updated xCode then under Build Settings, check the drop down options for Swift Compiler - Language. Furthermore, You can download Xcode 8.x and 9.x from Apple Download Portal , if you've premium developer account (apple id). You can install & work with both Xcode 9 and Xcode 8.x in single (mac) system. (Make sure you've Command Line Tools supporting both version of Xcode, to work with terminal) I was able to install swift 4.0 in XCode 10 with solution from here "Switching Swift

Time profiler in instruments is not working

China☆狼群 提交于 2019-12-03 03:25:23
问题 I recently update my Xcode to version 9.3, so is instruments. After that, time profiler won't work anymore, it usually works fine before. I tried to run it via Xcode, and I tried to run it manually. Doesn't work. The life cycle row stuck in initializing, and I got a bunch of warnings complain about the data volume is too high for a recording mode of "immediate" and some data had to be dropped to move forward . Then I switch to delay mode, still got nothing. Then I create a simple new project,

Time profiler in instruments is not working

我们两清 提交于 2019-12-02 16:56:09
I recently update my Xcode to version 9.3, so is instruments. After that, time profiler won't work anymore, it usually works fine before. I tried to run it via Xcode, and I tried to run it manually. Doesn't work. The life cycle row stuck in initializing, and I got a bunch of warnings complain about the data volume is too high for a recording mode of "immediate" and some data had to be dropped to move forward . Then I switch to delay mode, still got nothing. Then I create a simple new project, which should have "little data volume", still got nothing. I checked help, I googled, seems like no