xcode

How can I run my performance tests more than ten times?

元气小坏坏 提交于 2020-12-29 05:12:49
问题 By default Xcodes performance tests are run ten times and my result is the average of those ten tests. The problem is the averaged result varies considerably each time I run it so I have to run the test at least five times to get a converged result. This is both tedious and time consuming; is there a way to configure either XCode or the unit test itself to run more than ten times? 回答1: In the latest Xcode (11.0+) you don't need swizzling to change iterations count. Use the following function:

How can I run my performance tests more than ten times?

*爱你&永不变心* 提交于 2020-12-29 05:12:41
问题 By default Xcodes performance tests are run ten times and my result is the average of those ten tests. The problem is the averaged result varies considerably each time I run it so I have to run the test at least five times to get a converged result. This is both tedious and time consuming; is there a way to configure either XCode or the unit test itself to run more than ten times? 回答1: In the latest Xcode (11.0+) you don't need swizzling to change iterations count. Use the following function:

Xcode custom fonts not showing up in Storyboard

白昼怎懂夜的黑 提交于 2020-12-29 05:12:39
问题 I added my two fonts to my project folder: I added them to info.plist: I can not see them in my custom font list in the storyboard: What have i done wrong? 回答1: I know this is a pretty old question, but I ran into the same issue. And the above tips didn't work for me. Apart from the standard checks (present in bundle, restarting XCode, the thing that fixed my issue was that my label text type was marked as "Plain" and hence some fonts were not showing in the dropdown in the Storyboard. As

How can I run my performance tests more than ten times?

ぃ、小莉子 提交于 2020-12-29 05:11:28
问题 By default Xcodes performance tests are run ten times and my result is the average of those ten tests. The problem is the averaged result varies considerably each time I run it so I have to run the test at least five times to get a converged result. This is both tedious and time consuming; is there a way to configure either XCode or the unit test itself to run more than ten times? 回答1: In the latest Xcode (11.0+) you don't need swizzling to change iterations count. Use the following function:

Xcode custom fonts not showing up in Storyboard

戏子无情 提交于 2020-12-29 05:09:50
问题 I added my two fonts to my project folder: I added them to info.plist: I can not see them in my custom font list in the storyboard: What have i done wrong? 回答1: I know this is a pretty old question, but I ran into the same issue. And the above tips didn't work for me. Apart from the standard checks (present in bundle, restarting XCode, the thing that fixed my issue was that my label text type was marked as "Plain" and hence some fonts were not showing in the dropdown in the Storyboard. As

Xcode custom fonts not showing up in Storyboard

匆匆过客 提交于 2020-12-29 05:08:00
问题 I added my two fonts to my project folder: I added them to info.plist: I can not see them in my custom font list in the storyboard: What have i done wrong? 回答1: I know this is a pretty old question, but I ran into the same issue. And the above tips didn't work for me. Apart from the standard checks (present in bundle, restarting XCode, the thing that fixed my issue was that my label text type was marked as "Plain" and hence some fonts were not showing in the dropdown in the Storyboard. As

Xcode 12 Beta - Cannot find simulator runtime

為{幸葍}努か 提交于 2020-12-29 03:51:36
问题 I have installed Xcode 12 beta 2. I tried to run our xamarin project through Jenkins on Mac OS Catalina. It fails with the below error. When I build the same project from Mac Visual studio, it succeeded without any error. SplashViewController.storyboard : error : iOS 14.0 (14.0 - 18A5319g) - com.apple.CoreSimulator.SimRuntime.iOS-14-0 (unavailable, failed to open liblaunchsim.dylib) ==> not available: Error Domain=com.apple.CoreSimulator.SimError Code=401 "The iOS 14.0 simulator runtime is

Xcode 12 Beta - Cannot find simulator runtime

醉酒当歌 提交于 2020-12-29 03:51:26
问题 I have installed Xcode 12 beta 2. I tried to run our xamarin project through Jenkins on Mac OS Catalina. It fails with the below error. When I build the same project from Mac Visual studio, it succeeded without any error. SplashViewController.storyboard : error : iOS 14.0 (14.0 - 18A5319g) - com.apple.CoreSimulator.SimRuntime.iOS-14-0 (unavailable, failed to open liblaunchsim.dylib) ==> not available: Error Domain=com.apple.CoreSimulator.SimError Code=401 "The iOS 14.0 simulator runtime is

UIImpactFeedbackGenerator Not Working When Audio Device Added to AVCaptureSession

左心房为你撑大大i 提交于 2020-12-29 03:02:04
问题 Adding microphone audio input to AVCaptureSession seems to disable UIImpactFeedbackGenerator . let audioDevice = AVCaptureDevice.defaultDevice(withMediaType: AVMediaTypeAudio) let audioDeviceInput = try AVCaptureDeviceInput(device: audioDevice) if self.session.canAddInput(audioDeviceInput) { self.session.addInput(audioDeviceInput) } Once the audio device is removed, feedback resumes. Is this normal behavior? Is there a way around this? I notice stock iOS Camera app in video mode and long

UIImpactFeedbackGenerator Not Working When Audio Device Added to AVCaptureSession

怎甘沉沦 提交于 2020-12-29 03:01:06
问题 Adding microphone audio input to AVCaptureSession seems to disable UIImpactFeedbackGenerator . let audioDevice = AVCaptureDevice.defaultDevice(withMediaType: AVMediaTypeAudio) let audioDeviceInput = try AVCaptureDeviceInput(device: audioDevice) if self.session.canAddInput(audioDeviceInput) { self.session.addInput(audioDeviceInput) } Once the audio device is removed, feedback resumes. Is this normal behavior? Is there a way around this? I notice stock iOS Camera app in video mode and long