xcode9

Taking photo with custom camera iOS 11.0 Swift 4. Update error

泪湿孤枕 提交于 2020-07-02 07:12:21
问题 I have a custom camera in my app and it worked fine, but after the new update I am getting this error: 'jpegPhotoDataRepresentation(forJPEGSampleBuffer:previewPhotoSampleBuffer:)' was deprecated in iOS 11.0: Use -[AVCapturePhoto fileDataRepresentation] instead. This is the line where I'm getting that error: guard let imageData = AVCapturePhotoOutput.jpegPhotoDataRepresentation(forJPEGSampleBuffer: photoSampleBuffer, previewPhotoSampleBuffer: previewPhotoSampleBuffer) else { return } This is

Taking photo with custom camera iOS 11.0 Swift 4. Update error

我们两清 提交于 2020-07-02 07:12:11
问题 I have a custom camera in my app and it worked fine, but after the new update I am getting this error: 'jpegPhotoDataRepresentation(forJPEGSampleBuffer:previewPhotoSampleBuffer:)' was deprecated in iOS 11.0: Use -[AVCapturePhoto fileDataRepresentation] instead. This is the line where I'm getting that error: guard let imageData = AVCapturePhotoOutput.jpegPhotoDataRepresentation(forJPEGSampleBuffer: photoSampleBuffer, previewPhotoSampleBuffer: previewPhotoSampleBuffer) else { return } This is

Error env: ruby_executable_hooks: No such file or directory while running Slather on Jenkins

随声附和 提交于 2020-06-18 20:25:41
问题 I am trying to configure slather on my Jenkins server. Everything works fine when I run slather command using Terminal, but the script seems to fail when I run it on the Jenkins server. Each time I get env: ruby_executable_hooks: No such file or directory error when I run the script on the jenkins server. Here is the script I am running through slather slather coverage -x --output-directory /Users/Shared/Jenkins/Home/workspace/TestApp/test-reports/ --scheme TestApp /Users/Shared/Jenkins/Home

Error env: ruby_executable_hooks: No such file or directory while running Slather on Jenkins

不想你离开。 提交于 2020-06-18 20:24:06
问题 I am trying to configure slather on my Jenkins server. Everything works fine when I run slather command using Terminal, but the script seems to fail when I run it on the Jenkins server. Each time I get env: ruby_executable_hooks: No such file or directory error when I run the script on the jenkins server. Here is the script I am running through slather slather coverage -x --output-directory /Users/Shared/Jenkins/Home/workspace/TestApp/test-reports/ --scheme TestApp /Users/Shared/Jenkins/Home

How to properly embed 3rd party .dylib files in iOS app project for App Store release?

亡梦爱人 提交于 2020-05-15 01:59:26
问题 I am building an iOS app using PJSIP library with H264 support. When building H264, I get 1 .a file and 2 .dylib files. I tried to use the .dylibs in my project by adding as "Embedded Libraries" and also by creating a separate framework and then adding it to "Embedded Libraries". But when uploading build to App Store, I'm getting errors "ERROR ITMS-90206:...", "ERROR ITMS-90171:..". All points to using external dynamic libraries in project. I followed https://developer.apple.com/library

Wireless debugging icon not showing in my Xcode 9

让人想犯罪 __ 提交于 2020-05-09 03:05:07
问题 I just download Xcode 9 and was going through wireless debugging tutorials . I went through this link Wireless debugging but could not make out why my wireless debugging icon is not showing. My device is iPhone 6s updated to iOS 11. and the debugging icon is missing . Snaphot . The icon is missing. What I got from others tutorial, is the icon they are getting, which I am not getting. Like this in apple documents. . 回答1: Network icon is not showing because your device is not paired up to the

How to log a warning that shows up as a runtime issue in Xcode?

大憨熊 提交于 2020-05-07 17:59:25
问题 Xcode 8 or 9 started displaying runtime issues. You see a purple icon at the top of the window, and a list in Issue Navigator, next to buildtime issues like compilation warnings and errors. The runtime issues I've seen are created by the system libraries. Is there a way for my own application code to generate these? 回答1: In XCode 8.3 and earlier you can use set breakpoint into any method of UIKit class like setNeedsDisplay() like below. Also there is library in objective-c steipete class in

NSUnknownKeyException : was sent to an object that is not KVC-compliant for the “player” property

白昼怎懂夜的黑 提交于 2020-04-12 10:41:20
问题 I have updated my code to swift 4 in Xcode 9. Before that it was working fine. But now AVplayer is crashing at observers below is the code where it is crashing. addObserver(self, forKeyPath: "player.currentItem.duration", options: [.new, .initial], context: &playerViewControllerKVOContext) And the log is Terminating app due to uncaught exception 'NSUnknownKeyException',reason: '[ addObserver: forKeyPath:@"player.currentItem.duration" options:5 context:0x10ff74ac8] was sent to an object that

dyld: Library not loaded: @rpath/libswiftAVFoundation.dylib Reason: image not found

大城市里の小女人 提交于 2020-03-17 10:40:10
问题 I'm getting this error upon launch of my app. I am building under Xcode 9.0 (9A235) on MacOS High Sierra 10.13. I also tried building under Xcode 8.3.3 with the same result. The project is generally Objective C, but the framework YouAppi.framework is Swift: dyld: Library not loaded: @rpath/libswiftAVFoundation.dylib Referenced from: /private/var/containers/Bundle/Application/7D3E2815-4CA3-4258-AEF6-C0626055A8F2/dingbats.app/Frameworks/YouAppi.framework/YouAppi Reason: image not found At first

swift 4.0: Overriding 'prepare' must be as available as declaration it overrides

时光怂恿深爱的人放手 提交于 2020-02-23 10:20:49
问题 I was trying to integrate Apple's ARKit example app into my app. As ARKit is only an additional feature, so I need to support lower versions of iOS. I added @available(iOS 11.0, *) tag to all the ARKit example app classes...It almost works except this 1 error: "Overriding 'prepare' must be as available as declaration it overrides". Any idea how can I resolve this issue ? Xcode error image 回答1: What worked for me was adding the @available attribute above the method like so: @available(iOS 11.3