Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Carthage building issue #92

Open
divyeshmakwana96 opened this issue Jan 13, 2020 · 4 comments
Open

Carthage building issue #92

divyeshmakwana96 opened this issue Jan 13, 2020 · 4 comments

Comments

@divyeshmakwana96
Copy link

There are issues while building the framework. The project seems to have errors while compiling

@dingwilson
Copy link
Owner

Hey @sleekuser - can you provide some more details?

@divyeshmakwana96
Copy link
Author

This is what I have in my cartfile:
github "dingwilson/SwiftVideoBackground"

And the build error message is as below:

/Users/makwana_divyesh/Bitbucket/_repo/RevealViewController/Carthage/Checkouts/SwiftVideoBackground/SwiftVideoBackground/Sources/VideoBackground.swift:61:36: error: 'willEnterForegroundNotification' has been renamed to 'NSNotification.Name.UIApplicationWillEnterForeground'
            forName: UIApplication.willEnterForegroundNotification,
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                   NSNotification.Name.UIApplicationWillEnterForeground
UIKit.UIApplication:28:22: note: 'willEnterForegroundNotification' was introduced in Swift 4.2
    public class let willEnterForegroundNotification: NSNotification.Name
                     ^
/Users/makwana_divyesh/Bitbucket/_repo/RevealViewController/Carthage/Checkouts/SwiftVideoBackground/SwiftVideoBackground/Sources/VideoBackground.swift:136:45: error: type 'AVAudioSession.Category' (aka 'NSString') has no member 'ambient'
                    AVAudioSession.Category.ambient,
                    ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/Users/makwana_divyesh/Bitbucket/_repo/RevealViewController/Carthage/Checkouts/SwiftVideoBackground/SwiftVideoBackground/Sources/VideoBackground.swift:137:47: error: type 'AVAudioSession.Mode' (aka 'NSString') has no member 'default'
                    mode: AVAudioSession.Mode.default
                          ~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/Users/makwana_divyesh/Bitbucket/_repo/RevealViewController/Carthage/Checkouts/SwiftVideoBackground/SwiftVideoBackground/Sources/VideoBackground.swift:169:14: error: 'sendSubviewToBack' has been renamed to 'sendSubview(toBack:)'
        view.sendSubviewToBack(darknessOverlayView)
             ^~~~~~~~~~~~~~~~~
             sendSubview       toBack: 
UIKit.UIView:20:15: note: 'sendSubviewToBack' was obsoleted in Swift 3
    open func sendSubviewToBack(_ view: UIView)
              ^
/Users/makwana_divyesh/Bitbucket/_repo/RevealViewController/Carthage/Checkouts/SwiftVideoBackground/SwiftVideoBackground/Sources/VideoBackground.swift:201:45: error: 'zero' has been renamed to 'kCMTimeZero'
        playerLayer.player?.seek(to: CMTime.zero)
                                            ^~~~
                                            kCMTimeZero
CoreMedia.CMTime:16:23: note: 'zero' was introduced in Swift 4.2
    public static let zero: CMTime
                      ^

** ARCHIVE FAILED **


The following build commands failed:
	CompileSwift normal arm64
	CompileSwiftSources normal armv7 com.apple.xcode.tools.swift.compiler
	CompileSwift normal armv7
(3 failures)

These errors are related to Swift 5 for the most part.

@dingwilson
Copy link
Owner

What version of Swift are you using?

@divyeshmakwana96
Copy link
Author

Apple Swift version 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants